/* ===== CSS VARIABLES ===== */
:root {
  --primary: #0a1628;
  --primary-light: #1a2d4a;
  --accent: #c8a44e;
  --accent-light: #dfc06e;
  --accent-dark: #a8883a;
  --white: #ffffff;
  --off-white: #f7f8fa;
  --gray-100: #eef0f3;
  --gray-200: #dde0e6;
  --gray-300: #b0b5bf;
  --gray-400: #7a8290;
  --gray-500: #4a5568;
  --text-dark: #1a1a2e;
  --text-body: #3d4456;
  --text-light: #8a91a0;
  --success: #22c55e;
  --shadow-sm: 0 1px 3px rgba(10,22,40,0.08);
  --shadow-md: 0 4px 20px rgba(10,22,40,0.1);
  --shadow-lg: 0 10px 40px rgba(10,22,40,0.15);
  --shadow-xl: 0 20px 60px rgba(10,22,40,0.2);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Outfit', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1rem; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  margin-bottom: 20px;
}

.section-desc {
  max-width: 600px;
  color: var(--text-light);
  font-size: 1.05rem;
}

.text-center { text-align: center; }
.section-desc.text-center { margin-left: auto; margin-right: auto; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary);
}
.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(200,164,78,0.35);
}

.btn-outline {
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--primary);
  transform: translateY(-2px);
}

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

.btn-white {
  background: var(--white);
  color: var(--primary);
  font-weight: 700;
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 12px 0;
  transition: var(--transition);
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.navbar.scrolled {
  padding: 12px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo,
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 2px;
}

.nav-logo .logo-icon,
.logo .logo-icon {
  width: 40px;
  height: 40px;
  background: var(--accent) url("../images/local/logo-xianda.jpg") center center / 280% 280% no-repeat;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: transparent;
  overflow: hidden;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
}

.nav-links,
.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a,
.nav-menu a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
}

.nav-links a::after,
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active,
.nav-menu a:hover,
.nav-menu a.active {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after,
.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 24px !important;
  background: var(--accent) !important;
  color: var(--primary) !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--accent-light) !important;
}

.nav-cta::after { display: none !important; }

.nav-lang {
  display: flex;
  align-items: center;
}

.lang-switcher {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border-radius: 8px;
  padding: 8px 34px 8px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.1;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--white) 50%), linear-gradient(135deg, var(--white) 50%, transparent 50%);
  background-position: calc(100% - 15px) calc(50% - 2px), calc(100% - 10px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.lang-switcher option {
  color: var(--text-dark);
  background: var(--white);
}

.nav-lang-inline {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
}

.lang-switcher-mini {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 1px solid rgba(255,255,255,0.38);
  background: rgba(10, 22, 40, 0.8);
  color: var(--white);
  border-radius: 6px;
  padding: 4px 20px 4px 7px;
  min-width: 50px;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.2px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  background-image: linear-gradient(45deg, transparent 50%, var(--white) 50%), linear-gradient(135deg, var(--white) 50%, transparent 50%);
  background-position: calc(100% - 10px) calc(50% - 1px), calc(100% - 7px) calc(50% - 1px);
  background-size: 3px 3px, 3px 3px;
  background-repeat: no-repeat;
}

.lang-switcher-mini option {
  color: var(--text-dark);
  background: var(--white);
}

body.translated-ltr {
  top: 0 !important;
}

.goog-te-banner-frame.skiptranslate {
  display: none !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 1002;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* ===== HERO CAROUSEL (home) ===== */
.hero-carousel {
  position: relative;
  --hero-banner-height: min(82vh, 780px);
  height: var(--hero-banner-height);
  min-height: 620px;
  padding-top: 76px;
  background: var(--primary);
  overflow: hidden;
}

.carousel-slides {
  position: relative;
  min-height: calc(var(--hero-banner-height) - 76px);
  height: calc(var(--hero-banner-height) - 76px);
}

.carousel-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 80px 24px 132px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.75s ease, visibility 0.75s ease;
  background-size: cover;
  background-position: center;
  background-image:
    linear-gradient(90deg, rgba(10, 22, 40, 0.5) 0%, rgba(10, 22, 40, 0.34) 48%, rgba(10, 22, 40, 0.22) 100%),
    var(--slide-bg);
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  pointer-events: auto;
}

.slide-grid-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(200, 164, 78, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 164, 78, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.hero-carousel .carousel-slide .container.slide-content {
  position: relative;
  z-index: 3;
  padding: 0 20px;
}

.hero-carousel .carousel-slide .container.slide-content::before {
  content: none;
}

.hero-carousel .slide-content h1,
.hero-carousel .slide-content h2 {
  color: var(--white);
  margin-bottom: 1.25rem;
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.55);
}

.hero-carousel .slide-content h1 .highlight,
.hero-carousel .slide-content h2 .highlight {
  color: var(--accent);
}

.hero-carousel .slide-content .section-desc {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1.4rem;
  max-width: 480px;
  font-size: 0.96rem;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.hero-carousel .slide-content .cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-carousel .btn-outline {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}
.hero-carousel .btn-outline:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
}

.hero-carousel .hero-badge {
  margin-bottom: 1.25rem;
}
.hero-carousel .hero-badge-spacer {
  display: none;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.carousel-arrow:hover {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}

.carousel-arrow.prev { left: 16px; }
.carousel-arrow.next { right: 16px; }

.carousel-indicators {
  position: absolute;
  bottom: 164px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}

.carousel-indicators .indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-indicators .indicator.active {
  background: var(--accent);
  transform: scale(1.2);
}

.carousel-contact-bar {
  position: absolute;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%);
  width: fit-content;
  max-width: calc(100% - 36px);
  z-index: 11;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 28px;
  padding: 14px 22px;
  background: rgba(10, 22, 40, 0.88);
  border-top: 1px solid rgba(200, 164, 78, 0.2);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

/* Wrapper: desktop has no layout effect; mobile stacks dots above contact bar */
.hero-carousel-bottom {
  display: contents;
}


.hero-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1;
}

.hero-contact-item:hover {
  color: var(--accent);
}

.hero-contact-item .icon {
  opacity: 0.95;
  font-size: 1.18rem;
}

.hero-contact-item .contact-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}

