/* ============================================
   JCT GROUP - One-Stop Sourcing Partner
   Lines: Clean (Gold) | Atmospheric (Green) | Industrial Parts (Blue)
   ============================================ */

:root {
  --tech-blue: #1a3a5c;
  --tech-blue-dark: #0d2135;
  --tech-blue-light: #2980b9;
  --tech-accent: #3498db;
  --tech-gold: #c8a84e;
  --tech-gray: #64748b;
  --tech-light: #f0f4f8;
  --tech-white: #ffffff;
  --tech-border: #e2e8f0;
  --tech-text: #1e293b;
  --tech-text-light: #475569;
  --clean-gold: #D4A843;
  --clean-gold-dark: #8B6914;
  --clean-gold-light: #F5E6C8;
  --atmo-green: #00A86B;
  --atmo-green-dark: #006B44;
  --atmo-green-light: #E6F7F0;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
  --max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--tech-text);
  background: var(--tech-white);
  line-height: 1.7;
}

/* === Navbar === */
.navbar {
  background: var(--tech-blue-dark);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,0.15);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--tech-white);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.nav-logo svg { width: 36px; height: 36px; }
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--tech-white);
  background: rgba(255,255,255,0.1);
}
.nav-links a.cta-link {
  background: var(--tech-accent);
  color: white;
  font-weight: 600;
}
.nav-links a.cta-link:hover { background: #217dbb; }

/* === Hero === */
.hero {
  background: 
    linear-gradient(135deg, rgba(13,33,53,0.92) 0%, rgba(26,58,92,0.88) 50%, rgba(26,82,118,0.85) 100%),
    url('../images/hero-bg.jpg') center/cover no-repeat;
  color: white;
  padding: 100px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(52,152,219,0.15) 0%, transparent 50%);
  animation: heroPulse 8s ease-in-out infinite;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.01) 2px, rgba(255,255,255,0.01) 4px);
  pointer-events: none;
}
@keyframes heroPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hero h1 { font-size: 2.8rem; font-weight: 800; margin-bottom: 16px; line-height: 1.3; }
.hero h1 span { color: var(--tech-accent); }
.hero p { font-size: 1.15rem; opacity: 0.85; margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-cta {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--tech-accent);
  color: white;
  box-shadow: 0 4px 16px rgba(52,152,219,0.35);
}
.btn-primary:hover { background: #217dbb; transform: translateY(-2px); box-shadow: 0 6px 24px rgba(52,152,219,0.45); }
.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.1); }
.btn-sm { padding: 8px 20px; font-size: 0.85rem; }

/* === Trust Bar === */
.trust-bar {
  background: var(--tech-light);
  padding: 24px;
  text-align: center;
  border-bottom: 1px solid var(--tech-border);
}
.trust-items {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  max-width: var(--max-width);
  margin: 0 auto;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--tech-gray);
  font-size: 0.9rem;
  font-weight: 500;
}
.trust-item .icon { font-size: 1.2rem; }

/* === Sections === */
.section {
  padding: 80px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.section-alt { background: var(--tech-light); }
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--tech-blue-dark);
  margin-bottom: 12px;
}
.section-header p {
  color: var(--tech-gray);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* === Feature Cards === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.feature-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--tech-border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-card .card-icon {
  width: 56px; height: 56px;
  background: rgba(52,152,219,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--tech-blue); }
.feature-card p { color: var(--tech-text-light); font-size: 0.92rem; }

/* === Product Grid === */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}
.product-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--tech-border);
  transition: all 0.2s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card .product-img {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #1a3a5c, #2980b9);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-card .product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.product-card:hover .product-img img { transform: scale(1.05); }
.product-header {
  background: linear-gradient(135deg, var(--tech-blue), var(--tech-blue-dark));
  color: white;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.product-header h3 { font-size: 1.1rem; font-weight: 700; }
.product-header .sku { font-size: 0.8rem; opacity: 0.7; }
.product-body { padding: 24px; }
.product-specs { list-style: none; margin-bottom: 16px; }
.product-specs li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed var(--tech-border);
  font-size: 0.88rem;
}
.product-specs li .label { color: var(--tech-gray); }
.product-specs li .value { font-weight: 600; color: var(--tech-text); }
.product-cert {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ecfdf5;
  color: #065f46;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.product-cert.warning { background: #fffbeb; color: #92400e; }
.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--tech-border);
}
.product-footer .price { font-size: 1.2rem; font-weight: 700; color: var(--tech-blue); }
.product-footer .moq { font-size: 0.82rem; color: var(--tech-gray); }

