/* ===== Haojing Glass — Luxury B2B Manufacturer ===== */
/* ===== Design System v2 — Champagne Gold Edition ===== */

/* Color System */
:root {
  --black: #0A0A0A;
  --dark-surface: #151515;
  --champagne-gold: #C9A84C;
  --warm-white: #F5F0E8;
  --muted-gray: #9E9E9E;
  --border: #2A2A2A;
  --white: #ffffff;
  --gold: #C9A84C;
  --gold-light: #D4B96A;
  --gold-dark: #B8943A;
  --black-2: #151515;
  --black-3: #2A2A2A;
  --gray-100: #F5F0E8;
  --gray-200: #2A2A2A;
  --gray-400: #9E9E9E;
  --gray-600: #9E9E9E;
  --gray-800: #555555;
  --off-white: #F5F0E8;
  --glass-blue: rgba(201, 168, 76, 0.08);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--warm-white);
  background: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
p { font-size: clamp(0.95rem, 1.5vw, 1.1rem); color: var(--muted-gray); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* Section Padding */
section { padding: 5rem 0; }
@media (max-width: 768px) { section { padding: 3rem 1rem; } }

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,0.15);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
}

/* Logo: HAOJING GLASS + Subtitle */
.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}
.logo-main {
  color: var(--white);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}
.logo-sub {
  color: var(--champagne-gold);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 300;
  opacity: 0.85;
}
.logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--champagne-gold), var(--gold-dark));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--black); font-weight: 700;
}

.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a {
  color: var(--muted-gray); font-size: 0.8rem; letter-spacing: 0.06em;
  text-transform: uppercase; transition: color 0.3s; position: relative;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px;
  background: var(--champagne-gold); transition: width 0.3s;
}
.nav-links a:hover { color: var(--champagne-gold); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--champagne-gold); }

/* CTA Button in Nav */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, var(--champagne-gold), var(--gold-dark));
  color: var(--black) !important;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 0;
  transition: all 0.3s;
  margin-left: 0.5rem;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(201,168,76,0.35);
}
.nav-cta::after { display: none !important; }

.mobile-toggle { display: none; color: var(--champagne-gold); font-size: 1.5rem; cursor: pointer; background: none; border: none; }
@media (max-width: 768px) {
  .mobile-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 80px; left: 0; right: 0;
    background: var(--dark-surface); flex-direction: column; padding: 1.5rem; gap: 1.25rem;
    border-bottom: 1px solid rgba(201,168,76,0.15);
  }
  .nav-links.open { display: flex; }
  .nav-cta { margin-left: 0; align-self: flex-start; }
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(135deg, var(--black) 0%, var(--dark-surface) 50%, var(--border) 100%);
  position: relative; overflow: hidden; padding-top: 80px;
}
@media (max-width: 768px) { .hero { min-height: 90vh; } }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(201,168,76,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(201,168,76,0.05) 0%, transparent 50%);
}
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero-badge {
  display: inline-block; padding: 0.4rem 1rem;
  border: 1px solid rgba(201,168,76,0.3); border-radius: 50px;
  color: var(--champagne-gold); font-size: 0.8rem; letter-spacing: 0.08em;
  margin-bottom: 1.5rem; text-transform: uppercase;
}
.hero h1 {
  color: var(--white); margin-bottom: 1.5rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
}
.hero h1 em { color: var(--champagne-gold); font-style: normal; }
.hero p { color: var(--muted-gray); font-size: 1.15rem; margin-bottom: 2.5rem; max-width: 580px; }

.hero-stats { display: flex; gap: 3rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(201,168,76,0.15); }
.hero-stat h3 { color: var(--champagne-gold); font-size: clamp(1.3rem, 4vw, 1.8rem); font-weight: 400; font-family: 'Cormorant Garamond', Georgia, serif; }
.hero-stat p { color: var(--muted-gray); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.25rem; }
@media (max-width: 768px) { .hero-stats { gap: 1rem; flex-wrap: wrap; } }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 2rem; font-size: 0.9rem; letter-spacing: 0.06em;
  border: none; cursor: pointer; transition: all 0.3s; text-transform: uppercase;
}
.btn-gold { background: linear-gradient(135deg, var(--champagne-gold), var(--gold-dark)); color: var(--black); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(201,168,76,0.3); }
.btn-outline { background: transparent; color: var(--champagne-gold); border: 1px solid var(--champagne-gold); }
.btn-outline:hover { background: var(--champagne-gold); color: var(--black); }

/* ===== Section Title ===== */
.section-title { text-align: center; margin-bottom: 4rem; }
.section-title h2 {
  margin-bottom: 1rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
}
.section-title h2 em { color: var(--champagne-gold); font-style: normal; }
.section-title p { max-width: 600px; margin: 0 auto; color: var(--muted-gray); }
.section-subtitle {
  display: inline-block; color: var(--champagne-gold); font-size: 0.8rem;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.75rem;
}

/* ===== Product Grid ===== */
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem; margin-top: 2rem;
}
.product-card {
  background: var(--dark-surface); border: 1px solid var(--border);
  overflow: hidden; transition: all 0.3s; position: relative;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.4); border-color: var(--champagne-gold); }
