/*
Theme Name: Yiyun Industrial Supply
Theme URI: [PLACEHOLDER]
Author: Henan Yiyun International Trade Co., Ltd.
Author URI: [PLACEHOLDER]
Description: B2B foreign trade standalone site for Electric Motors, Gearboxes & Geared Motors, Industrial Pumps and Fans & Blowers. Manufacturer + Supplier + Wholesale + OEM/ODM + Project Solutions. Premium modern industrial design.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yiyun-industrial
Tags: b2b, industrial, e-commerce, business, one-column, responsive
*/

/* ==========================================================================
   Yiyun Industrial Supply — Premium Modern Industrial B2B
   Palette: Deep Navy Blue / Cloud White / Steel Blue / Light Gray
   ========================================================================== */

:root {
  --bg: #F1F4F8;
  --surface: #FFFFFF;
  --surface-alt: #E9EEF4;
  --text: #14202E;
  --muted: #51617A;
  --line: #D8E0EA;
  --dark: #12263F;
  --dark-soft: #1B3350;
  --accent: #0F4DA6;
  --accent-dark: #0B3A7E;
  --success: #2E7D32;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --container: 1280px;
  --font: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, 'PingFang SC', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
ul, ol { list-style: none; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-alt { background: var(--surface); }
.section-dark { background: var(--dark); color: #F4F3EE; }
.section-dark .eyebrow { color: #A9C4F0; }
.section-dark h2 { color: #FFFFFF; }
.section-dark .muted-text { color: #C2CBD8; }
.section-tight { padding: 64px 0; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
h2.section-title { font-size: clamp(28px, 4vw, 40px); margin-bottom: 16px; }
.section-intro { font-size: 17px; color: var(--muted); max-width: 720px; margin-bottom: 48px; }
.muted-text { color: var(--muted); }

/* ============ Buttons / CTA ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .1s;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--dark); color: #fff; }
.btn-primary:hover { background: #000; color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { background: transparent; border-color: var(--line); color: var(--text); }
.btn-outline:hover { border-color: var(--text); color: var(--text); }
.btn-light { background: #fff; color: var(--dark); }
.btn-light:hover { background: #E9E9E9; color: var(--dark); }
.btn-lg { padding: 16px 34px; font-size: 16px; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(241, 244, 248, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-logo {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--dark); color: #fff;
  border-radius: 8px;
  font-weight: 800; font-size: 15px;
  flex-shrink: 0;
  text-transform: uppercase;
}
.brand-name { font-weight: 700; font-size: 17px; color: var(--text); line-height: 1.15; }
.brand-tag { font-size: 12px; color: var(--muted); display: block; margin-top: 2px; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: block;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-radius: 6px;
}
.main-nav a:hover { background: rgba(0,0,0,.05); color: var(--text); }
.main-nav .current-menu-item > a { color: var(--accent); font-weight: 600; }
.header-cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.header-whatsapp:hover { border-color: #25D366; color: #128C7E; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line);
  border-radius: 8px; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px;
  background: var(--text); position: relative; transition: .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative;
  background: var(--dark);
  color: #fff;
  overflow: hidden;
  padding: 120px 0 104px;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .5;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,30,62,.94) 0%, rgba(9,36,74,.76) 48%, rgba(11,46,92,.30) 100%);
}
.hero-content { position: relative; max-width: 760px; }
.hero .eyebrow { color: #A9C6F2; }
.hero h1 { font-size: clamp(34px, 5.4vw, 58px); margin-bottom: 20px; }
.hero-sub { font-size: clamp(17px, 2.2vw, 20px); color: #DCE3EE; margin-bottom: 36px; max-width: 640px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 44px; }
.hero-point { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #E7E9EB; }
.hero-point svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ============ Trust bar ============ */
.trust-bar { background: var(--surface); border-bottom: 1px solid var(--line); }
.trust-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 18px; padding: 22px 0; 
}
.trust-item { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.trust-item strong { color: var(--text); font-weight: 600; }

/* ============ Product categories ============ */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.cat-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.cat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.cat-card-media { aspect-ratio: 4 / 3; overflow: hidden; }
.cat-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat-card:hover .cat-card-media img { transform: scale(1.04); }
.cat-card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cat-card h3 { font-size: 19px; }
.cat-card p { font-size: 14.5px; color: var(--muted); flex: 1; }
.cat-card .card-link { font-weight: 600; font-size: 14px; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.cat-card .card-link:hover { color: var(--accent-dark); }

/* ============ Why choose us ============ */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.why-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.why-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-alt);
  border-radius: 10px;
  margin-bottom: 16px;
  color: var(--accent);
}
.why-item h3 { font-size: 17px; margin-bottom: 8px; }
.why-item p { font-size: 14.5px; color: var(--muted); }

/* ============ Split / feature rows ============ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-media { border-radius: var(--radius); overflow: hidden; }
.split-media img { width: 100%; }
.split-body .eyebrow { margin-top: 0; }
.split h3 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 16px; }
.split p { color: var(--muted); margin-bottom: 16px; }
.split ul { margin: 8px 0 0; display: grid; gap: 10px; }
.split ul li { padding-left: 28px; position: relative; font-size: 15px; color: var(--text); }
.split ul li::before {
  content: '✓';
  position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 700;
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-media { order: -1; }
}

/* ============ Process / steps ============ */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; counter-reset: step; }
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-size: 13px; font-weight: 700;
  color: var(--accent);
  letter-spacing: .08em;
  display: block; margin-bottom: 10px;
}
.step h4 { font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 13.5px; color: var(--muted); }

/* ============ Stats ============ */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.stat {
  text-align: center;
  padding: 28px 16px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
}
.stat-value { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; color: #fff; }
.stat-label { font-size: 14px; color: #B9BDBF; margin-top: 6px; }

/* ============ FAQ ============ */
.faq-list { max-width: 860px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 12px; }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; text-align: left;
  padding: 18px 22px;
  background: none; border: none; cursor: pointer;
  font-size: 16px; font-weight: 600; color: var(--text);
}
.faq-q .icon { flex-shrink: 0; font-size: 18px; color: var(--muted); transition: transform .2s; }
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 22px 18px; font-size: 15px; color: var(--muted); }
.faq-item.open .faq-a { display: block; }

/* ============ Final CTA ============ */
.final-cta { text-align: center; background: var(--dark); color: #fff; padding: 96px 0; }
.final-cta h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; }
.final-cta p { color: #C2CBD8; max-width: 620px; margin: 0 auto 32px; font-size: 17px; }

/* ============ Footer ============ */
.site-footer { background: var(--dark); color: #C7CACD; padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { font-size: 14.5px; color: #A8ADB0; margin-top: 14px; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; letter-spacing: .02em; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: #C7CACD; font-size: 14.5px; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; font-size: 14.5px; margin-bottom: 10px; color: #A8ADB0; }
.footer-contact a { color: #E7E9EB; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 48px; padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 13.5px; color: #8E9396;
}
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============ Product listing ============ */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.prod-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.prod-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.prod-card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-alt); }
.prod-card-media img { width: 100%; height: 100%; object-fit: cover; }
.prod-card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.prod-card h3 { font-size: 18px; }
.prod-card .prod-meta { font-size: 13px; color: var(--accent); font-weight: 600; }
.prod-card p { font-size: 14.5px; color: var(--muted); flex: 1; }
.prod-card .btn-row { margin-top: 6px; }

/* ============ Product detail ============ */
.prod-hero { background: var(--surface); border-bottom: 1px solid var(--line); padding: 56px 0 0; }
.breadcrumb { font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.prod-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.prod-hero-media { border-radius: var(--radius); overflow: hidden; background: var(--surface-alt); }
.prod-hero h1 { font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 12px; }
.prod-hero .lead { font-size: 17px; color: var(--muted); margin-bottom: 24px; }
.spec-list { display: grid; gap: 10px; margin-bottom: 28px; }
.spec-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.spec-row dt { color: var(--muted); }
.spec-row dd { font-weight: 600; text-align: right; }
.prod-sections { padding: 72px 0; }
.prod-section { margin-bottom: 56px; }
.prod-section h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 18px; }
.prod-section p { color: var(--muted); max-width: 860px; }
.prod-section ul { margin-top: 14px; display: grid; gap: 10px; max-width: 760px; }
.prod-section ul li { padding-left: 26px; position: relative; color: var(--text); }
.prod-section ul li::before { content: '—'; position: absolute; left: 0; color: var(--accent); }
@media (max-width: 860px) {
  .prod-hero-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ============ RFQ form ============ */
.rfq-wrap { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.rfq-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}
.rfq-card h2 { font-size: 24px; margin-bottom: 6px; }
.rfq-card .form-note { color: var(--muted); font-size: 14.5px; margin-bottom: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 14px; font-weight: 600; }
.form-field label .req { color: #C62828; }
.form-field input, .form-field select, .form-field textarea {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  width: 100%;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31,95,191,.12);
}
.form-field textarea { min-height: 110px; resize: vertical; }
.rfq-sidebar { display: grid; gap: 20px; }
.rfq-help { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.rfq-help h3 { font-size: 17px; margin-bottom: 12px; }
.rfq-help ul { display: grid; gap: 10px; font-size: 14.5px; color: var(--muted); }
.rfq-help ul li { padding-left: 24px; position: relative; }
.rfq-help ul li::before { content: '→'; position: absolute; left: 0; color: var(--accent); }
.rfq-help .btn-row { margin-top: 18px; }
.rfq-success { display: none; text-align: center; padding: 40px 20px; }
.rfq-success .check { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; background: #E8F5E9; color: var(--success); display: flex; align-items: center; justify-content: center; font-size: 30px; }
.rfq-success h2 { font-size: 26px; margin-bottom: 10px; }
.rfq-success p { color: var(--muted); margin-bottom: 24px; }
@media (max-width: 860px) {
  .rfq-wrap { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ============ Landing pages ============ */
.landing-hero { background: var(--dark); color: #fff; padding: 110px 0 88px; }
.landing-hero h1 { font-size: clamp(30px, 4.6vw, 48px); max-width: 780px; margin-bottom: 18px; }
.landing-hero p { font-size: 18px; color: #CFD2D5; max-width: 640px; margin-bottom: 32px; }
.landing-body { padding: 72px 0; }
.landing-body h2 { font-size: clamp(24px, 3.2vw, 34px); margin-bottom: 14px; }
.landing-body .lead { color: var(--muted); font-size: 17px; margin-bottom: 36px; max-width: 760px; }
.landing-body .prose { max-width: 860px; }
.landing-body .prose h3 { font-size: 20px; margin: 28px 0 10px; }
.landing-body .prose p { color: var(--muted); margin-bottom: 16px; }
.landing-body .prose ul, .landing-body .prose ol { margin: 0 0 16px; display: grid; gap: 8px; padding-left: 20px; }
.landing-body .prose ul li { padding-left: 24px; position: relative; list-style: none; }
.landing-body .prose ul li::before { content: '\2014'; position: absolute; left: 0; color: var(--accent); }
.landing-body .prose ol li { list-style: decimal; color: var(--muted); }
.landing-cta-band { background: var(--accent); color: #fff; padding: 44px 0; text-align: center; }
.landing-cta-band h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 10px; color: #fff; }
.landing-cta-band p { color: #D6E2F7; margin-bottom: 22px; }

/* ============ Generic page header ============ */
.page-head { background: var(--dark); color: #fff; padding: 84px 0 68px; }
.page-head h1 { font-size: clamp(30px, 4.6vw, 46px); margin-bottom: 12px; }
.page-head p { color: #C7CACD; font-size: 17px; max-width: 720px; }
.page-content { padding: 72px 0; }
.page-content .prose { max-width: 860px; }
.page-content .prose h2 { font-size: 26px; margin: 40px 0 14px; }
.page-content .prose h3 { font-size: 20px; margin: 28px 0 10px; }
.page-content .prose p { color: var(--muted); margin-bottom: 16px; }
.page-content .prose ul { margin: 0 0 16px; display: grid; gap: 8px; }
.page-content .prose ul li { padding-left: 24px; position: relative; }
.page-content .prose ul li::before { content: '—'; position: absolute; left: 0; color: var(--accent); }

/* ============ Misc ============ */
.entry-content img { border-radius: var(--radius); margin: 20px 0; }
.notice { padding: 18px 22px; border-radius: 8px; font-size: 14.5px; margin-bottom: 24px; }
.notice-info { background: #EAF1FC; border: 1px solid #C9DCF5; color: #174A96; }
.hp-field { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; overflow: hidden; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .main-nav {
    position: fixed;
    top: 74px; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    gap: 10px;
    display: none;
  }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { padding: 12px 12px; font-size: 16px; }
  .nav-open .main-nav { display: flex; }
  .nav-toggle { display: inline-flex; }
  .header-whatsapp span.whatsapp-label { display: none; }
  .section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
  .hero { padding: 84px 0 72px; }
  .rfq-card { padding: 24px; }
  .header-cta .btn { padding: 10px 14px; font-size: 14px; }
}

/* ============ Accessibility ============ */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
