/* ========================================
   GROW-LIGHTS.NET - Global Stylesheet
   LED Grow Light Manufacturer - Zhongshan
   English & Chinese Bilingual
   Mobile-First Responsive Design
   ======================================== */

:root {
  --primary: #2e7d32;
  --primary-dark: #1b5e20;
  --primary-light: #66bb6a;
  --accent: #ff9800;
  --accent-dark: #e65100;
  --dark: #1a1a2e;
  --dark-light: #16213e;
  --text: #333333;
  --text-light: #666666;
  --text-muted: #888888;
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --bg-dark: #f0f2f5;
  --border: #e0e0e0;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 6px;
  --radius-lg: 12px;
  --max-width: 1280px;
  --transition: all 0.3s ease;
  --font: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }
h1, h2, h3, h4, h5, h6 { line-height: 1.3; font-weight: 600; color: var(--dark); }

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-lg { padding: 14px 36px; font-size: 1.05rem; }

/* Section styling */
.section { padding: 60px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}
.section-header h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  color: var(--dark);
}
.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
}
.section-dark .section-header p { color: #ccc; }

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}
.lang-toggle a {
  padding: 4px 10px;
  border-radius: 4px;
  color: var(--text-muted);
}
.lang-toggle a.active,
.lang-toggle a:hover {
  background: var(--primary);
  color: #fff;
}

/* Header */
.top-bar {
  background: var(--dark);
  color: #fff;
  padding: 8px 0;
  font-size: 0.85rem;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar-info { display: flex; gap: 20px; align-items: center; }
.top-bar-info span { display: flex; align-items: center; gap: 6px; color: #ccc; }
.top-bar a { color: #ccc; }
.top-bar a:hover { color: #fff; }

.main-header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  flex: 0 0 auto;
  white-space: nowrap;
}
.logo span { display: inline-block; white-space: nowrap; }
.logo-icon {
  width: 40px; height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.2rem;
}

/* Navigation */
.main-nav { display: flex; gap: 4px; align-items: center; }
.main-nav > a,
.main-nav > .nav-dropdown > a {
  padding: 8px 12px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 4px;
  position: relative;
  display: inline-flex;
  align-items: center;
  line-height: 1.4;
  white-space: nowrap;
}
.main-nav > a:hover,
.main-nav > a.active,
.main-nav > .nav-dropdown > a:hover {
  color: var(--primary);
  background: rgba(46,125,50,0.06);
}
.nav-dropdown { position: relative; display: inline-flex; align-items: center; }
.nav-dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: #fff;
  min-width: 240px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  padding: 8px 0;
  z-index: 1001;
}
/* Bridge gap between trigger and dropdown to prevent mouseout */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}
.nav-dropdown:hover .nav-dropdown-content,
.nav-dropdown-content:hover { display: block; }
.nav-dropdown-content a {
  display: block;
  padding: 10px 18px;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.4;
  white-space: nowrap;
}
.nav-dropdown-content a:hover {
  background: var(--bg-alt);
  color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
}

/* Hero Section */
.hero {
  background: var(--dark);
  color: #fff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-size: cover;
  background-position: center;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
  line-height: 1.2;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
  max-width: 520px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-btns .btn-outline {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.hero-btns .btn-outline:hover {
  background: #fff;
  color: var(--dark);
}
.hero-features {
  display: flex;
  gap: 24px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}
.hero-feature i {
  color: var(--primary-light);
  font-size: 1.1rem;
}
.hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Stats Bar */
.stats-bar {
  background: var(--primary);
  color: #fff;
  padding: 30px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-item h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.stat-item p { font-size: 0.9rem; opacity: 0.9; }

/* Product Cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.product-img {
  height: 200px;
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 22px; }
.product-body h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--dark);
}
.product-body p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 14px;
  line-height: 1.6;
}
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.product-tag {
  background: rgba(46,125,50,0.08);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}
.product-link {
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Feature list */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feature-box {
  background: #fff;
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.feature-box:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
}
.feature-icon {
  width: 50px; height: 50px;
  background: rgba(46,125,50,0.08);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.feature-box h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.feature-box p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Application cards */
.app-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 50px;
}
.app-card:nth-child(even) { direction: rtl; }
.app-card:nth-child(even) > * { direction: ltr; }
.app-card-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.app-card-img img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}
.app-card-body h3 {
  font-size: 1.5rem;
  margin-bottom: 14px;
}
.app-card-body p { color: var(--text-light); margin-bottom: 12px; }
.app-card-body ul { margin: 14px 0; }
.app-card-body ul li {
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
  color: var(--text-light);
  font-size: 0.95rem;
}
.app-card-body ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* CTA Section */
.cta-section {
  background: var(--primary);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}
.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 14px;
  color: #fff;
}
.cta-section p {
  font-size: 1.1rem;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto 28px;
}
.cta-section .btn-accent {
  background: #fff;
  color: var(--primary);
}
.cta-section .btn-accent:hover {
  background: var(--accent);
  color: #fff;
}

/* Breadcrumb */
.breadcrumb {
  background: var(--bg-alt);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { opacity: 0.5; }

/* Page Header */
.page-header {
  background: var(--dark);
  color: #fff;
  padding: 50px 0;
  text-align: center;
}
.page-header h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: #fff;
}
.page-header p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto;
}

/* Content pages */
.content-section { padding: 50px 0; }
.content-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}
.sidebar {
  position: sticky;
  top: 90px;
}
.sidebar-menu {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.sidebar-menu h4 {
  padding: 16px 20px;
  background: var(--bg-alt);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-menu a {
  display: block;
  padding: 12px 20px;
  font-size: 0.9rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.sidebar-menu a:last-child { border-bottom: none; }
.sidebar-menu a:hover,
.sidebar-menu a.active {
  background: rgba(46,125,50,0.04);
  color: var(--primary);
}
.main-content h2 {
  font-size: 1.6rem;
  margin: 32px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-light);
  display: inline-block;
}
.main-content h3 {
  font-size: 1.25rem;
  margin: 24px 0 12px;
  color: var(--primary-dark);
}
.main-content p {
  margin-bottom: 14px;
  color: var(--text-light);
  text-align: justify;
}
.main-content ul, .main-content ol {
  margin: 14px 0;
  padding-left: 24px;
}
.main-content ul li {
  list-style: disc;
  margin-bottom: 8px;
  color: var(--text-light);
}
.main-content ol li {
  list-style: decimal;
  margin-bottom: 8px;
  color: var(--text-light);
}
.main-content img {
  border-radius: var(--radius);
  margin: 20px 0;
  box-shadow: var(--shadow);
}
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.92rem;
}
.specs-table th,
.specs-table td {
  padding: 12px 16px;
  text-align: left;
  border: 1px solid var(--border);
}
.specs-table th {
  background: var(--bg-alt);
  font-weight: 600;
  color: var(--dark);
}
.specs-table tr:nth-child(even) { background: var(--bg-alt); }

/* FAQ */
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-question {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--dark);
  background: var(--bg-alt);
}
.faq-question:hover { color: var(--primary); }
.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer.active { padding: 16px 20px; max-height: 500px; }
.faq-answer p { color: var(--text-light); font-size: 0.95rem; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-info h3 { margin-bottom: 16px; }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.contact-info-item i {
  color: var(--primary);
  font-size: 1.2rem;
  margin-top: 3px;
}
.contact-info-item div h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}
.contact-info-item div p {
  font-size: 0.9rem;
  color: var(--text-light);
}
.contact-form {
  background: #fff;
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46,125,50,0.08);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* Certifications grid */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.cert-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
}
.cert-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.cert-item img {
  height: 60px;
  margin: 0 auto 14px;
  opacity: 0.8;
}
.cert-item h4 { font-size: 1rem; margin-bottom: 6px; }
.cert-item p { font-size: 0.85rem; color: var(--text-muted); }

