﻿/* ============================================
   Shenzhen Hongsheng Model - Rebuild Styles
   ============================================ */

:root {
  --primary: #2974B9;
  --primary-dark: #1e5a94;
  --primary-light: #3a8fd6;
  --secondary: #f5f5f5;
  --dark: #18191C;
  --text: #333333;
  --text-light: #666666;
  --white: #ffffff;
  --gray-bg: #f8f9fa;
  --border: #e0e0e0;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
  --transition: all 0.3s ease;
  --radius: 8px;
  --radius-lg: 16px;
  --container: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

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

.section-padding { padding: 80px 0; }
.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  color: var(--dark);
}
.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 50px;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  z-index: 1000;
  transition: var(--transition);
}

.header-inner,
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

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

.logo img {
  height: 50px;
  width: auto;
}

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

.logo-text span {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-light);
}

.nav-main,
.nav-list {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-list li { position: relative; }

.nav-list a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--primary);
  background: rgba(41,116,185,0.08);
}

.nav-list a i {
  font-size: 0.7rem;
  transition: transform 0.3s;
}

.nav-list li:hover > a i { transform: rotate(180deg); }

/* Dropdown for .nav-list structure */
.nav-list .dropdown,
.nav-list .has-dropdown > .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 1001;
}

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

.nav-list .dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
  color: var(--text);
  transition: var(--transition);
  border-radius: 0;
}

.nav-list .dropdown a:hover {
  background: rgba(41,116,185,0.06);
  color: var(--primary);
  padding-left: 24px;
}

.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: rgba(41,116,185,0.08);
}

.nav-link i {
  font-size: 0.7rem;
  transition: transform 0.3s;
}

.nav-item:hover .nav-link i,
.nav-item.open .nav-link i { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
}

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

.dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
  color: var(--text);
  transition: var(--transition);
}

.dropdown a:hover {
  background: rgba(41,116,185,0.06);
  color: var(--primary);
  padding-left: 24px;
}

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switcher {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.lang-btn:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(41,116,185,0.12);
}
.lang-btn i.fa-globe {
  color: var(--primary);
  font-size: 0.85rem;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 152px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1001;
}

/* dropdown triangle */
.lang-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 22px;
  width: 12px;
  height: 12px;
  background: var(--white);
  transform: rotate(45deg);
  border-radius: 2px;
  box-shadow: -2px -2px 4px rgba(0,0,0,0.04);
}

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

.lang-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 10px;
  text-align: left;
  background: none;
  border: none;
  border-radius: 10px;
  font-size: 0.88rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
  color: var(--text);
  position: relative;
}

/* language code badge via ::before */
.lang-menu button::before {
  content: attr(data-lang);
  text-transform: uppercase;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(41,116,185,0.12);
  padding: 2px 5px;
  border-radius: 4px;
  min-width: 22px;
  text-align: center;
  letter-spacing: 0.02em;
}

.lang-menu button:hover {
  background: rgba(41,116,185,0.07);
  color: var(--primary);
}

.lang-menu button.active {
  background: rgba(41,116,185,0.10);
  color: var(--primary);
  font-weight: 600;
}
.lang-menu button.active::after {
  content: '✓';
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--primary);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

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

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: #f5f7fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.mobile-toggle:hover {
  background: #e8f0f8;
  border-color: var(--primary);
}
.mobile-toggle i {
  font-size: 1.1rem;
  color: var(--dark);
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--dark);
  transition: var(--transition);
  border-radius: 1px;
}

/* ============================================
   HERO SLIDER
   ============================================ */

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
}

.hero-slide.active { opacity: 1; }

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.1);
  transition: transform 8s ease;
}

.hero-slide.active .hero-bg { transform: scale(1); }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  color: var(--white);
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

.hero-content p {
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 32px;
  opacity: 0.9;
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
}

.hero-btns .btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}

.hero-btns .btn-outline {
  color: var(--white);
  border-color: var(--white);
}

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