.hero-contact-item.is-whatsapp .whatsapp-icon {
  background: #25d366;
  color: #fff;
}

.hero-contact-item.is-email .email-icon {
  background: rgba(13, 28, 50, 0.95);
  color: #f2f4f8;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 1.4rem;
}

/* Floating contact widget */
.floating-contact {
  position: fixed;
  bottom: 96px;
  right: 24px;
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-contact .float-btn {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.floating-contact .float-btn.wa {
  background: #25d366;
  color: #fff;
  z-index: 1;
}

.floating-contact .float-btn.wa::before {
  content: 'WA';
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.floating-contact .float-btn.wa::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.22);
  z-index: -1;
}

.floating-contact .float-btn.em {
  background: var(--primary);
  color: var(--accent);
  border: 1px solid rgba(200, 164, 78, 0.35);
}

.floating-contact .float-btn.em::before {
  content: '✉';
  position: absolute;
  left: 50%;
  top: 47%;
  transform: translate(-50%, -50%);
  font-size: 2.45rem;
  font-weight: 700;
  line-height: 1;
}

/* Home-only spacing and label size refinements */
body.home-page .features,
body.home-page .about-preview,
body.home-page .products-section,
body.home-page .certifications,
body.home-page .case-studies,
body.home-page .blog-preview {
  padding-top: 62px;
  padding-bottom: 62px;
}

body.home-page .features .section-label,
body.home-page .about-preview .section-label,
body.home-page .products-section .section-label,
body.home-page .certifications .section-label,
body.home-page .case-studies .section-label,
body.home-page .blog-preview .section-label {
  font-size: 0.84rem;
}

.floating-contact .float-btn:hover {
  transform: scale(1.06);
}

.float-tooltip {
  position: absolute;
  right: 100%;
  margin-right: 12px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  background: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.floating-contact .float-btn:hover .float-tooltip {
  opacity: 1;
}

/* Mobile bottom quick actions */
.mobile-quickbar {
  display: none;
  position: fixed;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 1003;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #dfe3ea;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(10, 22, 40, 0.16);
  backdrop-filter: blur(6px);
  padding: 6px 4px;
}

.mobile-quickbar .quickbar-inner {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  text-align: center;
}

.mobile-quickbar .quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-dark);
  font-size: 0.66rem;
  font-weight: 600;
  min-height: 52px;
}

.mobile-quickbar .quick-item svg {
  width: 23px;
  height: 23px;
  stroke: #3d4456;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mobile-quickbar .quick-item.quick-top {
  position: relative;
}

.mobile-quickbar .quick-item.quick-top .top-pill {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(200, 164, 78, 0.38);
}

.mobile-quickbar .quick-item.quick-top svg {
  width: 18px;
  height: 18px;
  stroke: var(--primary);
}

