/* ========================================
   Anyue Parts — B2B Industrial Theme
   ======================================== */

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

:root {
  --ink: #0b1c2c;
  --slate: #33475b;
  --steel: #6b7f94;
  --line: #dbe4ee;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --bg-dark: #071624;
  --brand: #1a5fb4;
  --brand-dark: #0f3f7d;
  --accent: #e8660c;
  --accent-dark: #c45509;
  --success: #1a7f37;
  --danger: #c0392b;
  --radius: 10px;
  --shadow: 0 8px 30px rgba(11,28,44,0.08);
  --shadow-lg: 0 20px 60px rgba(11,28,44,0.14);
  --container: 1200px;
  --nav-h: 86px;
  --disclaimer-h: 44px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--slate);
  background: var(--bg);
  line-height: 1.65;
  padding-bottom: var(--disclaimer-h);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

.container { width: 92%; max-width: var(--container); margin: 0 auto; }
.section { padding: 80px 0; }
.section-alt { background: var(--bg-soft); }

/* Typography */
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
.lead { font-size: 1.15rem; color: var(--steel); }
.kicker { display: inline-block; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; font-size: 0.78rem; color: var(--accent); margin-bottom: 10px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 8px; font-weight: 600; font-size: 0.95rem;
  border: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .2s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: var(--brand); color: #fff; }
.btn-secondary:hover { background: var(--brand-dark); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.6); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.06); }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.96); backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
  height: var(--nav-h);
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(11,28,44,0.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.logo { font-weight: 800; color: var(--ink); font-size: 1.25rem; letter-spacing: -0.02em; }
.logo span { color: var(--accent); }
.site-header .logo img { height: 56px !important; width: auto; display: block; }
.site-footer .logo img { height: 44px !important; width: auto; display: block; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--slate); font-weight: 500; font-size: 0.92rem; }
.nav-links a:hover { color: var(--ink); }
.header-cta { display: flex; align-items: center; gap: 16px; }
.mobile-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--ink); cursor: pointer; }

/* Equipment table */
.equip-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; background: #fff; }
.equip-table th, .equip-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.equip-table th { background: var(--bg-soft); color: var(--ink); font-weight: 700; white-space: nowrap; }
.equip-table td { color: var(--slate); }
.equip-table tbody tr:nth-child(even) { background: #fafcfe; }

/* Hero */
.hero {
  position: relative; min-height: 600px; display: flex; align-items: center;
  background: linear-gradient(90deg, rgba(7,22,36,0.92) 0%, rgba(7,22,36,0.55) 60%, rgba(7,22,36,0.25) 100%), url('../img/hero-banner.png') center/cover no-repeat;
  color: #fff; padding: 120px 0 100px;
}
.hero-content { max-width: 700px; }
.hero h1 { color: #fff; margin-bottom: 16px; }
.hero .lead { color: rgba(255,255,255,0.85); margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Cards */
.card {
  background: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img { border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.card-img img { width: 100%; height: 220px; object-fit: cover; }
.card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.card p { color: var(--steel); font-size: 0.92rem; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.badge-accent { background: rgba(232,102,12,0.12); color: var(--accent-dark); }
.badge-brand { background: rgba(26,95,180,0.10); color: var(--brand-dark); }

/* Grid helpers */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Section headers */
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2 { margin-bottom: 10px; }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.step { text-align: center; position: relative; }
.step::after { content: ''; position: absolute; top: 28px; right: -50%; width: 100%; height: 2px; background: var(--line); }
.step:last-child::after { display: none; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%; background: var(--bg-soft); border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--brand); margin: 0 auto 12px; position: relative; z-index: 1;
}
.step h4 { font-size: 0.95rem; margin-bottom: 4px; }
.step p { font-size: 0.82rem; color: var(--steel); }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; background: none; border: none; font-size: 1.05rem; font-weight: 600; color: var(--ink); cursor: pointer; text-align: left;
}
.faq-q::after { content: '+'; font-size: 1.4rem; color: var(--accent); transition: transform .2s; }
.faq-q.active::after { content: '−'; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a.open { max-height: 400px; padding-bottom: 20px; }
.faq-a p { color: var(--slate); font-size: 0.95rem; }

/* Forms */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--ink); }
.form-label .opt { color: var(--steel); font-weight: 400; font-size: 0.85rem; }
.form-control, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--bg); font-family: inherit; font-size: 0.95rem; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(26,95,180,0.12); }
textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

/* File upload */
.upload-zone {
  border: 2px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; cursor: pointer;
  transition: border-color .2s, background .2s; background: var(--bg-soft);
}
.upload-zone.dragover { border-color: var(--brand); background: rgba(26,95,180,0.04); }
.upload-zone input { display: none; }
.file-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.file-chip { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; font-size: 0.88rem; }
.file-chip button { background: none; border: none; color: var(--danger); cursor: pointer; font-weight: 700; }

/* Product filters */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-btn { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--slate); font-weight: 600; font-size: 0.85rem; cursor: pointer; }
.filter-btn.active, .filter-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.product-card[data-category] { transition: opacity .25s, transform .25s; }
.product-card.hidden { display: none; }

/* Brand compatibility chips */
.brand-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.brand-chip { padding: 4px 12px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); font-size: 0.8rem; color: var(--slate); }

/* Equipment grid (factory) */
.equip-card { display: flex; gap: 20px; align-items: center; }
.equip-card img { width: 140px; height: 100px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }

/* Stats / why choose us */
.why-grid .card { text-align: center; padding: 32px 24px; }
.why-icon { width: 64px; height: 64px; margin: 0 auto 16px; color: var(--brand); }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.contact-info h3 { margin-bottom: 12px; }
.contact-item { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.contact-item svg { width: 22px; height: 22px; color: var(--brand); flex-shrink: 0; margin-top: 2px; }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 340px; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* Footer */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,0.7); padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.footer-grid a { color: rgba(255,255,255,0.7); font-size: 0.9rem; display: block; margin-bottom: 8px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: rgba(255,255,255,0.5); }

/* Fixed disclaimer bar */
.disclaimer-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1100;
  background: var(--ink); color: rgba(255,255,255,0.85); font-size: 0.82rem;
  padding: 10px 0; border-top: 1px solid rgba(255,255,255,0.08);
}
.disclaimer-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.disclaimer-bar a { color: #fff; text-decoration: underline; }

/* 404 */
.page-404 { text-align: center; padding: 120px 0; }
.page-404 h1 { font-size: 6rem; color: var(--line); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* Toast */
.toast {
  position: fixed; top: 24px; right: 24px; z-index: 1200;
  background: var(--ink); color: #fff; padding: 14px 20px; border-radius: 10px;
  box-shadow: var(--shadow-lg); transform: translateX(140%); transition: transform .35s ease;
  font-size: 0.95rem; max-width: 420px;
}
.toast.show { transform: translateX(0); }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

/* Responsive */
@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .header-cta .btn { display: none; }
  .hero { min-height: 480px; padding: 80px 0 60px; }
  .section { padding: 56px 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .disclaimer-bar { font-size: 0.72rem; }
}