/* Slider Controls */
.slider-controls {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 12px;
  align-items: center;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background: var(--white);
  border-color: var(--primary);
  transform: scale(1.2);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.slider-arrow:hover {
  background: rgba(255,255,255,0.3);
}

.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

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

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-section { background: var(--white); }

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

.about-img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-img img,
.about-img video {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
}

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

/* ============================================
   SERVICES SECTION
   ============================================ */

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.service-img {
  height: 320px;
  overflow: hidden;
}

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

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

.service-body { padding: 28px; }

.service-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.service-body p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-features {
  margin-bottom: 20px;
}

.service-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text);
}

.service-features li::before {
  content: '\2713';
  color: var(--primary);
  font-weight: bold;
  flex-shrink: 0;
}

/* ============================================
   TRUST POLICY SECTION
   ============================================ */

.trust-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.trust-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

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

.trust-content h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.trust-content > p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 30px;
  line-height: 1.7;
}

.trust-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.trust-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.trust-feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.trust-feature h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.trust-feature p {
  font-size: 0.95rem;
  opacity: 0.85;
  line-height: 1.6;
}

.trust-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.trust-cta .btn-primary {
  background: var(--white);
  color: var(--primary);
  font-size: 1.1rem;
  padding: 16px 40px;
  margin-bottom: 16px;
}

.trust-cta .btn-primary:hover {
  background: var(--gray-bg);
}

.trust-cta p {
  font-size: 1rem;
  opacity: 0.9;
}

/* ============================================
   HOW IT WORKS
   ============================================ */

.process-section { background: var(--white); }

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.process-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius-lg);
  background: var(--gray-bg);
  transition: var(--transition);
  position: relative;
}

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

.process-card:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 60px;
  right: -40px;
  width: 40px;
  height: 2px;
  background: var(--primary);
  opacity: 0.3;
}

.process-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 24px;
}

.process-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.process-card p {
  color: var(--text-light);
  line-height: 1.7;
}

/* ============================================
   PROTOTYPE TO PRODUCTION
   ============================================ */

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

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

.production-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.production-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.production-card-header img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  object-fit: cover;
}

.production-card-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
}

.production-card-header span {
  display: block;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: 4px;
}

.production-card p {
  color: var(--text-light);
  line-height: 1.8;
}

/* ============================================
   CERTIFICATIONS
   ============================================ */

.cert-section { background: var(--white); }

.cert-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}

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

.footer-brand img {
  height: 50px;
  width: auto;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover { color: var(--primary); padding-left: 4px; }

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.footer-contact i {
  color: var(--primary);
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-contact a { color: rgba(255,255,255,0.7); }
.footer-contact a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* ============================================
   PAGE HEADER (Subpages)
   ============================================ */

.page-header {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.page-header p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   CONTENT SECTIONS (Subpages)
   ============================================ */

.content-section { background: var(--white); }

.content-section.alt { background: var(--gray-bg); }

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

.content-grid.reverse { direction: rtl; }

.content-grid.reverse > * { direction: ltr; }

.content-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.content-img img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.content-text h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}

.content-text h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--dark);
  margin: 24px 0 12px;
}

.content-text p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

.content-text ul {
  margin: 16px 0;
  padding-left: 20px;
}

.content-text ul li {
  list-style: disc;
  color: var(--text-light);
  margin-bottom: 8px;
  line-height: 1.7;
}

.content-text strong { color: var(--dark); }

/* Feature list on subpages */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.feature-item {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.feature-item h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 10px;
}

.feature-item p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* Material table */
.material-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.material-table th,
.material-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.material-table th {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
}

.material-table tr:hover { background: var(--gray-bg); }

/* ============================================
   PRODUCTS GRID
   ============================================ */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.product-img {
  height: 220px;
  overflow: hidden;
}

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

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

.product-body {
  padding: 24px;
}

.product-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.product-body p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

.product-material {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 4px;
  display: flex;
  align-items: center;
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 24px;
}

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

.contact-info-item i {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(41,116,185,0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}

.contact-info-item p,
.contact-info-item a {
  color: var(--text-light);
  font-size: 0.95rem;
}

.contact-info-item a:hover { color: var(--primary); }

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

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
}

