/* ============================================================
   Jining Good Supply Chain Co., Ltd.
   Design: Premium Corporate / Minimal / Industrial
   Reference: Top-tier Chinese trade groups
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --black: #0a0d14;
  --navy: #0f1923;
  --white: #ffffff;
  --gray-50: #f5f6f8;
  --gray-100: #eaecf0;
  --gray-200: #d5d9e0;
  --gray-400: #8d95a3;
  --gray-600: #525a6b;
  --gray-800: #1a1f2b;
  --accent: #c4943a;
  --accent-dark: #9e7428;
  --blue: #1e5da8;
  --border-light: rgba(0,0,0,.06);
  --max-width: 1240px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-800); line-height: 1.65; background: var(--white);
  background-image:
    radial-gradient(circle at 20% 50%, rgba(196,148,58,.015) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(30,93,168,.01) 0%, transparent 50%);
  -webkit-font-smoothing: antialiased;
}

/* ====== NAV ====== */
.nav {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  background: rgba(10,13,20,.94); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.nav-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 68px;
}
.nav-logo { font-size: .95rem; font-weight: 600; color: var(--white); text-decoration: none; letter-spacing: .5px; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 36px; list-style: none; align-items: center; }
.nav-links a {
  text-decoration: none; color: rgba(255,255,255,.55); font-size: .8rem;
  font-weight: 500; letter-spacing: .8px; text-transform: uppercase; transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-cta {
  color: var(--accent) !important; border: 1px solid rgba(196,148,58,.4);
  padding: 7px 18px; font-size: .75rem !important;
}
.nav-cta:hover { border-color: var(--accent); background: rgba(196,148,58,.08); }
.nav-toggle { display: none; background: none; border: none; color: white; font-size: 1.3rem; cursor: pointer; }

/* ====== HERO ====== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  background: var(--black);
  background-image: url('../images/hero-bg.jpg');
  background-size: cover; background-position: center;
  position: relative;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,13,20,.9) 0%, rgba(10,13,20,.4) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: var(--max-width); margin: 0 auto; padding: 0 40px; }
.hero-tag {
  font-size: .72rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
}
.hero h1 {
  font-size: 3.4rem; font-weight: 300; color: var(--white);
  line-height: 1.18; max-width: 680px; letter-spacing: -1px;
}
.hero h1 strong { font-weight: 700; }
.hero-line {
  width: 60px; height: 1px; background: rgba(255,255,255,.3);
  margin: 32px 0;
}
.hero p { font-size: 1rem; color: rgba(255,255,255,.5); max-width: 480px; line-height: 1.7; }
.hero-actions { display: flex; gap: 20px; margin-top: 40px; align-items: center; }
.hero-markets {
  display: flex; gap: 28px; margin-top: 60px; flex-wrap: wrap;
}
.hero-markets span {
  font-size: .7rem; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,.3);
}

/* ====== BUTTONS ====== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; font-size: .82rem; font-weight: 600;
  letter-spacing: .5px; text-decoration: none;
  border: none; cursor: pointer; transition: all .25s;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-text { color: var(--white); background: none; padding: 0; border-bottom: 1px solid rgba(255,255,255,.3); border-radius: 0; }
.btn-text:hover { border-color: var(--white); }
.btn-dark { background: var(--gray-800); color: var(--white); }
.btn-dark:hover { background: var(--black); }
.btn-outline-dark { border: 1px solid var(--gray-200); color: var(--gray-800); background: var(--white); }
.btn-outline-dark:hover { border-color: var(--gray-800); }

/* ====== SECTIONS ====== */
.section { padding: 100px 40px; }
.section-light { background: var(--gray-50); }
.section-light {
  background: linear-gradient(180deg, var(--gray-50) 0%, rgba(245,246,248,.6) 50%, var(--white) 100%);
}
.section-dark { background: var(--navy); color: var(--white); }
.section-inner { max-width: var(--max-width); margin: 0 auto; }

.section-label {
  font-size: .68rem; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.section-title {
  font-size: 2rem; font-weight: 300; margin-bottom: 12px;
  letter-spacing: -.5px; color: var(--gray-800); line-height: 1.25;
}
.section-dark .section-title, .section-dark .section-subtitle { color: var(--white); }
.section-subtitle {
  font-size: .95rem; color: var(--gray-400); margin-bottom: 56px; max-width: 520px; font-weight: 400;
}
.section-dark .section-subtitle { color: rgba(255,255,255,.4); }
.divider { width: 40px; height: 1px; background: var(--gray-200); margin: 0 0 40px; }

/* ====== STATS ====== */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.stat-item { padding: 48px 40px; }
.stat-item + .stat-item { border-left: 1px solid rgba(255,255,255,.06); }
.stat-number { font-size: 2.8rem; font-weight: 300; color: var(--white); line-height: 1; }
.stat-unit { font-size: 1.2rem; color: var(--accent); font-weight: 600; }
.stat-label { font-size: .75rem; color: rgba(255,255,255,.35); margin-top: 8px; letter-spacing: 1px; text-transform: uppercase; }

/* ====== FEATURES (Icon removed, clean cards) ====== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--gray-100); }
.feature-card {
  background: var(--white); padding: 48px 40px;
}
.feature-card-num { font-size: .7rem; color: var(--accent); font-weight: 700; margin-bottom: 24px; letter-spacing: 2px; }
.feature-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 12px; color: var(--gray-800); }
.feature-card p { font-size: .85rem; color: var(--gray-400); line-height: 1.7; font-weight: 400; }

/* ====== CATEGORY CARDS ====== */
.categories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--gray-100); }
.cat-card {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  background: var(--navy); display: flex; align-items: flex-end;
  text-decoration: none; cursor: pointer;
}
.cat-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,13,20,.8) 0%, rgba(10,13,20,0) 50%);
}
.cat-card:hover .cat-card-img { transform: scale(1.04); }
.cat-card-img {
  position: absolute; inset: 0; object-fit: cover;
  width: 100%; height: 100%; transition: transform .5s;
}
.cat-card-content { position: relative; z-index: 2; padding: 36px; color: var(--white); }
.cat-card-content h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 4px; }
.cat-card-content p { font-size: .78rem; opacity: .5; letter-spacing: .5px; }

