/*
Theme Name: Xinqisu Motors
Theme URI: https://xinqisu.com/
Author: Xinqisu
Description: A fast, responsive WordPress theme for Xinqisu motorcycle manufacturing and international sales.
Version: 1.4.1
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: xinqisu
*/

:root {
  --ink: #08101d;
  --ink-2: #101c2d;
  --navy: #0d2748;
  --red: #ef2b38;
  --red-dark: #c81826;
  --blue: #1d6fff;
  --paper: #f5f7fa;
  --white: #ffffff;
  --muted: #6d7785;
  --line: #dfe4ea;
  --shadow: 0 18px 50px rgba(8, 16, 29, .12);
  --radius: 18px;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
h1, h2, h3, h4 { margin: 0 0 .7em; line-height: 1.08; letter-spacing: -.025em; }
p { margin: 0 0 1.35em; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), 820px); margin-inline: auto; }
.section { padding: 100px 0; }
.section--soft { background: var(--paper); }
.section--dark { color: var(--white); background: var(--ink); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--red); font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { width: 28px; height: 2px; content: ""; background: currentColor; }
.section-title { max-width: 800px; font-size: clamp(34px, 4.2vw, 60px); }
.section-lead { max-width: 690px; color: var(--muted); font-size: 18px; }
.section--dark .section-lead { color: #aab5c4; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 12px; padding: 0 24px; border: 1px solid transparent; border-radius: 4px; background: var(--red); color: var(--white); font-size: 14px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; transition: .25s ease; cursor: pointer; }
.button:hover { transform: translateY(-2px); background: var(--red-dark); box-shadow: 0 10px 28px rgba(239,43,56,.25); }
.button--ghost { border-color: rgba(255,255,255,.45); background: transparent; }
.button--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.09); }
.button--dark { background: var(--ink); }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--red); font-weight: 800; }
.text-link::after { content: "\2192"; transition: transform .2s ease; }
.text-link:hover::after { transform: translateX(5px); }

.skip-link { position: fixed; z-index: 9999; top: 10px; left: 10px; padding: 10px 16px; transform: translateY(-160%); background: var(--white); color: var(--ink); }
.skip-link:focus { transform: none; }
.site-topbar { background: #050a12; color: #b8c1cd; font-size: 12px; letter-spacing: .04em; }
.site-topbar__inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-topbar__inner span:last-child { color: var(--white); }
.site-header { position: sticky; z-index: 1000; top: 0; border-bottom: 1px solid rgba(8,16,29,.08); background: rgba(255,255,255,.96); backdrop-filter: blur(16px); }
.site-header__inner { min-height: 78px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; min-width: 190px; align-items: center; gap: 11px; }
.brand__mark { display: grid; width: 48px; height: 38px; place-items: center; transform: skew(-11deg); background: var(--red); color: var(--white); font-size: 17px; font-weight: 950; }
.brand__words { display: flex; flex-direction: column; line-height: 1; }
.brand__words strong { font-size: 18px; letter-spacing: .11em; }
.brand__words small { margin-top: 6px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .17em; }
.custom-logo-link img { max-width: 180px; max-height: 54px; object-fit: contain; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 38px); margin: 0; padding: 0; list-style: none; }
.main-nav a { position: relative; display: block; padding: 28px 0; font-size: 14px; font-weight: 750; }
.main-nav a::after { position: absolute; right: 0; bottom: 20px; left: 0; height: 2px; content: ""; transform: scaleX(0); background: var(--red); transition: transform .2s ease; }
.main-nav a:hover::after, .main-nav .current-menu-item > a::after, .main-nav .current_page_item > a::after { transform: scaleX(1); }
.header-cta { white-space: nowrap; }
.nav-toggle { display: none; width: 46px; height: 46px; margin-left: auto; border: 0; background: transparent; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; margin: 6px auto; background: var(--ink); transition: .2s; }