@media (max-width: 768px) {
  .hero-carousel {
    --hero-banner-height: min(74vh, 640px);
    min-height: 500px;
  }
  /* Title + CTAs from top; bottom padding for dots only (contact bar hidden on mobile) */
  .carousel-slide {
    align-items: flex-start;
    justify-content: flex-start;
    padding: 88px 16px 96px;
  }
  .hero-carousel .carousel-slide .container.slide-content {
    z-index: 8;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 100%;
  }
  .hero-carousel .slide-content .cta-buttons {
    margin-bottom: 0;
    margin-top: 0.15rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
    width: 100%;
    max-width: min(100%, 400px);
  }
  .hero-carousel .slide-content .cta-buttons .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 10px;
    font-size: 0.82rem;
    letter-spacing: 0.35px;
  }
  /* Unified headline scale on small screens (all slides) */
  .hero-carousel .slide-content h1,
  .hero-carousel .slide-content h2 {
    font-size: clamp(1.42rem, 5.2vw, 2rem);
    line-height: 1.18;
    margin-bottom: 0.7rem;
    letter-spacing: -0.015em;
  }
  .hero-carousel .slide-content .section-desc {
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 1.1rem;
    max-width: 100%;
  }
  .hero-carousel .hero-badge {
    margin-bottom: 0.55rem;
    padding: 6px 14px;
    font-size: 0.72rem;
  }
  /* Slide 1: add invisible badge space to match slides 2-5 alignment */
  .hero-carousel .hero-badge-spacer {
    display: inline-flex;
    visibility: hidden;
  }
  .carousel-arrow { width: 40px; height: 40px; font-size: 1rem; }
  .carousel-arrow.prev { left: 8px; }
  .carousel-arrow.next { right: 8px; }
  /* Stack: dots directly above contact bar (below CTA buttons) */
  .hero-carousel-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 12px max(14px, env(safe-area-inset-bottom, 0px));
    z-index: 11;
    pointer-events: none;
  }
  .hero-carousel-bottom .carousel-indicators,
  .hero-carousel-bottom .carousel-contact-bar {
    pointer-events: auto;
  }
  /* Home carousel: contact lives in quick bar / float desktop only */
  .hero-carousel-bottom .carousel-contact-bar {
    display: none !important;
  }
  .hero-carousel-bottom .carousel-indicators {
    position: static;
    left: auto;
    bottom: auto;
    transform: none;
    z-index: 5;
    gap: 8px;
  }
  .carousel-indicators .indicator {
    width: 9px;
    height: 9px;
  }
  .floating-contact .float-btn.em::before {
    font-size: 2.45rem;
  }
  .float-tooltip { display: none; }
  .floating-contact,
  .back-to-top {
    display: none !important;
  }
  .mobile-quickbar {
    display: block;
  }
  body {
    padding-bottom: 88px;
  }

  /* Product cards: always show full product image on mobile */
  .product-page-card .product-img {
    height: clamp(320px, 76vw, 460px);
    background: #f6f7fa;
    overflow: hidden;
  }
  .product-page-card .product-img .img-cover {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    padding: 0;
    transform: none;
  }
  .product-page-card .product-img .img-cover.p1-thumb-shrink {
    transform: scale(0.91);
    transform-origin: center;
  }
}

@media (max-width: 400px) {
  .hero-carousel .slide-content .cta-buttons {
    grid-template-columns: 1fr;
    max-width: 300px;
    gap: 10px;
  }
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--primary);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary) 0%, #0f2038 50%, #162a4a 100%);
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,164,78,0.08) 0%, transparent 70%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,164,78,0.05) 0%, transparent 70%);
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200,164,78,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,164,78,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 60px;
}

.hero-content { max-width: 580px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(200,164,78,0.12);
  border: 1px solid rgba(200,164,78,0.25);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 28px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.15;
}

.hero h1 .highlight {
  color: var(--accent);
  position: relative;
}

.hero-text {
  color: rgba(255,255,255,0.65);
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 480px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 50px;
}

.hero-stats {
  display: flex;
  gap: 48px;
}

.hero-stat {
  text-align: left;
}