.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(41,116,185,0.1);
}

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

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .nav-main,
  .nav-list { display: none; }
  .mobile-toggle { display: flex; margin-left: auto; margin-right: 8px; }
  .header-right .btn-primary { display: none; }

  /* Mobile header: logo left, toggle+lang right together */
  .nav-container,
  .header-inner {
    justify-content: flex-start;
  }

  /* Mobile slide-out nav for .nav#nav (subpages) */
  .nav#nav {
    position: fixed;
    top: 0; right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--white);
    z-index: 1002;
    padding: 80px 24px 24px;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    overflow-y: auto;
    display: block;
  }
  .nav#nav.open { right: 0; }
  .nav#nav .nav-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }
  .nav#nav .nav-list a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }
  .nav#nav .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding-left: 16px;
    display: none;
  }
  .nav#nav .has-dropdown.open > .dropdown { display: block; }

  /* Mobile nav overlay */
  .mobile-nav-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
  }
  .mobile-nav-overlay.open { opacity: 1; visibility: visible; }

  .about-grid,
  .trust-grid,
  .content-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .process-card:not(:last-child)::after { display: none; }

  .production-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .hero-content h1 { font-size: 2.2rem; }
}

@media (max-width: 768px) {
  .section-padding { padding: 50px 0; }
  .section-title { font-size: 1.6rem; }

  .hero { min-height: 500px; }
  .hero-content h1 { font-size: 1.8rem; }
  .hero-content p { font-size: 1rem; }

  .services-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }

  .trust-grid { grid-template-columns: 1fr; }
  .trust-cta { margin-top: 30px; }

  .page-header h1 { font-size: 1.8rem; }
  .page-header { padding: 120px 0 40px; }

  .content-grid.reverse { direction: ltr; }
}

/* Mobile menu panel */
.mobile-nav {
  position: fixed;
  top: 0; right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--white);
  z-index: 1002;
  padding: 80px 24px 24px;
  transition: right 0.3s ease;
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);
  overflow-y: auto;
}

.mobile-nav.open { right: 0; }

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.mobile-nav a {
  display: block;
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--dark);
  border-bottom: 1px solid var(--border);
}

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

.mobile-nav .dropdown-mobile {
  padding-left: 16px;
}

.mobile-nav .dropdown-mobile a {
  font-size: 0.9rem;
  padding: 10px 0;
  border-bottom: none;
  color: var(--text-light);
}

/* Scroll animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
}

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

/* Loading placeholder for images */
.img-placeholder {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================
   GALLERY GRID (Examples & Workshop)
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-item {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  aspect-ratio: 4 / 3;
  background: var(--gray-bg);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

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

/* ============================================
   CERTIFICATIONS (Real Images)
   ============================================ */
.cert-item {
  text-align: center;
  padding: 0;
  border-radius: var(--radius-lg);
  background: var(--gray-bg);
  min-width: 220px;
  max-width: 300px;
  flex: 1;
  transition: var(--transition);
  overflow: hidden;
}

.cert-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.cert-item a {
  display: block;
  width: 100%;
}

.cert-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.cert-item h4 {
  padding: 16px;
  margin: 0;
  font-size: 1rem;
  color: var(--dark);
}

/* ============================================
   SERVICE HERO (CNC Machining Page)
   ============================================ */
.service-hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
}

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

.service-hero-text h1 {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.service-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}

.service-hero-specs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  opacity: 0.9;
}

.spec-item i {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.service-hero-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.service-hero-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* Service intro */
.service-intro {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.9;
}

/* Two-column services (Milling + Turning) */
.service-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.service-col {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.service-col:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.service-col-img {
  height: 260px;
  overflow: hidden;
}

.service-col-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.service-col:hover .service-col-img img { transform: scale(1.06); }

.service-col h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  padding: 24px 28px 12px;
}

.service-col p {
  padding: 0 28px 28px;
  color: var(--text-light);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* Process diagram */
.process-diagram {
  text-align: center;
  margin: 40px 0;
}

.process-diagram img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.process-steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.process-step {
  flex: 1;
  max-width: 300px;
  text-align: center;
  padding: 32px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.process-step-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
  color: var(--primary);
}

.process-step h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.process-step p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}

.process-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  align-self: center;
}

