﻿/* SHANGDUO Corporate Website Styles */
:root {
  --primary: #1a1a2e; --primary-light: #16213e;
  --gold: #c8a45c; --gold-light: #e0c77a; --gold-dark: #a8873c;
  --text: #333; --text-light: #666;
  --bg-light: #f8f6f1; --bg-white: #fff;
  --border: #e5e5e5;
  --shadow: 0 2px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 35px rgba(0,0,0,0.12);
  --radius: 8px;
  --transition: all 0.3s ease;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--text); line-height: 1.7; background: var(--bg-white); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-dark); }
ul { list-style: none; }
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.3; color: var(--primary); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); margin-bottom: 0.8rem; }
p { margin-bottom: 1rem; }
.section-title { text-align: center; margin-bottom: 0.5rem; }
.section-subtitle { text-align: center; color: var(--text-light); font-size: 1rem; max-width: 600px; margin: 0 auto 2.5rem; }
.gold-text { color: var(--gold); }
.btn { display: inline-block; padding: 12px 32px; border-radius: var(--radius); font-family: var(--font-sans); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: var(--transition); border: none; line-height: 1.4; }
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { background: var(--gold-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(200,164,92,0.4); }
.btn-outline { background: transparent; color: var(--gold); border: 2px solid var(--gold); }
.btn-outline:hover { background: var(--gold); color: #fff; transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--gold); color: #fff; }

/* Header Top Bar */
.header-top-bar {
  background: var(--primary);
  height: 36px;
  display: flex;
  align-items: center;
}
.header-top-bar .container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}
.header-social {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: rgba(255,255,255,0.8);
  transition: var(--transition);
}
.header-social a:hover {
  color: var(--gold-light);
}
.header-social a svg {
  width: 18px;
  height: 18px;
}
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
}
.lang-switch a {
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.lang-switch a:hover,
.lang-switch a.lang-active {
  color: var(--gold-light);
}
.lang-sep {
  color: rgba(255,255,255,0.3);
  font-size: 0.7rem;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
/* Adjust for header top bar */

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 42px; width: auto; }
.logo-text { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700; color: var(--primary); letter-spacing: 1px; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: var(--text); font-size: 0.875rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; position: relative; padding: 4px 0; }
.nav-links a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--gold); transition: var(--transition); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--gold); }
.mobile-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px; background: none; border: none; }
.mobile-toggle span { display: block; width: 25px; height: 2px; background: var(--primary); transition: var(--transition); }
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--primary); }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(26,26,46,0.85) 0%, rgba(22,33,62,0.7) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 20px; animation: fadeUp 0.8s ease; }
.hero-content h1 { color: #fff; font-size: clamp(2.2rem, 6vw, 3.6rem); margin-bottom: 1rem; }
.hero-content p { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-bottom: 2rem; }
.hero-badge { display: inline-block; background: rgba(200,164,92,0.2); color: var(--gold-light); padding: 6px 20px; border-radius: 30px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1.5rem; border: 1px solid rgba(200,164,92,0.3); }
.section { padding: 80px 0; }
.section-dark { background: var(--primary); color: #fff; }
.section-dark h2 { color: #fff; }
.section-light { background: var(--bg-light); }
.page-hero { position: relative; padding: 140px 0 60px; background: var(--primary); color: #fff; text-align: center; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(26,26,46,0.9), rgba(22,33,62,0.7)); }
.page-hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.3; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 2.8rem); }
.page-hero p { color: rgba(255,255,255,0.8); max-width: 600px; margin: 0.5rem auto 0; }
.about-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-image img { width: 100%; height: 450px; object-fit: cover; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-number { font-size: 2.5rem; font-weight: 700; font-family: var(--font-serif); color: var(--gold); display: block; }
.stat-label { font-size: 0.9rem; color: rgba(255,255,255,0.8); margin-top: 0.3rem; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.product-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); border: 1px solid var(--border); }
a.product-card { display: block; text-decoration: none; color: inherit; cursor: pointer; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.product-card-img { width: 100%; height: auto; display: block; }
.product-card-body { padding: 20px; }
.product-card-body h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.product-card-body p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 0; }
.product-tag { display: inline-block; background: var(--gold); color: #fff; padding: 3px 12px; border-radius: 20px; font-size: 0.75rem; margin-bottom: 0.5rem; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
.feature-icon { width: 60px; height: 60px; margin: 0 auto 1rem; background: rgba(200,164,92,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.feature-card h3 { font-size: 1.1rem; }
.feature-card p { font-size: 0.9rem; color: var(--text-light); }

/* Factory Grid - Full Image Display */
.factory-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.factory-item { position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.factory-item img { width: 100%; display: block; transition: var(--transition); }
.factory-item:hover img { transform: scale(1.05); }
.factory-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 15px; background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: #fff; font-size: 0.9rem; font-weight: 500; }

.factory-grid-3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-item { display: flex; gap: 15px; margin-bottom: 1.5rem; align-items: flex-start; }
.contact-item svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--font-sans); font-size: 0.95rem; transition: var(--transition); margin-bottom: 16px; background: var(--bg-white); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,164,92,0.1); }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form label { font-weight: 600; font-size: 0.85rem; color: var(--text); display: block; margin-bottom: 5px; }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.process-step { text-align: center; }
.process-step-num { width: 50px; height: 50px; background: var(--gold); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; margin: 0 auto 1rem; }
.process-step h4 { font-size: 1rem; margin-bottom: 0.5rem; }
.process-step p { font-size: 0.85rem; color: var(--text-light); }
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--gold); }
.timeline-item { position: relative; margin-bottom: 30px; padding-left: 20px; }
.timeline-item::before { content: ''; position: absolute; left: -26px; top: 5px; width: 14px; height: 14px; background: var(--gold); border-radius: 50%; }
.timeline-year { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 700; color: var(--gold); }
.faq-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-question { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 600; font-size: 1rem; user-select: none; }
.faq-question:hover { color: var(--gold); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; color: var(--text-light); font-size: 0.95rem; line-height: 1.7; }
.faq-item.active .faq-answer { max-height: 300px; padding-top: 12px; }
.faq-toggle { font-size: 1.2rem; transition: transform 0.3s ease; }
.faq-item.active .faq-toggle { transform: rotate(45deg); }

/* Footer */
.site-footer { background: var(--primary); color: rgba(255,255,255,0.7); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { color: #fff; font-family: var(--font-serif); font-size: 1rem; margin-bottom: 1rem; }
.footer a { color: rgba(255,255,255,0.7); font-size: 0.85rem; display: block; margin-bottom: 8px; }
.footer a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: rgba(255,255,255,0.1); border-radius: 50%; color: rgba(255,255,255,0.7); transition: var(--transition); margin-bottom: 0; }
.footer-social a:hover { background: var(--gold); color: #fff; }
.footer-social a svg { width: 16px; height: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 0.8rem; }

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  color: #fff;
  transition: all 0.3s ease;
  animation: whatsappPulse 2s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,0.5);
  color: #fff;
}
.whatsapp-float svg {
  width: 28px;
  height: 28px;
}
@keyframes whatsappPulse {
  0% { box-shadow: 0 4px 16px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 24px rgba(37,211,102,0.6); }
  100% { box-shadow: 0 4px 16px rgba(37,211,102,0.4); }
}

/* RTL / Arabic Support */
body.rtl {
  direction: rtl;
  text-align: right;
}
body.rtl .header-top-bar .container {
  justify-content: flex-start;
}
body.rtl .header-inner {
  flex-direction: row-reverse;
}
body.rtl .nav-links {
  flex-direction: row-reverse;
}
body.rtl .about-preview {
  direction: rtl;
}
body.rtl .footer-grid {
  direction: rtl;
}
body.rtl .timeline {
  padding-left: 0;
  padding-right: 30px;
}
body.rtl .timeline::before {
  left: auto;
  right: 8px;
}
body.rtl .timeline-item {
  padding-left: 0;
  padding-right: 20px;
}
body.rtl .timeline-item::before {
  left: auto;
  right: -26px;
}
body.rtl .whatsapp-float {
  right: auto;
  left: 24px;
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-on-scroll { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
@media (max-width: 768px) {
  .mobile-toggle { display: flex; }
  .nav-links { position: fixed; top: 72px; left: 0; width: 100%; background: #fff; flex-direction: column; padding: 20px; gap: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); transform: translateY(-100%); opacity: 0; transition: var(--transition); pointer-events: none; }
  .nav-links.mobile-open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .about-preview { grid-template-columns: 1fr; gap: 30px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .features-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .contact-grid { grid-template-columns: 1fr; }
  .factory-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .section { padding: 50px 0; }
  .hero { min-height: 80vh; }
  .page-hero { padding: 110px 0 40px; }
  .stat-number { font-size: 2rem; }
  .about-image img { height: 280px; }
  
}
@media (max-width: 480px) {
  .process-steps { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .logo-text { font-size: 1rem; }
  .logo img { height: 32px; }
}


/* Form success banner */

.form-success-banner strong { font-weight: 600; }
@keyframes fadeSlideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* Form result banners (success/error after redirect) */
.form-result-banner { padding: 18px 0; text-align: center; font-size: 1.05rem; animation: fadeSlideDown 0.4s ease; }
.form-result-banner .container { display: flex; align-items: center; justify-content: center; gap: 8px; }
.form-result-banner strong { font-weight: 600; }
.form-result-success { background: #d4edda; color: #155724; border-bottom: 1px solid #c3e6cb; }
.form-result-error   { background: #f8d7da; color: #721c24; border-bottom: 1px solid #f5c6cb; }
@keyframes fadeSlideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* Product Detail Page */
.product-detail-hero {
  padding: 140px 0 60px;
  text-align: center;
  color: #fff;
}
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.product-gallery {
  position: sticky;
  top: 120px;
}
.gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-light);
  margin-bottom: 12px;
}
.gallery-main img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s ease;
}
.gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.thumb-btn {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid var(--border);
  background: none;
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}
.thumb-btn:hover { border-color: var(--gold-light); }
.thumb-btn.active { border-color: var(--gold); }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; }

.product-info { padding-top: 0; }
.product-info h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.3rem; }
.product-sku { color: var(--text-light); font-size: 0.85rem; margin-bottom: 1.2rem; }
.product-desc { margin-bottom: 1.5rem; }
.product-desc p { color: var(--text-light); line-height: 1.8; }

.product-specs {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.spec-row:last-child { border-bottom: none; }
.spec-label { color: var(--text-light); font-weight: 500; }
.spec-value { color: var(--text); font-weight: 600; }

.product-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Product Features Grid */
.product-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.feature-card {
  background: var(--bg-white);
  padding: 30px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.feature-icon { margin-bottom: 15px; }
.feature-icon svg { display: inline-block; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-light); font-size: 0.9rem; margin: 0; }

/* Applications Grid */
.applications-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.app-card {
  background: var(--bg-white);
  padding: 28px 20px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.app-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.app-icon { margin-bottom: 12px; }
.app-icon svg { display: inline-block; }
.app-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.app-card p { color: var(--text-light); font-size: 0.85rem; margin: 0; }

/* Back to Products */
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-light); font-size: 0.9rem; margin-bottom: 20px; }
.back-link:hover { color: var(--gold); }

@media (max-width: 768px) {
  .product-detail-grid { grid-template-columns: 1fr; gap: 30px; }
  .product-gallery { position: static; }
  .product-features-grid { grid-template-columns: 1fr 1fr; }
  .applications-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .product-features-grid { grid-template-columns: 1fr; }
  .applications-grid { grid-template-columns: 1fr; }
  .product-actions { flex-direction: column; }
  .product-actions .btn { width: 100%; text-align: center; }
}