/* === Category Tabs === */
.category-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.cat-tab {
  padding: 10px 24px;
  border-radius: 6px;
  border: 1px solid var(--tech-border);
  background: white;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--tech-text-light);
  transition: all 0.2s;
}
.cat-tab:hover { border-color: var(--tech-accent); color: var(--tech-accent); }
.cat-tab.active { background: var(--tech-accent); color: white; border-color: var(--tech-accent); }

/* === Stats === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  text-align: center;
}
.stat-item { padding: 24px; }
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--tech-accent);
  line-height: 1;
}
.stat-label { color: var(--tech-gray); font-size: 0.9rem; margin-top: 8px; }

/* === Quality Section === */
.quality-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.quality-item {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--tech-accent);
}
.quality-item h3 { color: var(--tech-blue); margin-bottom: 8px; font-size: 1.05rem; }
.quality-item p { color: var(--tech-text-light); font-size: 0.9rem; }

/* === Page Banner (Quality / Resources / Contact) === */
.page-banner {
  background: linear-gradient(135deg, var(--tech-blue-dark) 0%, var(--tech-blue) 50%, #1a5276 100%);
  color: white;
  padding: 64px 24px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.18;
}
.page-banner h2 {
  position: relative;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.page-banner p {
  position: relative;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* === Group Business Line Cards (Homepage) === */
.biz-lines {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 40px;
}
.biz-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--tech-border);
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.biz-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.biz-card-img {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}
.biz-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.biz-card:hover .biz-card-img img { transform: scale(1.06); }
.biz-card-img .biz-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.5px;
}
.biz-badge.clean { background: var(--clean-gold); }
.biz-badge.atmo { background: var(--atmo-green); }
.biz-badge.tech { background: var(--tech-accent); }
.biz-card-body {
  padding: 24px;
}
.biz-card-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.biz-card-body h3 .line-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.line-dot.clean { background: var(--clean-gold); }
.line-dot.atmo { background: var(--atmo-green); }
.line-dot.tech { background: var(--tech-accent); }
.biz-card-body p {
  color: var(--tech-text-light);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
}
.biz-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.biz-tag {
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}
.biz-tag.clean-tag { background: var(--clean-gold-light); color: var(--clean-gold-dark); }
.biz-tag.atmo-tag { background: var(--atmo-green-light); color: var(--atmo-green-dark); }
.biz-tag.tech-tag { background: rgba(52,152,219,0.1); color: var(--tech-blue); }

/* === Clean Line (B-line) Theme === */
.clean-hero {
  background: linear-gradient(135deg, rgba(139,105,20,0.92) 0%, rgba(212,168,67,0.85) 100%),
    url('../images/clean-hero.jpg') center/cover no-repeat;
}
.clean-accent { color: var(--clean-gold); }
.btn-clean {
  background: var(--clean-gold);
  color: white;
  box-shadow: 0 4px 16px rgba(212,168,67,0.35);
}
.btn-clean:hover { background: #c09735; transform: translateY(-2px); }
.biz-section.clean-bg {
  background: linear-gradient(180deg, #FFFDF7 0%, #FFF9E6 100%);
}

/* === Atmospheric Line (D-line) Theme === */
.atmo-hero {
  background: linear-gradient(135deg, rgba(0,107,68,0.9) 0%, rgba(0,168,107,0.85) 100%),
    url('../images/atmospheric-hero.jpg') center/cover no-repeat;
}
.atmo-accent { color: var(--atmo-green); }
.btn-atmo {
  background: var(--atmo-green);
  color: white;
  box-shadow: 0 4px 16px rgba(0,168,107,0.35);
}
.btn-atmo:hover { background: #008c59; transform: translateY(-2px); }
.biz-section.atmo-bg {
  background: linear-gradient(180deg, #F5FFFB 0%, #E6F7F0 100%);
}

/* === Sub-page hero unified === */
.sub-hero {
  color: white;
  padding: 80px 24px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.sub-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 60%);
}
.sub-hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.sub-hero h1 { font-size: 2.6rem; font-weight: 800; margin-bottom: 16px; }
.sub-hero h1 span { }
.sub-hero p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 28px; }

/* === Sub-page product grid === */
.sub-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.sub-product {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--tech-border);
  overflow: hidden;
  transition: all 0.2s;
}
.sub-product:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.sub-product .sub-prod-img {
  height: 200px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sub-product .sub-prod-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sub-product .sub-prod-body {
  padding: 20px;
}
.sub-product h4 { font-size: 1.05rem; margin-bottom: 6px; }
.sub-product .sub-prod-model { font-size: 0.82rem; color: var(--tech-gray); margin-bottom: 10px; }
.sub-product .sub-prod-specs {
  list-style: none;
  font-size: 0.85rem;
}
.sub-product .sub-prod-specs li {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px dashed var(--tech-border);
}
.sub-product .sub-prod-specs li .l { color: var(--tech-gray); }
.sub-product .sub-prod-specs li .v { font-weight: 600; }

/* === Feature card with image === */
.feature-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--tech-blue), var(--tech-blue-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  margin: -32px -24px 20px -24px;
}
.feature-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature-card.has-img {
  padding-top: 0;
  overflow: hidden;
}
.feature-card.has-img .card-content {
  padding: 0 24px 32px;
}
.feature-card.has-img .card-icon {
  margin-top: -28px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* === Contact side image === */
.contact-side-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  margin-bottom: 24px;
}
.contact-side-img img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}

/* === Resource page header image === */
.resource-header-img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-info h3 { font-size: 1.3rem; color: var(--tech-blue); margin-bottom: 16px; }
.contact-info p { color: var(--tech-text-light); margin-bottom: 24px; }
.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--tech-text-light);
}
.contact-detail .icon {
  width: 40px; height: 40px;
  background: rgba(52,152,219,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.contact-form {
  background: white;
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--tech-border);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--tech-text);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--tech-border);
  border-radius: 6px;
  font-size: 0.92rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--tech-accent);
  box-shadow: 0 0 0 3px rgba(52,152,219,0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--tech-accent);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.form-submit:hover { background: #217dbb; }

/* === Footer === */
.footer {
  background: var(--tech-blue-dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 24px 24px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}
.footer-col h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col a, .footer-col p {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.88rem;
  display: block;
  margin-bottom: 8px;
}
.footer-col a:hover { color: var(--tech-accent); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.85rem;
}

/* === CTA Banner === */
.cta-banner {
  background: linear-gradient(135deg, var(--tech-blue), var(--tech-accent));
  color: white;
  text-align: center;
  padding: 64px 24px;
}
.cta-banner h2 { font-size: 2rem; margin-bottom: 16px; }
.cta-banner p { opacity: 0.9; margin-bottom: 24px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* === Resources Table === */
.resources-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.resources-table th {
  background: var(--tech-blue);
  color: white;
  padding: 14px 16px;
  text-align: left;
  font-size: 0.9rem;
}
.resources-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--tech-border);
  font-size: 0.9rem;
}
.resources-table tr:hover td { background: var(--tech-light); }
.resources-table .download-link {
  color: var(--tech-accent);
  text-decoration: none;
  font-weight: 600;
}

/* === Responsive === */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .nav-links { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .trust-items { gap: 24px; }
  .section { padding: 48px 16px; }
}

/* === Animations === */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s forwards;
}
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}