/* ====== PRODUCT CARDS ====== */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--gray-100); }
.product-card { background: var(--white); }
.product-card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.product-card-body { padding: 28px; }
.product-card-body h3 { font-size: .95rem; font-weight: 600; margin-bottom: 10px; color: var(--gray-800); }
.product-card-body p { font-size: .8rem; color: var(--gray-400); margin-bottom: 12px; }
/* Specs table inside product cards */
.specs-table { width: 100%; border-collapse: collapse; margin-bottom: 14px; font-size: .76rem; }
.specs-table td { padding: 4px 0; vertical-align: top; line-height: 1.55; }
.specs-table td:first-child { color: var(--gray-400); width: 95px; font-weight: 500; white-space: nowrap; }
.specs-table td:last-child { color: var(--gray-600); }

/* ====== LOGISTICS ====== */
.logistics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--gray-100); }
.logistics-card { background: var(--white); padding: 56px 48px; }
.logistics-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 24px; color: var(--gray-800); }
.route-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.route-tag {
  font-size: .7rem; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--gray-400); padding: 5px 12px;
  border: 1px solid var(--gray-200);
}
.logistics-card ul { list-style: none; }
.logistics-card li { padding: 11px 0; font-size: .85rem; color: var(--gray-600); border-bottom: 1px solid var(--gray-50); }
.logistics-card li:last-child { border: none; }

/* ====== TIMELINE ====== */
.timeline {
  position: relative; max-width: 880px; margin: 0 auto;
  padding-left: 40px;
}
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 1px; background: var(--gray-200);
}
.timeline-step { padding: 28px 0; position: relative; }
.timeline-step::before {
  content: ''; position: absolute; left: -44px; top: 34px;
  width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--accent);
  background: var(--white);
}
.timeline-step h4 { font-size: .95rem; font-weight: 600; color: var(--gray-800); margin-bottom: 4px; }
.timeline-step p { font-size: .85rem; color: var(--gray-400); max-width: 400px; }

/* ====== PARALLAX ====== */
.parallax-section {
  position: relative; padding: 140px 40px;
  background: var(--navy);
  background-size: cover; background-position: center; background-attachment: fixed;
}
.parallax-section::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(10,13,20,.72);
}
.parallax-inner { position: relative; z-index: 2; text-align: left; max-width: var(--max-width); margin: 0 auto; }
.parallax-inner h2 { font-size: 2rem; font-weight: 300; color: var(--white); max-width: 500px; line-height: 1.25; }
.parallax-inner p { font-size: .95rem; color: rgba(255,255,255,.45); margin: 20px 0 32px; max-width: 480px; }

/* ====== ABOUT PAGE ====== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

/* ====== CONTACT ====== */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1px; background: var(--gray-100); }
.contact-form-wrap { background: var(--white); padding: 56px 48px; }
.contact-sidebar { background: var(--navy); padding: 56px 48px; color: var(--white); }
.contact-sidebar h3 { font-size: .95rem; font-weight: 600; color: var(--accent); margin-bottom: 28px; letter-spacing: 1px; text-transform: uppercase; }
.contact-sidebar .info-item { margin-bottom: 24px; }
.contact-sidebar .info-label { font-size: .68rem; color: rgba(255,255,255,.3); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 4px; }
.contact-sidebar .info-value { font-size: .9rem; color: rgba(255,255,255,.7); }
.contact-sidebar hr { border-color: rgba(255,255,255,.08); margin: 32px 0; }

