/* ===== JIAYAO Stationery - Main Styles ===== */
:root {
  --primary: #c8102e;
  --primary-dark: #9e0b23;
  --dark: #1a1a2e;
  --gray: #666;
  --light: #f8f8f8;
  --whatsapp: #25d366;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #333; line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- Header --- */
header {
  background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.08);
  position: sticky; top: 0; z-index: 100;
}
.nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0;
}
.logo { font-size: 22px; font-weight: 800; color: var(--primary); letter-spacing: 1px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 15px; font-weight: 500; color: #333; transition: color .2s; }
.nav-links a:hover { color: var(--primary); }

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--dark) 0, #16213e 100%);
  color: #fff; text-align: center; padding: 100px 20px;
}
.hero .badge {
  display: inline-block; background: rgba(200,16,46,.2); color: #ff6b7a;
  padding: 6px 18px; border-radius: 20px; font-size: 13px; margin-bottom: 20px;
  border: 1px solid rgba(200,16,46,.4);
}
.hero h1 { font-size: 42px; margin-bottom: 16px; line-height: 1.2; }
.hero p.sub { font-size: 18px; color: #bbb; max-width: 600px; margin: 0 auto 30px; }
.hero .btn {
  display: inline-block; background: var(--primary); color: #fff;
  padding: 14px 36px; border-radius: 6px; font-weight: 600; font-size: 16px;
  transition: background .2s;
}
.hero .btn:hover { background: var(--primary-dark); }

/* --- Sections --- */
section { padding: 80px 0; }
section h2 {
  text-align: center; font-size: 32px; margin-bottom: 12px;
}
section .section-sub {
  text-align: center; color: var(--gray); margin-bottom: 50px; font-size: 16px;
}

/* --- About --- */
.about { background: #fff; }
.about-text { max-width: 800px; margin: 0 auto; text-align: center; font-size: 16px; color: #555; line-height: 1.9; }
.stats {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 30px;
  max-width: 800px; margin: 50px auto 0; text-align: center;
}
.stat .num { font-size: 36px; font-weight: 800; color: var(--primary); }
.stat .label { font-size: 14px; color: var(--gray); margin-top: 4px; }

/* --- Products --- */
.products { background: var(--light); }
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 24px;
}
.product-card {
  background: #fff; border-radius: 10px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06); transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.product-card .icon {
  font-size: 48px; text-align: center; padding: 30px 0 10px;
}
.product-card .info { padding: 20px; flex: 1; }
.product-card h3 { font-size: 18px; margin-bottom: 8px; }
.product-card p { font-size: 14px; color: var(--gray); }
.product-card .view-btn {
  display: block; text-align: center; background: var(--primary); color: #fff;
  padding: 12px; font-weight: 600; font-size: 14px; transition: background .2s;
}
.product-card .view-btn:hover { background: var(--primary-dark); }

/* --- Advantages --- */
.adv-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.adv-card { text-align: center; padding: 30px 20px; }
.adv-card .icon { font-size: 40px; margin-bottom: 16px; }
.adv-card h3 { font-size: 17px; margin-bottom: 8px; }
.adv-card p { font-size: 14px; color: var(--gray); }

/* --- Contact --- */
.contact { background: var(--dark); color: #fff; }
.contact h2 { color: #fff; }
.contact .section-sub { color: #aaa; }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 900px; margin: 0 auto;
}
.contact-card {
  background: rgba(255,255,255,.06); border-radius: 12px; padding: 30px;
  text-align: center;
}
.contact-card h3 { font-size: 22px; margin-bottom: 4px; }
.contact-card .role { color: var(--whatsapp); font-size: 14px; margin-bottom: 20px; }
.contact-card .qr {
  width: 160px; height: 160px; object-fit: cover; border-radius: 8px;
  margin: 0 auto 20px; background: #fff; padding: 8px;
}
.contact-card .detail { font-size: 14px; color: #ccc; margin-bottom: 6px; }
.contact-card .detail a { color: #fff; }
.wa-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--whatsapp); color: #fff; padding: 12px 28px;
  border-radius: 30px; font-weight: 600; margin-top: 16px;
  transition: opacity .2s;
}
.wa-btn:hover { opacity: .9; }
.wa-btn svg { width: 20px; height: 20px; fill: #fff; }

/* --- Footer --- */
footer {
  background: #111; color: #888; text-align: center; padding: 30px 20px; font-size: 14px;
}

/* --- Floating WhatsApp --- */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 60px; height: 60px; background: var(--whatsapp);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.4); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* --- Mobile --- */
@media (max-width: 768px) {
  .hero h1 { font-size: 28px; }
  .nav-links { display: none; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .adv-grid { grid-template-columns: repeat(2,1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  section { padding: 50px 0; }
}
