/* ============================================
   CHIDE 驰德 – Circular Knitting Machine
   Design: Industrial-precision, clean Chinese manufacturing aesthetic
   Palette: Steel blue, charcoal, warm white, gold accent
   ============================================ */

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

:root {
  --steel:    #1a2a3a;
  --deep:     #0d1820;
  --gold:     #c8973a;
  --gold-lt:  #e5b96a;
  --ice:      #e8eff5;
  --white:    #f9fbfc;
  --muted:    #6b8097;
  --border:   #d0dde8;
  --radius:   4px;
  --nav-h:    68px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', 'Noto Sans SC', sans-serif;
  background: var(--white);
  color: var(--steel);
  line-height: 1.7;
  font-size: 16px;
}

/* ── NAV ─────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--deep);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  border-bottom: 2px solid var(--gold);
}

.nav-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.1;
}
.nav-logo .en {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  color: var(--white);
  text-transform: uppercase;
}
.nav-logo .cn {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.25em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a0b5c5;
  text-decoration: none;
  transition: color 0.2s;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: 0.3s;
}

/* ── PAGE HEADER ─────────────────────────── */
.page-hero {
  background: var(--deep);
  padding: 60px 5vw 48px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 59px,
    rgba(200,151,58,0.07) 60px
  );
  pointer-events: none;
}
.page-hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  position: relative;
}
.page-hero h1 span {
  color: var(--gold);
}
.page-hero p {
  color: var(--muted);
  margin-top: 0.5rem;
  font-size: 1rem;
  letter-spacing: 0.05em;
  position: relative;
}

/* ── SECTIONS ─────────────────────────────── */
.section {
  padding: 64px 5vw;
}
.section-alt {
  background: var(--ice);
}
.section h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--steel);
  margin-bottom: 1.5rem;
}
.section h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--gold);
  margin-top: 8px;
}

/* ── TECH TABLE ───────────────────────────── */
.tech-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-size: 0.92rem;
}
.tech-table th {
  background: var(--steel);
  color: var(--gold);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 16px;
  text-align: left;
}
.tech-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.tech-table tr:last-child td { border-bottom: none; }
.tech-table tr:nth-child(even) td { background: rgba(26,42,58,0.04); }

/* ── PRODUCT FEATURE LIST ─────────────────── */
.feature-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}
.feature-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.95rem;
  line-height: 1.6;
}
.feature-list li::before {
  content: '▸';
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── PRODUCT HERO (machine pages) ────────── */
.machine-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 60px;
  align-items: start;
  padding: 64px 5vw;
}
.machine-img-wrap {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}
.machine-img-wrap img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(13,24,32,0.15);
  background: var(--ice);
}
.machine-content h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--steel);
  margin: 2rem 0 1rem;
}
.machine-content h2:first-child { margin-top: 0; }
.machine-content h2::after {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--gold);
  margin-top: 6px;
}
.machine-content p {
  color: #3a5068;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}
.tag {
  background: var(--steel);
  color: var(--ice);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
}

/* ── HOME HERO ────────────────────────────── */
.home-hero {
  background: var(--deep);
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: 80px 5vw;
  position: relative;
  overflow: hidden;
}
.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent, transparent 59px, rgba(200,151,58,0.06) 60px),
    repeating-linear-gradient(0deg,  transparent, transparent 59px, rgba(200,151,58,0.03) 60px);
}
.hero-text { position: relative; max-width: 680px; }
.hero-text .eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-text .eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--gold);
}
.hero-text h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero-text h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero-text p {
  color: #8aa5ba;
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 2rem;
}
.btn {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-gold {
  background: var(--gold);
  color: var(--deep);
}
.btn-gold:hover {
  background: var(--gold-lt);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(200,151,58,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
  margin-left: 1rem;
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

/* ── PRODUCT CARDS ────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
  background: var(--border);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.product-card {
  background: var(--white);
  padding: 0;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
}
.product-card:hover { background: #f0f6fa; }
.product-card:hover .card-arrow { transform: translateX(4px); }
.card-img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: var(--ice);
  padding: 24px;
}
.card-body {
  padding: 24px 24px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-category {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--steel);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.card-list {
  list-style: none;
  font-size: 0.84rem;
  color: var(--muted);
  flex: 1;
}
.card-list li { padding: 3px 0; padding-left: 14px; position: relative; }
.card-list li::before { content: '–'; position: absolute; left: 0; color: var(--gold); }
.card-arrow {
  display: inline-block;
  margin-top: 1.2rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  transition: transform 0.2s;
}

/* ── CONTACT ──────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}
.contact-info h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--steel);
  margin-bottom: 1.5rem;
}
.contact-info h2::after {
  content: ''; display: block;
  width: 36px; height: 3px;
  background: var(--gold); margin-top: 8px;
}
.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}
.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--steel);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.contact-item-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2px;
}
.contact-item-value {
  font-size: 0.92rem;
  color: var(--steel);
}
.contact-item-value a {
  color: var(--steel);
  text-decoration: none;
}
.contact-item-value a:hover { color: var(--gold); }

/* ── FORM ─────────────────────────────────── */
.quote-form {
  background: var(--ice);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}
.quote-form h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--steel);
  margin-bottom: 1.5rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-group input,
.form-group textarea,
.form-group select {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Barlow', sans-serif;
  font-size: 0.92rem;
  color: var(--steel);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,151,58,0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-success {
  display: none;
  background: #e6f4ea;
  border: 1px solid #81c784;
  border-radius: var(--radius);
  padding: 16px 20px;
  color: #2e7d32;
  font-size: 0.95rem;
  margin-top: 1rem;
}

/* ── ABOUT ────────────────────────────────── */
.about-content {
  max-width: 820px;
  font-size: 1rem;
  color: #3a5068;
  line-height: 1.8;
}
.faq-list { display: grid; gap: 1rem; margin-top: 1rem; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 16px 20px;
  background: var(--white);
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--steel);
  transition: background 0.15s;
}
.faq-q:hover { background: var(--ice); }
.faq-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 700;
  min-width: 28px;
}
.faq-icon {
  margin-left: auto;
  color: var(--muted);
  font-size: 1.1rem;
  transition: transform 0.25s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s;
  padding: 0 20px;
  font-size: 0.92rem;
  color: #3a5068;
  background: var(--ice);
  border-top: 0 solid var(--border);
}
.faq-item.open .faq-a {
  max-height: 300px;
  padding: 16px 20px;
  border-top-width: 1px;
}

/* ── COUNTRIES STRIP ──────────────────────── */
.countries-strip {
  background: var(--steel);
  padding: 32px 5vw;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.countries-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}
.countries-text {
  font-size: 0.88rem;
  color: #8aa5ba;
  line-height: 1.5;
}

/* ── FOOTER ───────────────────────────────── */
.site-footer {
  background: var(--deep);
  padding: 48px 5vw 24px;
  border-top: 2px solid var(--gold);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-brand .en {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}
.footer-brand .cn {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.25em;
  margin-bottom: 0.75rem;
}
.footer-brand p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}
.footer-col h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: none;
  padding: 3px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }
.footer-col address {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #4a6070;
}

/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 900px) {
  .machine-layout { grid-template-columns: 1fr; }
  .machine-img-wrap { position: static; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--deep); padding: 1rem 5vw 1.5rem; border-bottom: 2px solid var(--gold); gap: 0.5rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .btn-outline { display: none; }
  .quote-form { padding: 24px; }
}