.form-group { margin-bottom: 28px; }
.form-group label {
  display: block; font-size: .72rem; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--gray-400); margin-bottom: 8px;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 0; border: none; border-bottom: 1px solid var(--gray-200);
  font-size: .9rem; font-family: inherit; transition: border-color .2s; background: transparent; color: var(--gray-800);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-bottom-color: var(--gray-800);
}
.form-group textarea { min-height: 100px; resize: vertical; }
.form-success { display: none; background: none; color: #2d8a5e; padding: 16px 0; font-size: .85rem; border-bottom: 1px solid #c6e6d4; margin-top: 16px; }

/* ====== FOOTER ====== */
.footer {
  background: var(--black); color: var(--white); padding: 80px 40px 40px;
}
.footer-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 64px;
}
.footer h4 { font-size: .75rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 20px; }
.footer p, .footer a { font-size: .85rem; color: rgba(255,255,255,.35); text-decoration: none; line-height: 2.2; }
.footer a:hover { color: rgba(255,255,255,.7); }
.footer-bottom { text-align: center; padding-top: 40px; margin-top: 48px; border-top: 1px solid rgba(255,255,255,.06); font-size: .75rem; color: rgba(255,255,255,.2); }

/* ====== PAGE BANNER ====== */
.page-banner {
  padding: 160px 40px 72px; background: var(--navy);
  background-size: cover; background-position: center;
  position: relative;
}
.page-banner::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,13,20,.85) 0%, rgba(10,13,20,.55) 50%, rgba(10,13,20,.3) 100%);
}
.page-banner-inner { position: relative; z-index: 2; max-width: var(--max-width); margin: 0 auto; }
.page-banner h1 { font-size: 2.4rem; font-weight: 300; color: var(--white); letter-spacing: -.5px; }
.page-banner p { font-size: .9rem; color: rgba(255,255,255,.4); margin-top: 8px; }

/* ====== WHATSAPP ====== */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 200;
  width: 52px; height: 52px; background: #1db954; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 16px rgba(0,0,0,.2);
  text-decoration: none; font-size: 1.3rem; transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ====== PLACEHOLDER ====== */
.img-placeholder {
  background: var(--gray-100); width: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-200); font-size: .75rem; font-weight: 500;
  letter-spacing: 1px; text-transform: uppercase;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 68px;
    left: 0; right: 0; background: var(--black); padding: 24px 40px; gap: 20px;
  }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 2.2rem; }
  .section { padding: 64px 24px; }
  .section-title { font-size: 1.5rem; }
  .features-grid, .categories-grid, .product-grid,
  .logistics-grid, .contact-grid, .about-grid, .stats-row {
    grid-template-columns: 1fr;
  }
  .stat-item + .stat-item { border-left: none; border-top: 1px solid rgba(255,255,255,.06); }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .parallax-section { background-attachment: scroll; }
  .page-banner h1 { font-size: 1.8rem; }
  .back-float { top: 78px; left: 16px; font-size: .7rem; padding: 10px 16px; }
  .scroll-top { bottom: 20px; right: 20px; width: 40px; height: 40px; }
}

/* ====== FLOATING BACK BUTTON ====== */
.back-float {
  position: fixed !important; top: 84px !important; left: 40px !important; z-index: 9999 !important;
  background: rgba(15,25,35,.95); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--white); font-size: .8rem; font-weight: 600;
  letter-spacing: 1.5px;
  padding: 11px 26px; text-decoration: none;
  border: 2px solid rgba(196,148,58,.4);
  border-radius: 8px;
  box-shadow: 0 4px 28px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.1);
  transition: all .25s ease;
  display: inline-flex; align-items: center; gap: 6px;
  pointer-events: auto;
}
.back-float::before { content: '←'; font-size: .9rem; }
.back-float:hover {
  background: var(--accent); border-color: var(--accent);
  color: var(--white);
  box-shadow: 0 6px 36px rgba(196,148,58,.35), 0 0 0 1px rgba(196,148,58,.2);
  transform: translateY(-2px);
}

/* ====== SCROLL TO TOP ====== */
.scroll-top {
  position: fixed; bottom: 40px; right: 90px; z-index: 500;
  width: 44px; height: 44px;
  background: rgba(10,13,20,.88); backdrop-filter: blur(12px);
  color: var(--white); border: 1px solid rgba(255,255,255,.1);
  font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .3s ease;
  opacity: 0; transform: translateY(12px); pointer-events: none;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top:hover { background: rgba(196,148,58,.15); border-color: var(--accent); color: var(--accent); }

/* ====== CARD HOVER LIFT ====== */
.product-card {
  transition: transform .35s ease, box-shadow .35s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}
.feature-card {
  transition: transform .3s ease, box-shadow .3s ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
}

/* ====== REVEAL ON SCROLL ====== */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1; transform: translateY(0);
}

/* ====== IMAGE LOADING SHIMMER ====== */
.product-card-img {
  transition: opacity .4s ease;
}
.product-card-img[src] { opacity: 1; }

/* ====== SECTION BORDERS (subtle) ====== */
.section + .section { border-top: 1px solid var(--gray-50); }
.section-dark + .section-dark { border-color: rgba(255,255,255,.04); }
