/* Sunwin Modules - Draft Website Styles */
/* Font: Space Grotesk (headings, tech feel) + Inter (body) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --primary: #006633;
  --primary-dark: #004d26;
  --primary-light: #00994d;
  --accent: #00a651;
  --text: #1a1a1a;
  --text-muted: #555;
  --bg: #f7f9f8;
  --white: #ffffff;
  --border: #e5ebe8;
  --header-bg: #fafbfa;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
h1, h2, h3, h4, .nav a, .section-title h2 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  letter-spacing: -0.02em;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ===== Header (reference layout: logo left, nav center, right action) ===== */
.header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 44px; width: auto; }
.nav { flex: 1; display: flex; justify-content: center; }
.nav ul { display: flex; list-style: none; gap: 2px; align-items: center; }
.nav a {
  display: block;
  padding: 8px 15px;
  color: #333;
  font-weight: 500;
  font-size: 15px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--primary); background: rgba(0,102,51,0.06); }
.nav a.active { color: var(--primary); font-weight: 600; }
.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.hotline {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  background: var(--primary);
  color: #fff;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
}

/* Container */
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Hero - compact */
.hero {
  background: linear-gradient(135deg, #003d1f 0%, var(--primary) 55%, #008a45 100%);
  color: #fff;
  padding: 42px 20px 48px;
  text-align: center;
}
.hero h1 { font-size: 1.95rem; margin-bottom: 10px; font-weight: 700; letter-spacing: -0.03em; }
.hero p { font-size: 1.05rem; opacity: 0.92; max-width: 620px; margin: 0 auto 20px; line-height: 1.5; }
.btn {
  display: inline-block;
  background: #fff;
  color: var(--primary);
  padding: 10px 22px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: 'Space Grotesk', sans-serif;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.15); }
.btn-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  margin-left: 10px;
}
.btn-outline:hover { background: #fff; color: var(--primary); }

/* Sections */
.section { padding: 48px 0; }
.section-title { text-align: center; margin-bottom: 32px; }
.section-title h2 { font-size: 1.75rem; color: var(--primary); margin-bottom: 6px; }
.section-title p { color: var(--text-muted); max-width: 560px; margin: 0 auto; font-size: 0.95rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,102,51,0.1); }
.card-img {
  height: 150px;
  background: #eaf5ee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  color: var(--primary);
}
.card-body { padding: 18px; }
.card-body h3 { font-size: 1.1rem; margin-bottom: 6px; color: var(--text); }
.card-body p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 10px; }
.card-body a { color: var(--primary); font-weight: 600; font-size: 0.88rem; }

/* Product Categories */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.cat-card {
  background: var(--white);
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.05);
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
}
.cat-card.optical { border-top-color: #1565c0; }
.cat-card.wireless { border-top-color: var(--primary); }
.cat-card.other { border-top-color: #e65100; }
.cat-card h3 { font-size: 1.2rem; margin-bottom: 14px; color: var(--text); }
.cat-card ul { list-style: none; }
.cat-card li { padding: 7px 0; border-bottom: 1px solid #f0f4f1; font-size: 0.92rem; }
.cat-card li:last-child { border-bottom: none; }
.cat-card li a { color: #333; display: flex; justify-content: space-between; }
.cat-card li a:hover { color: var(--primary); }

/* Capabilities */
.cap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.cap-item {
  background: var(--white);
  padding: 24px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.04);
  border: 1px solid var(--border);
}
.cap-item .icon { font-size: 36px; margin-bottom: 10px; }
.cap-item h4 { color: var(--primary); margin-bottom: 6px; font-size: 1.05rem; }

/* About */
.about-content { display: grid; grid-template-columns: 1fr 1.3fr; gap: 36px; align-items: start; }
.about-img {
  background: #eaf5ee;
  border-radius: 10px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  color: var(--primary);
  border: 1px solid var(--border);
}
.about-text h3 { color: var(--primary); margin: 20px 0 10px; font-size: 1.15rem; }
.about-text ul { margin-left: 18px; margin-bottom: 14px; }
.about-text li { margin-bottom: 5px; font-size: 0.95rem; }

/* Footer */
.footer { background: #111; color: #bbb; padding: 42px 0 18px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px; margin-bottom: 28px; }
.footer h4 { color: #fff; margin-bottom: 14px; font-size: 1.05rem; font-family: 'Space Grotesk', sans-serif; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 7px; font-size: 0.9rem; }
.footer a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid #2a2a2a; padding-top: 16px; text-align: center; font-size: 0.85rem; color: #888; }

/* Breadcrumb */
.breadcrumb { background: var(--white); padding: 10px 0; font-size: 0.88rem; color: #666; border-bottom: 1px solid var(--border); }
.breadcrumb a { color: var(--primary); }

/* Product list */
.product-list { display: grid; grid-template-columns: 220px 1fr; gap: 28px; }
.sidebar {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid var(--border);
}
.sidebar h3 { background: var(--primary); color: #fff; padding: 12px 16px; font-size: 1rem; }
.sidebar ul { list-style: none; }
.sidebar a { display: block; padding: 10px 16px; border-bottom: 1px solid #f0f4f1; font-size: 0.9rem; }
.sidebar a:hover, .sidebar a.active { background: #eaf5ee; color: var(--primary); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.product-item {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  text-align: center;
  border: 1px solid var(--border);
  transition: transform 0.2s;
}
.product-item:hover { transform: translateY(-2px); }
.product-item .img {
  height: 140px;
  background: #eaf5ee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--primary);
}
.product-item h4 { padding: 10px 12px 4px; font-size: 0.92rem; }
.product-item .meta { padding: 0 12px 12px; font-size: 0.82rem; color: #666; }

/* Responsive */
@media (max-width: 900px) {
  .header .container { height: auto; padding: 12px 16px; flex-wrap: wrap; gap: 10px; }
  .nav { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; }
  .nav a { padding: 8px 12px; font-size: 14px; white-space: nowrap; }
  .logo img { height: 38px; }
  .hotline { font-size: 13px; }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 1.55rem; }
  .hero { padding: 32px 16px 38px; }
  .about-content { grid-template-columns: 1fr; }
  .product-list { grid-template-columns: 1fr; }
}
.green { color: var(--primary); }