.product-card img { width: 100%; height: 300px; object-fit: cover; }
@media (max-width: 480px) { .product-card img { height: 220px; } }
.product-info { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.product-info h3 { font-size: 1rem; font-weight: 400; margin-bottom: 0.5rem; color: var(--warm-white); font-family: 'Cormorant Garamond', Georgia, serif; }
.product-info p { font-size: 0.85rem; color: var(--muted-gray); line-height: 1.5; flex: 1; }
.product-tag {
  position: absolute; top: 1rem; left: 1rem;
  padding: 0.3rem 0.75rem; background: var(--champagne-gold); color: var(--black);
  font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase;
}

/* ===== Spec Table ===== */
.spec-table { width: 100%; border-collapse: collapse; margin: 2rem 0; }
.spec-table thead { display: table-header-group; }
.spec-table th, .spec-table td {
  padding: 0.85rem 1.2rem; text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem; color: var(--warm-white);
  line-height: 1.4; vertical-align: middle;
}
.spec-table th {
  background: var(--black); color: var(--champagne-gold); font-weight: 400;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-bottom: 2px solid var(--gold-dark);
}
.spec-table tr:last-child td { border-bottom: none; }
.spec-table tr:hover td { background: var(--dark-surface); }

/* ===== OEM Steps ===== */
.oem-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin: 3rem 0; }
.oem-step { text-align: center; padding: 2rem 1.5rem; border: 1px solid var(--border); transition: all 0.3s; }
.oem-step:hover { border-color: var(--champagne-gold); }
.oem-step-num {
  width: 50px; height: 50px; margin: 0 auto 1rem;
  background: var(--champagne-gold); color: var(--black); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 500;
}
.oem-step h4 { margin-bottom: 0.5rem; font-weight: 400; color: var(--warm-white); font-family: 'Cormorant Garamond', Georgia, serif; }
.oem-step p { font-size: 0.85rem; color: var(--muted-gray); }

/* ===== Contact Form ===== */
.contact-form { max-width: 600px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { display: block; font-size: 0.85rem; color: var(--muted-gray); margin-bottom: 0.4rem; letter-spacing: 0.04em; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.85rem 1rem; border: 1px solid var(--border);
  font-family: inherit; font-size: 0.9rem; transition: border-color 0.3s;
  background: var(--dark-surface); color: var(--warm-white);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--champagne-gold); }
.form-group textarea { min-height: 120px; resize: vertical; }

/* ===== Footer ===== */
.site-footer {
  background: var(--black); color: var(--muted-gray); padding: 4rem 0 2rem;
  border-top: 1px solid rgba(201,168,76,0.1);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
.footer-col h4 {
  color: var(--warm-white); font-size: 0.9rem; font-weight: 400;
  margin-bottom: 1.25rem; letter-spacing: 0.06em; text-transform: uppercase;
  font-family: 'Inter', sans-serif;
}
.footer-col p, .footer-col a { font-size: 0.85rem; color: var(--muted-gray); line-height: 2; display: block; }
.footer-col a:hover { color: var(--champagne-gold); }
.footer-company {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}
.footer-contact-item .icon { color: var(--champagne-gold); font-size: 1rem; flex-shrink: 0; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.05); text-align: center; font-size: 0.8rem; color: var(--muted-gray); }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ===== Cert Grid ===== */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 2rem; }
.cert-card { text-align: center; padding: 2rem 1rem; border: 1px solid var(--border); background: var(--dark-surface); }
.cert-card img { width: 80px; height: 80px; object-fit: contain; margin: 0 auto 1rem; filter: brightness(0.9) sepia(0.3); }
.cert-card h4 { font-size: 0.9rem; font-weight: 400; color: var(--warm-white); font-family: 'Cormorant Garamond', Georgia, serif; }

/* ===== Page Header ===== */
.page-header {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, var(--black) 0%, var(--dark-surface) 100%);
  text-align: center;
}
@media (max-width: 768px) {
  .page-header { padding: 7rem 1rem 3rem; }
}
.page-header h1 {
  color: var(--white); margin-bottom: 1rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
}
.page-header h1 em { color: var(--champagne-gold); font-style: normal; }
.page-header p { color: var(--muted-gray); max-width: 600px; margin: 0 auto; }

/* ===== Factory Features ===== */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.feature-card { padding: 2rem; border: 1px solid var(--border); background: var(--dark-surface); }
.feature-card:hover { border-color: var(--champagne-gold); }
.feature-icon { font-size: 2rem; margin-bottom: 1rem; display: block; }
.feature-card h4 { margin-bottom: 0.75rem; font-weight: 400; color: var(--warm-white); font-family: 'Cormorant Garamond', Georgia, serif; }
.feature-card p { font-size: 0.88rem; color: var(--muted-gray); }

/* ===== Utility ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.moq-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem; }
.fact-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; text-align: center; }
.text-gold { color: var(--champagne-gold); }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.flex-center { display: flex; align-items: center; justify-content: center; gap: 1rem; }
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .moq-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .nav-cta { padding: 0.7rem 1.5rem; font-size: 0.85rem; min-height: 44px; display: flex; align-items: center; justify-content: center; }
}
@media (max-width: 480px) { .flex-center { flex-direction: column; } }

/* ===== WhatsApp Float ===== */
.whatsapp-float{position:fixed;bottom:24px;right:24px;width:60px;height:60px;background:#25D366;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px rgba(0,0,0,.3);z-index:999;transition:transform .3s;}
.whatsapp-float:hover{transform:scale(1.1);}
@media(max-width:768px){.whatsapp-float{width:72px;height:72px;bottom:20px;right:20px;}}

/* ===== Responsive Table ===== */
@media (max-width: 768px) {
  .spec-table th, .spec-table td {
    padding: 0.7rem 0.8rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }
}