.hero-stat .number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.hero-stat .label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-top: 6px;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.hero-image-wrapper .main-image {
  width: 100%;
  height: 520px;
  background: linear-gradient(145deg, var(--primary-light), #1f3558);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(200,164,78,0.15);
}

.lock-illustration {
  text-align: center;
  color: var(--accent);
}

.lock-illustration svg {
  width: 200px;
  height: 200px;
  opacity: 0.3;
}

.hero-float-card {
  position: absolute;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 6s ease-in-out infinite;
}

.hero-float-card.card-1 {
  top: 40px;
  right: -30px;
  animation-delay: 0s;
}

.hero-float-card.card-2 {
  bottom: 60px;
  left: -20px;
  animation-delay: 2s;
}

.hero-float-card .card-icon {
  width: 42px;
  height: 42px;
  background: rgba(200,164,78,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.hero-float-card .card-text {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
}

.hero-float-card .card-sub {
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
}

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

/* ===== SECTIONS COMMON ===== */
section {
  padding: 100px 0;
}

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

/* ===== FEATURES / WHY CHOOSE US ===== */
.features {
  background: #f2f4f8;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  transition: var(--transition);
  border: 1px solid var(--gray-100);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(200,164,78,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--accent-dark);
}

.feature-icon-image {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  margin-bottom: 20px;
  border: 1px solid var(--gray-100);
  display: block;
}

.feature-card h4 {
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-weight: 700;
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0;
}

/* ===== ABOUT PREVIEW ===== */
.about-preview {
  background: #ffffff;
}

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

.about-image {
  position: relative;
}

.about-image > img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}

.about-image .image-main {
  width: 100%;
  height: 450px;
  background: linear-gradient(145deg, #e8e4dd, #d4cfc6);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.about-image .image-main::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.3), transparent);
}

.about-image .exp-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 140px;
  height: 140px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.exp-badge .number {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.exp-badge .text {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-content .section-label { margin-bottom: 12px; }
.about-content .section-title { margin-bottom: 20px; }
.about-content .about-text {
  color: var(--text-body);
  margin-bottom: 32px;
  font-size: 1.02rem;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 36px;
}

.about-highlight {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.about-highlight .check {
  width: 26px;
  height: 26px;
  min-width: 26px;
  background: rgba(200,164,78,0.16);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 2px;
}

.about-highlight span {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dark);
}

/* ===== PRODUCTS ===== */
.products-section {
  background: var(--primary);
  color: var(--white);
}

.products-section .section-title { color: var(--white); }
.products-section .section-desc { color: rgba(255,255,255,0.6); }

.products-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.products-tabs .tab {
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.15);
  transition: var(--transition);
  cursor: pointer;
}

.products-tabs .tab:hover,
.products-tabs .tab.active {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}

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

.product-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(200,164,78,0.3);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.product-card .product-image {
  height: 340px;
  background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-card .product-image .product-image-link {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card .product-image .img-cover {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}

.product-card .product-image .product-placeholder {
  font-size: 5rem;
  opacity: 0.2;
}

.product-card .product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 12px;
  background: var(--accent);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.product-info h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 8px;
}

.product-info .product-model {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.product-features span {
  padding: 4px 10px;
  background: rgba(255,255,255,0.06);
  border-radius: 50px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: auto;
}

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

.product-home-btn {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent), var(--accent-light));
  padding: 80px 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--primary);
  margin-bottom: 16px;
}

.cta-banner p {
  color: var(--primary);
  opacity: 0.7;
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto 32px;
}

.cta-banner .cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.cta-banner .btn {
  min-width: 250px;
  justify-content: center;
}

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

.cta-banner .btn-primary:hover {
  background: #13243f;
  border-color: #13243f;
  color: var(--white);
}

.cta-banner .btn-outline {
  border-color: rgba(10, 22, 40, 0.65);
  color: var(--primary);
  background: transparent;
}

.cta-banner .btn-outline:hover {
  background: rgba(10, 22, 40, 0.08);
  border-color: var(--primary);
  color: var(--primary);
}

/* ===== CERTIFICATIONS ===== */
.certifications {
  background: var(--off-white);
}

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

.cert-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.cert-item .cert-icon {
  width: 84px;
  height: 54px;
  background: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent-dark);
  border: 2px solid var(--gray-200);
  transition: var(--transition);
  letter-spacing: 0.08em;
}

.cert-item:hover .cert-icon {
  border-color: var(--accent);
  transform: scale(1.1);
}

.cert-item .cert-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* ===== TESTIMONIALS / CASE STUDIES ===== */
.case-studies {
  position: relative;
  overflow: hidden;
}

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

.case-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}

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

.case-card .case-image {
  height: 200px;
  width: 100%;
  object-fit: cover;
  display: block;
  background: linear-gradient(145deg, var(--primary-light), var(--primary));
  color: var(--accent);
  font-size: 2.5rem;
  opacity: 1;
}

.case-card .case-info {
  padding: 24px;
}

.case-card .case-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.case-card h4 {
  margin-bottom: 10px;
  font-family: var(--font-body);
}

.case-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

/* ===== BLOG PREVIEW ===== */
.blog-preview {
  background: var(--off-white);
}

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

.blog-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}

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

.blog-card .blog-image {
  height: 200px;
  width: 100%;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
}

.blog-card .blog-info {
  padding: 24px;
}

.blog-card .blog-date {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 10px;
}

.blog-card h4 {
  margin-bottom: 10px;
  font-family: var(--font-body);
  transition: var(--transition);
}

.blog-card:hover h4 {
  color: var(--accent-dark);
}

.blog-card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 2px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand .footer-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent) url("../images/local/logo-xianda.jpg") center center / 280% 280% no-repeat;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: transparent;
  overflow: hidden;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 24px;
  color: rgba(255,255,255,0.5);
}

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

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}

.footer-social.platform-social a {
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 0.84rem;
}