/* Footer */
.main-footer {
  background: var(--dark);
  color: #fff;
  padding: 60px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 18px;
}
.footer-col p, .footer-col a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  line-height: 1.8;
}
.footer-col a:hover { color: var(--primary-light); }
.footer-col ul li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }

/* Responsive */
@media (max-width: 1024px) {
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-nav, .top-bar-info { display: none; }
  .mobile-menu-btn { display: block; }
  .main-header .container { position: relative; }
  .main-nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    background: #fff;
    padding: 16px 18px;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    z-index: 1005;
  }
  .main-nav.mobile-open > a,
  .main-nav.mobile-open > .nav-dropdown > a {
    width: 100%;
    justify-content: space-between;
    padding: 11px 0;
  }
  .main-nav.mobile-open > .nav-dropdown {
    display: block;
    width: 100%;
  }
  .main-nav.mobile-open .nav-dropdown::after { display: none; }
  .main-nav.mobile-open .nav-dropdown-content {
    position: static;
    min-width: 0;
    margin: 4px 0 8px;
    box-shadow: none;
    border-radius: 10px;
    padding: 6px 0 6px 12px;
    background: var(--bg-alt);
  }
  .main-nav.mobile-open .nav-dropdown.open .nav-dropdown-content { display: block; }
  .main-nav.mobile-open .nav-dropdown-content a {
    padding: 9px 12px;
    white-space: normal;
  }
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .app-card { grid-template-columns: 1fr; }
  .app-card:nth-child(even) { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .section { padding: 40px 0; }
  .section-header h2 { font-size: 1.6rem; }
  .page-header h1 { font-size: 1.7rem; }
  .product-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-features { flex-direction: column; gap: 12px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item h3 { font-size: 1.6rem; }
  .cta-section h2 { font-size: 1.5rem; }
  .btn-lg { padding: 12px 24px; font-size: 0.95rem; }
}

/* Language display control */
[data-lang] { display: none; }
[data-lang].active { display: block; }
span[data-lang].active { display: inline; }
a[data-lang].active { display: inline; }
li[data-lang].active { display: list-item; }

/* Utility */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.highlight-box {
  background: rgba(46,125,50,0.06);
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 20px 0;
}