.hero { position: relative; min-height: 720px; display: grid; align-items: center; overflow: hidden; color: var(--white); background: #07111c url("assets/images/hero-african-city-v3.jpg") center/cover no-repeat; }
.hero::before { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgba(3,10,18,.95) 0%, rgba(3,10,18,.78) 37%, rgba(3,10,18,.18) 68%, rgba(3,10,18,.06) 100%); }
.hero::after { position: absolute; right: -120px; bottom: -220px; width: 580px; height: 580px; border: 1px solid rgba(239,43,56,.35); border-radius: 50%; content: ""; box-shadow: 0 0 0 90px rgba(239,43,56,.035), 0 0 0 180px rgba(239,43,56,.02); }
.hero__inner { position: relative; z-index: 1; padding: 100px 0; }
.hero__content { max-width: 650px; }
.hero__kicker { margin-bottom: 24px; color: #ff5964; font-size: 13px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { max-width: 620px; margin-bottom: 24px; font-size: clamp(50px, 6.5vw, 88px); }
.hero h1 span { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.72); }
.hero__copy { max-width: 590px; color: #c6ced8; font-size: 18px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 46px; margin-top: 70px; }
.hero__fact strong { display: block; margin-bottom: 3px; font-size: 28px; }
.hero__fact span { color: #9ca8b7; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 52px; background: var(--line); border: 1px solid var(--line); }
.category-card { position: relative; min-height: 440px; display: flex; overflow: hidden; flex-direction: column; background: var(--white); transition: .3s ease; }
.category-card:hover { z-index: 2; transform: translateY(-8px); box-shadow: var(--shadow); }
.category-card__visual { position: relative; display: grid; height: 230px; overflow: hidden; place-items: center; background: #eef0f1; }
.category-card__visual img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: contain; object-position: center; transition: transform .35s ease; }
.category-card:hover .category-card__visual img { transform: scale(1.035); }
.category-card__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 28px 32px 34px; }
.category-card__num { color: #aeb5be; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.category-card h3 { margin: 18px 0 14px; font-size: 26px; }
.category-card p { max-width: 250px; color: var(--muted); font-size: 14px; }
.category-card .text-link { margin-top: auto; }

.split { display: grid; grid-template-columns: 1.04fr .96fr; align-items: stretch; }
.split__image { min-height: 600px; background: var(--ink) url("assets/images/scooter-factory.jpg") center/cover no-repeat; }
.split__content { display: flex; flex-direction: column; justify-content: center; padding: clamp(55px, 7vw, 110px); background: var(--ink); color: var(--white); }
.split__content p { color: #aab5c4; }
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin: 34px 0; }
.feature-item { padding-top: 18px; border-top: 1px solid rgba(255,255,255,.15); }
.feature-item strong { display: block; margin-bottom: 6px; font-size: 17px; }
.feature-item span { color: #97a4b4; font-size: 13px; }

.supply-section { background: var(--white); }
.supply-heading { display: grid; grid-template-columns: 1.3fr .7fr; align-items: end; gap: 56px; margin-bottom: 52px; }
.supply-heading .section-title { margin-bottom: 0; }
.supply-heading__intro { max-width: 440px; margin: 0 0 8px; color: var(--muted); font-size: 18px; }
.supply-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.supply-card { min-height: 350px; padding: 38px; border-top: 3px solid var(--red); background: #f2f3f0; }
.supply-card__meta { display: flex; justify-content: space-between; gap: 18px; color: #59626c; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.supply-card__meta span:last-child { text-align: right; }
.supply-card h3 { margin: 50px 0 24px; font-size: clamp(54px, 5vw, 72px); }
.supply-card h4 { margin-bottom: 18px; font-size: 19px; }
.supply-card p { max-width: 330px; margin-bottom: 0; color: var(--muted); font-size: 15px; }
.supply-note { margin: 24px 0 0; color: var(--muted); font-size: 13px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.stat { padding: 44px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat strong { display: block; color: var(--red); font-size: clamp(36px, 4vw, 54px); line-height: 1; }
.stat span { display: block; margin-top: 10px; color: var(--muted); font-size: 13px; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 48px; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--white); transition: .3s ease; }
.product-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.product-card__visual { position: relative; height: 240px; overflow: hidden; display: grid; place-items: center; background: #eceeef url("assets/images/scooter-product.jpg") center/cover no-repeat; }
.product-card__visual::before { display: none; }
.product-card__visual::after { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, transparent 65%, rgba(8,16,29,.08)); pointer-events: none; }
.product-card__visual img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: contain; object-position: center; background: #eceeef; }
.product-card__code { position: absolute; z-index: 2; top: 18px; left: 18px; padding: 6px 10px; background: var(--red); color: var(--white); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.product-card__body { padding: 26px; }
.product-card__type { margin-bottom: 8px; color: var(--red); font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.product-card h3 { font-size: 23px; }
.product-card__specs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.product-card__specs span { padding: 5px 9px; border-radius: 3px; background: var(--paper); color: #526071; font-size: 11px; font-weight: 700; }
.product-card__body p { color: var(--muted); font-size: 14px; }

.news-grid { display: grid; grid-template-columns: 1.1fr .9fr .9fr; gap: 26px; margin-top: 48px; }
.news-card { border-top: 4px solid var(--ink); padding: 28px 0; }
.news-card:first-child { padding: 34px; border: 0; background: var(--ink); color: var(--white); }
.news-card time { color: var(--red); font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.news-card h3 { margin-top: 16px; font-size: 24px; }
.news-card p { color: var(--muted); font-size: 14px; }
.news-card:first-child p { color: #aab5c4; }

.cta-band { position: relative; overflow: hidden; padding: 78px 0; background: var(--red); color: var(--white); }
.cta-band::after { position: absolute; right: -60px; top: -180px; width: 500px; height: 500px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; content: ""; box-shadow: 0 0 0 80px rgba(255,255,255,.05); }
.cta-band__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-band h2 { max-width: 700px; margin: 0; font-size: clamp(34px, 4.5vw, 58px); }

.page-hero { position: relative; overflow: hidden; padding: 120px 0 90px; background: var(--ink); color: var(--white); }
.page-hero::after { position: absolute; right: -6%; bottom: -55%; width: 46vw; height: 46vw; border: 1px solid rgba(239,43,56,.35); border-radius: 50%; content: ""; box-shadow: 0 0 0 90px rgba(239,43,56,.035); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 900px; font-size: clamp(46px, 6vw, 82px); }
.page-hero p { max-width: 680px; color: #aeb9c8; font-size: 18px; }
.breadcrumbs { margin-bottom: 30px; color: #8f9dad; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.breadcrumbs a { color: var(--white); }

.content-grid { display: grid; grid-template-columns: 1fr 360px; gap: 70px; }
.prose { font-size: 17px; }
.prose h2 { margin-top: 1.5em; font-size: 38px; }
.prose h3 { margin-top: 1.5em; font-size: 28px; }
.prose ul { padding-left: 22px; }
.side-panel { align-self: start; padding: 34px; background: var(--paper); }
.side-panel h3 { font-size: 23px; }
.side-panel ul { margin: 0; padding: 0; list-style: none; }
.side-panel li { padding: 13px 0; border-bottom: 1px solid var(--line); }
.side-panel li:last-child { border: 0; }

.about-visual { min-height: 560px; background: url("assets/images/scooter-factory.jpg") center/cover no-repeat; }
.values-grid, .service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 48px; }
.value-card, .service-card { padding: 38px; border: 1px solid var(--line); background: var(--white); }
.value-card__icon, .service-card__icon { display: grid; width: 52px; height: 52px; margin-bottom: 28px; place-items: center; background: var(--ink); color: var(--white); font-size: 18px; font-weight: 900; }
.value-card h3, .service-card h3 { font-size: 24px; }
.value-card p, .service-card p { color: var(--muted); font-size: 14px; }
.process { counter-reset: steps; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 48px; background: rgba(255,255,255,.14); }
.process__step { position: relative; min-height: 250px; padding: 34px; background: var(--ink); }
.process__step::before { counter-increment: steps; content: "0" counter(steps); color: var(--red); font-size: 13px; font-weight: 900; letter-spacing: .1em; }
.process__step h3 { margin-top: 55px; font-size: 22px; }
.process__step p { color: #99a6b6; font-size: 13px; }

.contact-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: 70px; }
.contact-list { margin: 34px 0 0; padding: 0; list-style: none; }
.contact-list li { padding: 20px 0; border-top: 1px solid var(--line); }
.contact-list span { display: block; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.contact-list strong { display: block; margin-top: 5px; font-size: 18px; }
.contact-form { padding: clamp(30px, 5vw, 56px); background: var(--paper); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field--full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); border-radius: 0; outline: none; background: var(--white); padding: 14px 16px; transition: border .2s; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); }
.field textarea { min-height: 150px; resize: vertical; }
.form-notice { margin-bottom: 24px; padding: 14px 18px; border-left: 4px solid #1e9b5a; background: #eaf8f0; }
.form-notice--error { border-color: var(--red); background: #fff0f1; }
.hp-field { position: absolute !important; left: -9999px !important; }

.single-product__top { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.single-product__visual { min-height: 520px; }
.product-summary-title { font-size: 46px; }
.product-details-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 80px; align-items: start; }
.product-details-title { font-size: clamp(32px, 3.4vw, 48px); }
.spec-table--details { margin-top: 28px; }
.spec-table { margin: 34px 0; border-top: 1px solid var(--line); }
.spec-row { display: grid; grid-template-columns: 160px 1fr; padding: 15px 0; border-bottom: 1px solid var(--line); }
.spec-row span { color: var(--muted); font-size: 13px; }
.spec-row strong { font-size: 14px; }

.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; gap: 8px; }
.pagination .page-numbers { display: grid; min-width: 42px; height: 42px; place-items: center; background: var(--paper); }
.pagination .current { background: var(--red); color: var(--white); }
.empty-state { padding: 70px; text-align: center; background: var(--paper); }

.site-footer { padding: 80px 0 24px; background: #050a12; color: #aeb8c5; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr 1fr; gap: 50px; }
.footer-brand p { max-width: 370px; margin-top: 24px; color: #7f8b9a; font-size: 14px; }
.footer-title { margin-bottom: 22px; color: var(--white); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 65px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); color: #677383; font-size: 12px; }

@media (max-width: 1050px) {
  .header-cta { display: none; }
  .category-grid, .product-grid, .values-grid, .service-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .news-card:first-child { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .supply-card { padding: 30px; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .site-topbar { display: none; }
  .site-header__inner { min-height: 70px; }
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; height: calc(100vh - 70px); overflow: auto; margin: 0; padding: 28px 24px; background: var(--white); box-shadow: 0 24px 42px rgba(8,16,29,.14); }
  .nav-open .main-nav { display: block; }
  .main-nav ul { align-items: stretch; flex-direction: column; gap: 0; }
  .main-nav a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .main-nav a::after { display: none; }
  .hero { min-height: 680px; background-position: 58% center; }
  .hero::before { background: linear-gradient(90deg, rgba(3,8,14,.97), rgba(3,8,14,.6)); }
  .hero__facts { gap: 25px; }
  .split, .contact-layout, .single-product__top, .content-grid, .product-details-grid { grid-template-columns: 1fr; }
  .split__image { min-height: 460px; }
  .supply-heading { grid-template-columns: 1fr; gap: 22px; }
  .supply-heading__intro { max-width: 620px; }
  .supply-grid { grid-template-columns: 1fr; }
  .supply-card { min-height: 0; }
  .content-grid { gap: 40px; }
  .cta-band__inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
  .container, .narrow { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 72px 0; }
  .brand { min-width: 0; }
  .brand__words small { display: none; }
  .hero { min-height: 700px; background-position: 63% center; }
  .hero__inner { padding: 70px 0; }
  .hero h1 { font-size: 48px; }
  .hero__content { max-width: 100%; }
  .hero__copy { font-size: 16px; }
  .hero__facts { margin-top: 46px; }
  .hero__fact strong { font-size: 23px; }
  .category-grid, .product-grid, .values-grid, .service-grid, .news-grid, .stats, .process, .footer-grid { grid-template-columns: 1fr; }
  .news-card:first-child, .footer-brand { grid-column: auto; }
  .split__image { min-height: 340px; }
  .split__content { padding: 55px 28px; }
  .feature-list { grid-template-columns: 1fr; }
  .supply-heading { margin-bottom: 38px; }
  .supply-card { padding: 28px 24px; }
  .supply-card h3 { margin-top: 34px; font-size: 50px; }
  .page-hero { padding: 82px 0 62px; }
  .form-grid { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .spec-row { grid-template-columns: 110px 1fr; }
  .product-summary-title { font-size: 36px; }
  .footer-bottom { flex-direction: column; }
}