.footer-social.platform-social a.social-whatsapp { background: #25d366; }
.footer-social.platform-social a.social-linkedin { background: #0a66c2; }
.footer-social.platform-social a.social-facebook { background: #1877f2; }
.footer-social.platform-social a.social-youtube { background: #ff0000; }
.footer-social.platform-social a.social-tiktok { background: #000; }

.footer-social.platform-social a:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  color: #fff;
}

.footer-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
}

.footer-social.platform-social a.social-whatsapp:hover,
.footer-social.platform-social a.social-linkedin:hover,
.footer-social.platform-social a.social-facebook:hover,
.footer-social.platform-social a.social-youtube:hover,
.footer-social.platform-social a.social-tiktok:hover {
  border-color: transparent;
  color: #fff;
}

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--accent);
  padding-left: 6px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px !important;
}

.footer-contact .icon {
  width: 20px;
  text-align: center;
  color: var(--accent);
  margin-top: 2px;
}

.footer-contact span {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

.footer-contact .footer-wa {
  color: #25d366;
}
.footer-contact .footer-wa:hover {
  color: #34eb75;
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

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

/* ===== PAGES: ABOUT ===== */
.page-hero {
  background: var(--primary);
  padding: 113px 0 39px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200,164,78,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,164,78,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
}

.page-hero p {
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.page-hero .breadcrumb {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 24px;
  position: relative;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 32px;
}

.page-hero .breadcrumb a {
  color: var(--accent);
  font-size: 0.85rem;
}

.page-hero .breadcrumb span {
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
}

/* About Page Specific */
.about-story {
  padding: 37px 0 84px;
}

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

.story-image {
  height: 500px;
  background: linear-gradient(145deg, #e8e4dd, #d4cfc6);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.story-content h2 { margin-bottom: 20px; }
.story-content p {
  margin-bottom: 16px;
  color: var(--text-body);
  font-size: 1.02rem;
}

.values-section {
  background: var(--off-white);
  padding: 100px 0;
}

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

.value-card {
  background: var(--white);
  padding: 40px 32px;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}

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

.value-card .value-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: rgba(200,164,78,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.value-card h4 { margin-bottom: 12px; }
.value-card p {
  color: var(--text-light);
  font-size: 0.92rem;
  margin: 0;
}

.timeline-section {
  padding: 100px 0;
}

.about-stats-section {
  background: var(--primary);
  padding: 80px 0;
}

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

.about-stat-value {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.about-stat-label {
  color: rgba(255, 255, 255, 0.6);
  margin-top: 8px;
  font-size: 0.9rem;
}

.timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 48px;
  position: relative;
}

.timeline-item:nth-child(odd) { flex-direction: row-reverse; }

.timeline-item .timeline-dot {
  width: 16px;
  height: 16px;
  background: var(--accent);
  border: 4px solid var(--white);
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 4px rgba(200,164,78,0.2);
  z-index: 1;
}

.timeline-item .timeline-content {
  width: 44%;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
}

.timeline-item .timeline-year {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.timeline-item .timeline-text {
  font-size: 0.9rem;
  color: var(--text-body);
  margin: 0;
}

/* ===== PRODUCTS PAGE ===== */
.products-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 80px 0;
}

.product-page-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.product-page-card .product-img {
  height: 360px;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-page-card .product-img > a {
  position: absolute;
  inset: 0;
  display: block;
}

.product-page-card .product-img .placeholder-icon {
  font-size: 5rem;
  opacity: 0.15;
}

.product-page-card .product-img .img-cover {
  position: absolute;
  inset: 0;
  object-fit: contain;
  object-position: center;
  padding: 0;
}
.product-page-card .product-details {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-page-card .product-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.product-page-card h3 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.product-page-card .product-desc {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.product-page-card .product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.product-page-card .product-specs span {
  padding: 4px 12px;
  background: var(--off-white);
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--text-body);
  font-weight: 500;
}

.product-page-card .btn {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

.products-catalog-section {
  padding: 24px 0 64px;
}

.products-catalog-section .products-tabs {
  margin-top: 0 !important;
  margin-bottom: 28px !important;
}

.products-catalog-section .products-tabs .tab {
  color: var(--text-body);
  border-color: var(--gray-200);
  background: var(--white);
}

.products-catalog-section .products-tabs .tab:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.products-catalog-section .products-tabs .tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(200, 164, 78, 0.28);
}

.products-catalog-section .products-tabs .tab.active:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
}

.products-catalog-section .products-page-grid {
  padding: 8px 0 0;
}

.page-hero + .section-pad {
  padding-top: 27px;
}

.blog-page-section {
  padding: 23px 0 72px;
}

.page-hero + .contact-section {
  padding-top: 31px;
}

/* ===== CONTACT PAGE ===== */
.contact-section {
  padding: 80px 0;
}

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

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--off-white);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.contact-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.contact-card .card-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  background: rgba(200,164,78,0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--accent-dark);
}

.contact-card h4 {
  font-family: var(--font-body);
  margin-bottom: 6px;
}

.contact-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
}

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

.contact-form h3 {
  margin-bottom: 8px;
}

.contact-form .form-desc {
  color: var(--text-light);
  font-size: 0.92rem;
  margin-bottom: 32px;
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--off-white);
  color: var(--text-dark);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,164,78,0.1);
  background: var(--white);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form .btn {
  width: 100%;
  justify-content: center;
  padding: 16px;
}

/* ===== MAP ===== */
.map-section {
  height: 400px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 1.1rem;
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  cursor: pointer;
}

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

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

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

/* ===== DETAIL PAGES ===== */
.detail-subnav {
  background: var(--primary);
  padding: 92px 0 10px;
}

.detail-subnav .breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
}

.detail-subnav .breadcrumb a {
  color: var(--accent);
  font-size: 0.84rem;
}

.detail-subnav .breadcrumb span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.84rem;
}

.detail-hero {
  background: var(--primary);
  padding: 24px 0 80px;
  color: var(--white);
}
.detail-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 36px;
  align-items: center;
}
.detail-hero h1 { color: var(--white); margin-bottom: 14px; }
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.detail-meta span {
  padding: 4px 10px;
  border-radius: 30px;
  font-size: 0.75rem;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.75);
}
.detail-hero p { color: rgba(255,255,255,0.7); margin-bottom: 24px; font-size: 1rem; }
.detail-image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow-xl);
  background: rgba(255,255,255,0.04);
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 10px;
  padding: 10px;
}
.detail-gallery-main {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  z-index: 1;
}
.detail-image-wrap img {
  width: 100%;
  height: clamp(360px, 50vw, 560px);
  object-fit: contain;
  object-position: center;
  background: #f6f7fa;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(10,22,40,0.42);
  color: var(--white);
  font-size: 1.4rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }
.detail-gallery-thumbs {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 8px;
  background: transparent;
  position: relative;
  z-index: 3;
}
.detail-gallery-thumbs .thumb {
  border: 1px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  opacity: 0.72;
  transition: var(--transition);
  cursor: pointer;
  pointer-events: auto;
}
.detail-gallery-thumbs .thumb:hover,
.detail-gallery-thumbs .thumb.active {
  border-color: var(--accent);
  opacity: 1;
}
.detail-gallery-thumbs .thumb img {
  width: 100%;
  height: 75px;
  object-fit: cover;
}

/* Product detail: HP01 / X6 / X9 / F7 only — first main slide +50%, container size unchanged */
.detail-image-wrap.pd-zoom-first-assets .detail-gallery-main #productImage {
  transition: transform 0.25s ease;
}
.detail-image-wrap.pd-zoom-first-assets .detail-gallery-main #productImage.pd-main-zoom-active {
  transform: scale(1.5);
  transform-origin: center center;
}

/* Home featured product image subject +20% (border unchanged) */
.products-section .product-card .product-image .img-cover.home-thumb-zoom {
  transform: scale(1.2);
  transform-origin: center center;
}

/* Products page: only P1 thumbnail reduced by 1.1x */
.product-page-card .product-img .img-cover.p1-thumb-shrink {
  transform: scale(0.91);
  transform-origin: center center;
}
.detail-content { padding: 90px 0; }
.detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 36px;
}
.detail-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 28px;
}
.detail-card h3 { font-family: var(--font-body); margin-bottom: 14px; }
.detail-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}
.detail-list li {
  font-size: 0.9rem;
  color: var(--text-body);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.detail-list li::before { content: "✓"; color: var(--accent-dark); font-weight: 700; }
.detail-side .mini { margin-bottom: 14px; }
.detail-side .mini h4 { font-family: var(--font-body); margin-bottom: 8px; }
.detail-side .mini p { margin: 0; color: var(--text-light); font-size: 0.9rem; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.related-card {
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  transition: var(--transition);
}
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.related-card img { width: 100%; height: 170px; object-fit: cover; }
.related-card .related-image-link {
  display: block;
}
#relatedProducts .related-card .related-image-link {
  height: 320px;
  background: #f6f7fa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#relatedProducts .related-card img {
  width: auto;
  height: 94%;
  max-width: 92%;
  object-fit: contain;
  object-position: center;
  background: transparent;
  padding: 0;
}
/* Related products thumb +20% (1.2×); P1 (id=5) excluded */
#relatedProducts .related-card .related-image-link:not([href$="id=5"]) img {
  transform: scale(1.2);
  transform-origin: center center;
}
.related-card .info { padding: 16px; }
.related-card .info {
  display: flex;
  flex-direction: column;
  min-height: 220px;
}
.related-card .info .related-meta {
  font-size: 0.78rem;
  color: var(--accent-dark);
  font-weight: 600;
  margin: 0 0 6px;
}
.related-card .info h4 { font-family: var(--font-body); font-size: 1rem; margin-bottom: 8px; }
.related-card .info p { font-size: 0.88rem; color: var(--text-light); margin: 0 0 10px; }
.related-card .info .btn {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}
.blog-article-content { color: var(--text-body); font-size: 1rem; line-height: 1.8; }
.blog-article-content h2, .blog-article-content h3 { font-family: var(--font-body); margin: 26px 0 12px; color: var(--text-dark); }
.blog-article-content ul, .blog-article-content ol { padding-left: 20px; margin: 8px 0 16px; }
.blog-article-content li { margin-bottom: 8px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content { max-width: 100%; }
  .hero-text { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .about-preview .container { grid-template-columns: 1fr; gap: 40px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .about-story .container { grid-template-columns: 1fr; gap: 40px; }
  .products-page-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }

  .blog-page-grid { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
  .blog-list-card { grid-template-columns: 1fr; }
  .blog-thumb { min-height: 220px; max-height: 280px; }
  .factory-intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .factory-areas-grid { grid-template-columns: repeat(2, 1fr); }
  .factory-stats-grid { grid-template-columns: repeat(2, 1fr); }

  .detail-hero-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-image-wrap { grid-template-columns: 1fr; padding: 8px; }
  .detail-gallery-thumbs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }
  .detail-gallery-thumbs .thumb img { height: 56px; }
}

@media (max-width: 768px) {
  section { padding: 70px 0; }

  .nav-links,
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(300px, 82vw);
    height: 100vh;
    background: var(--primary);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 16px;
    padding: 96px 30px 30px;
    transition: var(--transition);
    box-shadow: -10px 0 40px rgba(0,0,0,0.3);
    overflow-y: auto;
  }

  .nav-links.active,
  .nav-menu.active { right: 0; }
  .nav-links a,
  .nav-menu a {
    font-size: 1rem;
    line-height: 1.35;
    padding: 4px 0;
  }
  .nav-links .nav-cta,
  .nav-menu .nav-cta {
    margin-top: 8px;
    align-self: flex-start;
    padding: 10px 20px !important;
  }
  .nav-links .nav-lang,
  .nav-menu .nav-lang {
    margin-top: 6px;
    width: 100%;
  }
  .nav-links .lang-switcher,
  .nav-menu .lang-switcher {
    width: 100%;
    max-width: 220px;
    font-size: 0.92rem;
  }
  .nav-lang-inline {
    width: 100%;
    margin-top: 4px;
    margin-left: 0;
  }
  .lang-switcher-mini {
    width: 100%;
    max-width: 86px;
    font-size: 0.66rem;
    min-width: 0;
    padding: 4px 18px 4px 7px;
  }
  .hamburger { display: flex; }
  .hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 1px;
    background: var(--white);
  }

  .features-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
  .values-grid { grid-template-columns: 1fr; }
  .products-page-grid { grid-template-columns: 1fr; }

  .footer {
    padding: 36px 0 0;
  }
  .footer-grid {
    gap: 18px 16px;
    padding-bottom: 22px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-brand .footer-logo {
    margin-bottom: 8px;
    font-size: 1.28rem;
  }
  .footer-brand p {
    margin-bottom: 10px;
    line-height: 1.5;
    font-size: 0.92rem;
  }
  .footer-col h4 {
    margin-bottom: 8px;
    font-size: 0.98rem;
  }
  .footer-col ul:not(.footer-contact) {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
    row-gap: 2px;
  }
  .footer-col ul li {
    margin-bottom: 6px;
  }
  .footer-col ul li a {
    font-size: 0.92rem;
    line-height: 1.35;
  }
  .footer-col.footer-contact {
    grid-column: 1 / -1;
  }
  .footer-contact li {
    margin-bottom: 6px !important;
    gap: 8px;
  }
  .footer-contact span,
  .footer-contact a {
    font-size: 0.92rem;
    line-height: 1.35;
  }
  .footer-social {
    gap: 8px;
  }
  .footer-social a {
    width: 34px;
    height: 34px;
  }
  .footer-bottom {
    padding: 12px 0;
    font-size: 0.74rem;
  }
  .footer-bottom-links {
    gap: 10px;
  }

  .hero-stats { gap: 24px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .cta-banner .cta-buttons { flex-direction: column; align-items: center; }

  .about-highlights { grid-template-columns: 1fr; }

  .timeline::before { left: 20px; }
  .timeline-item { flex-direction: row !important; padding-left: 50px; }
  .timeline-item .timeline-dot { left: 20px; transform: translateX(-50%); }
  .timeline-item .timeline-content { width: 100%; }

  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }

  .page-hero { padding: 105px 0 37px; }
  .page-hero .breadcrumb {
    padding: 0 24px;
  }

  .factory-areas-grid { grid-template-columns: 1fr; }
  .factory-stats-grid { grid-template-columns: 1fr; }
  .cta-banner.newsletter-cta .newsletter-form { flex-direction: column; }
  .cta-banner.newsletter-cta input[type="email"] { width: 100%; }

  .detail-list { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .detail-gallery-thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .detail-gallery-thumbs .thumb img { height: 62px; }
  .detail-image-wrap img {
    width: 100%;
    max-width: 100%;
    height: clamp(420px, 92vw, 620px);
    object-fit: contain;
    object-position: center;
    background: #f6f7fa;
    margin: 0 auto;
  }
  #relatedProducts .related-card .related-image-link {
    height: clamp(280px, 72vw, 420px);
  }
  #relatedProducts .related-card img {
    width: auto;
    height: 94%;
    max-width: 94%;
    object-fit: contain;
    object-position: center;
    background: transparent;
    padding: 0;
  }
  #relatedProducts .related-card .related-image-link:not([href$="id=5"]) img {
    transform: scale(1.2);
    transform-origin: center center;
  }
  .product-card .product-image {
    height: clamp(320px, 78vw, 460px);
  }
  .product-card .product-image .img-cover {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
  }
  .detail-subnav {
    padding: 74px 0 8px;
  }
  .detail-subnav .breadcrumb {
    gap: 8px;
  }
  .detail-subnav .breadcrumb a,
  .detail-subnav .breadcrumb span {
    font-size: 0.78rem;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .page-hero .breadcrumb {
    padding: 0 16px;
  }
  .hero-stats { flex-direction: column; gap: 16px; text-align: center; }
  .cert-grid { gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ===== BLOG LISTING PAGE ===== */
.blog-page-section {
  padding: 58px 0 80px;
  background: var(--off-white);
}

.blog-page-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

.blog-main-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.blog-list-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.blog-list-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(200, 164, 78, 0.35);
}

.blog-thumb {
  position: relative;
  min-height: 200px;
  background: var(--gray-100);
}

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

.blog-body {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.blog-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.blog-date {
  font-size: 0.82rem;
  color: var(--text-light);
}

.blog-list-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--text-dark);
  transition: var(--transition);
}