/* Examples gallery */
.examples-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.example-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  background: var(--gray-bg);
}

.example-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
  display: block;
}

.example-item:hover img { transform: scale(1.06); }

/* Data tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 24px;
}

.data-table th,
.data-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.data-table th {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover { background: var(--gray-bg); }

.materials-table-wrap { overflow-x: auto; }

/* Surface finishes grid */
.surface-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.surface-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

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

.surface-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.surface-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  padding: 16px 16px 6px;
}

.surface-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  padding: 0 16px 20px;
  line-height: 1.6;
}

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

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: inherit;
  transition: var(--transition);
}

.faq-question:hover { color: var(--primary); }

.faq-question i {
  transition: transform 0.3s ease;
  font-size: 0.85rem;
  color: var(--text-light);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 24px 20px;
  color: var(--text-light);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* ============================================
   RESPONSIVE (Additions)
   ============================================ */

@media (max-width: 1024px) {
  .service-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .service-hero-text h1 { font-size: 2.2rem; }
  .service-two-col { grid-template-columns: 1fr; }
  .process-steps { flex-direction: column; align-items: center; }
  .process-step { max-width: 100%; width: 100%; }
  .process-arrow { transform: rotate(90deg); }
  .examples-gallery { grid-template-columns: repeat(2, 1fr); }
  .surface-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .service-hero { padding: 120px 0 50px; }
  .service-hero-text h1 { font-size: 1.8rem; }
  .examples-gallery { grid-template-columns: 1fr; }
  .surface-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .data-table th, .data-table td { padding: 12px 14px; font-size: 0.85rem; }
}



/* ============================================
   Inquiry Modal
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 92%;
  max-width: 640px;
  max-height: 92vh;
  background: #fff;
  border-radius: var(--radius-lg, 16px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.modal-container.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
}
.modal-header h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark, #18191C);
  margin: 0;
}
.modal-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--gray-bg, #f8f9fa);
  color: var(--text-light, #666);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.modal-close:hover { background: #eee; color: #c33; }

.modal-body {
  padding: 16px 24px 24px;
  overflow-y: auto;
}

.modal-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 544px) { .modal-form .form-row { grid-template-columns: 1fr; } }

.modal-form .form-group {
  margin-bottom: 14px;
}
.modal-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text, #333);
  margin-bottom: 6px;
}
.modal-form input,
.modal-form select,
.modal-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border, #e0e0e0);
  border-radius: var(--radius, 8px);
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
  outline: none;
  border-color: var(--primary, #2974B9);
  box-shadow: 0 0 0 3px rgba(41,116,185,0.12);
}
.modal-form textarea { resize: vertical; min-height: 80px; }

.modal-form .file-upload-zone {
  border: 2px dashed var(--border, #ddd);
  border-radius: var(--radius, 8px);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: #fafbfc;
}
.modal-form .file-upload-zone:hover,
.modal-form .file-upload-zone.dragover {
  border-color: var(--primary, #2974B9);
  background: #f0f6fc;
}
.modal-form .file-types {
  font-size: 0.75rem;
  color: var(--text-light, #666);
  margin-top: 6px;
}
.modal-form .file-list { margin-top: 10px; }
.modal-form .file-list-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; background: #f5f7fa; border-radius: 6px;
  margin-bottom: 6px; font-size: 0.85rem;
}
.modal-form .file-list-item span { display: flex; align-items: center; gap: 8px; overflow: hidden; }
.modal-form .file-list-item i { color: var(--primary, #2974B9); }
.modal-form .file-list-item .remove-file {
  color: #999; cursor: pointer; padding: 2px 6px; border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.modal-form .file-list-item .remove-file:hover { color: #c33; background: #fee; }
.modal-form .file-error { color: #c33; font-size: 0.8rem; margin-top: 6px; }

.modal-form .btn-submit {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--radius, 8px);
  background: var(--primary, #2974B9);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.modal-form .btn-submit:hover { background: var(--primary-dark, #1e5a94); }
.modal-form .btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

body.modal-open { overflow: hidden; }
