/* ============================================
   PRECISION MOLD & DIE MANUFACTURER
   European/American Heavy Industrial B2B Style
   ============================================ */

/* --- Tailwind CDN --- */
@import url('https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css');

/* --- Design Tokens --- */
:root {
  --primary: #09172A;
  --primary-light: #0F2440;
  --accent: #B8860B;
  --accent-hover: #9A6F09;
  --tech-blue: #2563EB;
  --tech-blue-hover: #1D4ED8;
  --bg-light: #F8FAFC;
  --text-muted: #64748B;
  --text-dark: #1E293B;
  --white: #FFFFFF;
  --border: #E2E8F0;
  --shadow-sm: 0 1px 2px rgba(9, 23, 42, 0.06);
  --shadow-md: 0 4px 16px rgba(9, 23, 42, 0.08);
  --shadow-lg: 0 8px 32px rgba(9, 23, 42, 0.12);
  --transition-fast: 220ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base Reset & Typography --- */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Navbar --- */
.navbar {
  background: rgba(9, 23, 42, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184, 134, 11, 0.15);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--transition-fast);
}
.navbar.scrolled {
  background: rgba(9, 23, 42, 0.99);
  border-bottom-color: rgba(184, 134, 11, 0.3);
}
.nav-link {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  padding: 8px 0;
  position: relative;
  transition: color var(--transition-fast);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition-base);
}
.nav-link:hover { color: var(--accent); }
.nav-link:hover::after { width: 100%; }

/* --- Dropdown --- */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--primary-light);
  border: 1px solid rgba(184, 134, 11, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition-fast);
  pointer-events: none;
}
.dropdown:hover .dropdown-menu,
.dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.2px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: all var(--transition-fast);
}
.dropdown-menu a:hover {
  background: rgba(184, 134, 11, 0.12);
  color: var(--accent);
  padding-left: 20px;
}

/* --- Mobile Menu --- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: var(--primary);
  z-index: 2000;
  transition: right var(--transition-base);
  overflow-y: auto;
  padding: 80px 24px 24px;
}
.mobile-menu.open { right: 0; }
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}
.mobile-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* --- Hero --- */
.hero-section {
  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, #09172A 0%, #0F2440 40%, #0A1E38 100%);
  z-index: 0;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(184,134,11,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,134,11,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; }
.hero-line {
  width: 80px;
  height: 4px;
  background: var(--accent);
  margin-bottom: 24px;
}

/* --- Section Headings --- */
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.5px;
  color: var(--primary);
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.7;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 14px 36px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  line-height: 1;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(184, 134, 11, 0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(184,134,11,0.08);
}
.btn-dark {
  background: var(--primary);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(9, 23, 42, 0.35);
}
.btn-tech {
  background: var(--tech-blue);
  color: var(--white);
}
.btn-tech:hover {
  background: var(--tech-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
}

/* --- Cards --- */
.industrial-card {
  background: var(--white);
  border: 1px solid var(--border);
  transition: all var(--transition-base);
  position: relative;
}
.industrial-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.industrial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition-fast);
  transform-origin: left;
}
.industrial-card:hover::before {
  transform: scaleX(1);
}

/* --- Stats Counter Bar --- */
.stats-bar {
  background: var(--primary);
  border-top: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
}

/* --- Image placeholder --- */
.img-placeholder {
  background: linear-gradient(135deg, #1E293B 0%, #0F2440 100%);
  position: relative;
  overflow: hidden;
}
.img-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(184,134,11,0.05) 25%, transparent 25%),
              linear-gradient(-45deg, rgba(184,134,11,0.05) 25%, transparent 25%);
  background-size: 4px 4px;
}

/* --- Section Dividers --- */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* --- Form Elements --- */
.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  transition: all var(--transition-fast);
}
.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.08);
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 6px;
}

/* --- Footer --- */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  line-height: 1.8;
}
.footer-heading {
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}
.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent);
}
.footer-link {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.footer-link:hover { color: var(--accent); }

/* --- Floating Contact Widget --- */
.floating-contact {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.floating-contact .contact-item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: var(--primary);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: all var(--transition-fast);
  overflow: hidden;
  width: 52px;
  height: 52px;
}
.floating-contact .contact-item:hover {
  width: 200px;
  background: var(--accent);
}
.floating-contact .contact-icon {
  min-width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--white);
}
.floating-contact .contact-text {
  white-space: nowrap;
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  padding-right: 16px;
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.floating-contact .contact-item:hover .contact-text {
  opacity: 1;
}
/* WeChat QR hover */
.qr-popup {
  position: absolute;
  right: 220px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--white);
  border: 2px solid var(--accent);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-lg);
}
.qr-popup.show {
  opacity: 1;
  visibility: visible;
}
.qr-placeholder {
  width: 140px;
  height: 140px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
}

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 120px 0 40px;
  background: var(--primary);
}
.breadcrumb a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14px; transition: color var(--transition-fast); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--accent); font-size: 14px; }

/* --- Page Header --- */
.page-header {
  background: var(--primary);
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(184,134,11,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,134,11,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.page-header h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--white);
  position: relative;
  z-index: 1;
}
.page-header .header-line {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 20px auto;
  position: relative;
  z-index: 1;
}
.page-header p {
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  position: relative;
  z-index: 1;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: all 600ms cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Product Grid Filter --- */
.filter-btn {
  padding: 10px 24px;
  border: 1px solid var(--border);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.filter-btn:hover,
.filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(184,134,11,0.05);
}

/* --- Spec Table --- */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.spec-table td:first-child {
  font-weight: 600;
  color: var(--primary);
  width: 40%;
  background: var(--bg-light);
}

/* --- News Card --- */
.news-card {
  background: var(--white);
  border: 1px solid var(--border);
  transition: all var(--transition-base);
}
.news-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}
.news-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(184,134,11,0.1);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* --- OEM/ODM Banner --- */
.oem-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-top: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
}

/* --- Quality Cert Badge --- */
.cert-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  transition: all var(--transition-fast);
}
.cert-badge:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .floating-contact { display: none; }
  .navbar .nav-links { display: none; }
  .section-title { font-size: 26px; }
  .btn { padding: 12px 28px; font-size: 13px; }
  .page-header { padding: 120px 0 60px; }
}