.blog-list-card:hover h3 { color: var(--accent-dark); }

.blog-excerpt {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
  flex: 1;
}

.read-more {
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-dark);
}

.blog-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

.sidebar-widget h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-100);
}

.category-list { list-style: none; padding: 0; margin: 0; }

.category-list li {
  border-bottom: 1px solid var(--gray-100);
}

.category-list li:last-child { border-bottom: none; }

.category-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--text-body);
}

.category-list a:hover { color: var(--accent-dark); }

.category-list a span { color: var(--text-light); font-size: 0.85rem; }

.popular-posts a {
  justify-content: flex-start;
  font-weight: 500;
}

.sidebar-cta p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

.sidebar-cta .btn { width: 100%; justify-content: center; }

.cta-banner.newsletter-cta .newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  max-width: 520px;
  margin: 0 auto;
}

.cta-banner.newsletter-cta input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(10, 22, 40, 0.12);
  background: var(--white);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Late mobile overrides for pages defined below responsive block */
@media (max-width: 768px) {
  .blog-page-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .blog-sidebar {
    position: static;
    width: 100%;
  }
  .blog-list-card {
    grid-template-columns: 1fr;
  }
  .blog-thumb {
    min-height: 220px;
    max-height: 280px;
  }

  .about-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 14px;
  }
  .about-stat-value {
    font-size: 2rem;
  }
}

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

/* ===== FACTORY PAGE ===== */
.section-pad { padding: 90px 0; }

.factory-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.factory-intro-text p { color: var(--text-light); margin-bottom: 1rem; }

.factory-intro-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: clamp(340px, 38vw, 460px);
}

.factory-intro-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.factory-areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.factory-area-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}

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

.factory-area-img {
  height: 200px;
  overflow: hidden;
  background: var(--gray-100);
}

.factory-area-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.factory-area-body { padding: 22px; }

.factory-area-body h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.factory-area-body p {
  font-size: 0.92rem;
  color: var(--text-light);
  margin-bottom: 0;
}

.factory-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.factory-stat {
  text-align: center;
  padding: 32px 20px;
  background: var(--primary);
  border-radius: var(--radius-md);
  color: var(--white);
}

.factory-stat-value {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.factory-stat-label {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
}

.factory-process-steps {
  list-style: none;
  padding: 0;
  margin: 40px auto 0;
  max-width: 800px;
  counter-reset: step;
}

.factory-process-steps li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-200);
}

.factory-process-steps li:last-child { border-bottom: none; }

.factory-step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.factory-step-text {
  font-size: 0.98rem;
  color: var(--text-body);
  line-height: 1.65;
}

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

/* Late mobile override for factory layout (prevents desktop rules overriding mobile) */
@media (max-width: 768px) {
  .factory-intro-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: stretch;
  }

  .factory-intro-text {
    order: 1;
  }

  .factory-intro-media {
    order: 2;
    width: 100%;
    height: 260px;
  }

  .factory-intro-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .factory-areas-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 28px;
  }

  .factory-area-img {
    height: 220px;
  }

  .factory-area-body {
    padding: 18px;
  }

  .factory-area-body h3 {
    font-size: 1.02rem;
    margin-bottom: 8px;
  }

  .factory-area-body p {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .factory-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .factory-stat {
    padding: 22px 14px;
  }

  .factory-stat-value {
    font-size: 1.8rem;
    margin-bottom: 6px;
  }

  .factory-stat-label {
    font-size: 0.84rem;
    line-height: 1.35;
  }
}

@media (max-width: 480px) {
  .factory-intro-media img {
    height: 100%;
  }

  .factory-stats-grid {
    grid-template-columns: 1fr;
  }
}
