/* XINLONG FOOTWEAR (Fujian Xinlong Sporting Goods Co., Ltd.) — Core Responsive Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body, 'Inter', system-ui, sans-serif);
  color: var(--xl-ink, #0F172A);
  background: var(--xl-bg, #F8FAFC);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-heading, 'Outfit', system-ui, sans-serif);
  font-weight: 700;
  line-height: 1.25;
  color: var(--xl-ink, #0F172A);
}
a { color: inherit; text-decoration: none; transition: 0.2s ease; }
img { max-width: 100%; height: auto; display: block; }

.container { width: 92%; max-width: 1220px; margin: 0 auto; padding: 0 12px; }
.section { padding: 72px 0; }
.section-bg { background: #FFFFFF; }
.text-center { text-align: center; }
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 992px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
}

.skip-link {
  position: absolute; left: -9999px; top: 0; background: #B91C1C; color: #fff; padding: 10px 16px; z-index: 9999;
}
.skip-link:focus { left: 10px; top: 10px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 8px; font-weight: 600; font-size: 0.94rem;
  border: 1px solid transparent; cursor: pointer; transition: 0.2s ease;
}
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-primary { background: #B91C1C; color: #FFFFFF; }
.btn-primary:hover { background: #991B1B; }
.btn-secondary { background: #FFFFFF; color: #0F172A; border-color: #CBD5E1; }
.btn-secondary:hover { border-color: #B91C1C; color: #B91C1C; }
.btn-outline-light { background: transparent; color: #FFFFFF; border-color: rgba(255,255,255,0.45); }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1000; background: #FFFFFF; box-shadow: 0 2px 12px rgba(15,23,42,0.06); }
.header-top-bar { background: #0F172A; color: #F8FAFC; padding: 10px 0; font-size: 0.83rem; }
.header-top-container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.header-top-left, .header-top-right { display: flex; align-items: center; gap: 12px; }
.top-contact-link { display: inline-flex; align-items: center; gap: 6px; color: #E2E8F0; }
.top-contact-link:hover { color: #FCA5A5; }
.top-sep { color: #475569; }
.header-cta-quote {
  background: #B91C1C; color: #FFFFFF; padding: 7px 14px; border-radius: 6px; font-weight: 600; font-size: 0.84rem;
}
.header-cta-quote:hover { background: #991B1B; }

/* Compass Navigation */
.compass-nav-container { position: relative; }
.compass-trigger {
  display: inline-flex; align-items: center; gap: 8px;
  background: #1E293B; color: #F8FAFC; border: 1px solid #334155;
  padding: 6px 12px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 0.8rem;
}
.compass-dial { position: relative; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #FCA5A5; display: flex; align-items: center; justify-content: center; }
.compass-needle { width: 2px; height: 10px; background: #FCA5A5; transform: rotate(35deg); }
.hamburger-icon { display: none; flex-direction: column; gap: 4px; width: 20px; }
.hamburger-icon span { display: block; height: 2px; background: #F8FAFC; border-radius: 2px; }

.compass-backdrop { display: none; position: fixed; inset: 0; background: rgba(15,23,42,0.45); z-index: 1090; }
.compass-backdrop.active { display: block; }
.compass-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 10px); width: min(640px, 92vw);
  background: #FFFFFF; color: #0F172A; border-radius: 14px; padding: 18px;
  box-shadow: 0 18px 42px rgba(15,23,42,0.22); border: 1px solid #E2E8F0; z-index: 1100;
  grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
}
.compass-nav-container.active .compass-menu { display: grid; }
.compass-menu-header {
  grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid #E2E8F0; font-weight: 700;
}
.compass-menu-close { background: none; border: none; font-size: 1.1rem; cursor: pointer; color: #475569; }
.compass-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px;
  font-size: 0.86rem; font-weight: 600; color: #0F172A; background: #F8FAFC;
}
.compass-item:hover { background: #FEF2F2; color: #B91C1C; }

/* Main Nav Bar */
.header-nav-bar { background: #FFFFFF; border-bottom: 1px solid #E2E8F0; }
.centered-nav-list { list-style: none; display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav-item { position: relative; }
.desktop-nav-link {
  display: inline-flex; align-items: center; gap: 4px; padding: 13px 14px;
  font-size: 0.92rem; font-weight: 600; color: #334155;
}
.desktop-nav-link:hover, .desktop-nav-link.active { color: #B91C1C; }
.nav-dropdown-menu {
  display: none; position: absolute; left: 0; top: 100%; min-width: 560px; background: #FFFFFF;
  border: 1px solid #E2E8F0; border-radius: 12px; padding: 16px; box-shadow: 0 16px 36px rgba(15,23,42,0.14); z-index: 1050;
}
.nav-dropdown-menu.dropdown-narrow { min-width: 320px; }
.nav-item.has-dropdown:hover .nav-dropdown-menu { display: block; }
.dropdown-header {
  display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 0.86rem;
  padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid #E2E8F0;
}
.dropdown-header .badge { background: #FEF2F2; color: #B91C1C; padding: 2px 8px; border-radius: 12px; font-size: 0.75rem; }
.dropdown-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.dropdown-grid.single-col { grid-template-columns: 1fr; }
.dropdown-card {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px; border-radius: 8px; background: #F8FAFC;
}
.dropdown-card:hover { background: #FEF2F2; }
.dropdown-title { display: block; font-weight: 700; font-size: 0.86rem; color: #0F172A; }
.dropdown-desc { display: block; font-size: 0.78rem; color: #475569; margin-top: 2px; }
.dropdown-footer { margin-top: 12px; padding-top: 10px; border-top: 1px solid #E2E8F0; text-align: right; font-size: 0.84rem; font-weight: 700; color: #B91C1C; }

.pc-only { display: inline-flex; }
.mobile-only { display: none; }
@media (max-width: 960px) {
  .pc-only { display: none !important; }
  .mobile-only { display: inline-flex !important; }
  .hamburger-icon { display: flex; }
  .header-nav-bar { display: none; }
  .compass-menu { grid-template-columns: 1fr; }
}

/* Hero Banner */
.hero-banner {
  background: #0F172A; color: #FFFFFF; padding: 72px 0; position: relative; overflow: hidden;
  border-bottom: 4px solid #B91C1C;
}
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.95fr; gap: 36px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-badge {
  display: inline-block; background: rgba(252,165,165,0.16); color: #FCA5A5;
  border: 1px solid rgba(252,165,165,0.35); padding: 5px 14px; border-radius: 20px;
  font-size: 0.82rem; font-weight: 700; margin-bottom: 16px;
}
.hero-banner h1 { color: #FFFFFF; font-size: var(--text-2xl, 2.5rem); margin-bottom: 16px; }
.hero-lead { color: #CBD5E1; font-size: 1.05rem; margin-bottom: 24px; line-height: 1.7; }
.hero-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.hero-metric { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: 10px; padding: 14px; }
.hero-metric strong { display: block; font-size: 1.28rem; color: #FCA5A5; font-family: var(--font-heading); }
.hero-metric span { font-size: 0.8rem; color: #CBD5E1; }

/* Page Header Banner */
.page-hero { background: #0F172A; color: #FFFFFF; padding: 52px 0; border-bottom: 3px solid #B91C1C; }
.page-hero h1 { color: #FFFFFF; font-size: 2.2rem; margin-bottom: 10px; }
.page-hero p { color: #CBD5E1; max-width: 760px; font-size: 1rem; }

/* Tabs & Product Cards */
.tab-btn {
  display: inline-block; padding: 9px 16px; border-radius: 24px; border: 1px solid #CBD5E1;
  background: #FFFFFF; color: #334155; font-size: 0.86rem; font-weight: 600;
}
.tab-btn:hover, .tab-btn.active { background: #B91C1C; color: #FFFFFF; border-color: #B91C1C; }

.product-card {
  background: #FFFFFF; border: 1px solid #E2E8F0; border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(15,23,42,0.08); }
.product-tag {
  position: absolute; top: 10px; left: 10px; background: rgba(15,23,42,0.88); color: #FCA5A5;
  padding: 4px 10px; border-radius: 6px; font-size: 0.74rem; font-weight: 700; z-index: 2;
}
.product-info { padding: 18px; display: flex; flex-direction: column; flex: 1; justify-content: space-between; }
.product-features { list-style: none; color: #334155; }
.product-features li { margin-bottom: 4px; }

/* Forms & Workbench */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.86rem; font-weight: 600; margin-bottom: 6px; color: #0F172A; }
.form-control {
  width: 100%; padding: 10px 12px; border: 1px solid #CBD5E1; border-radius: 8px;
  font-size: 0.94rem; font-family: inherit; background: #FFFFFF; color: #0F172A;
}
.form-control:focus { outline: 2px solid #B91C1C; border-color: #B91C1C; }

/* Footer */
footer { background: #0F172A; color: #CBD5E1; padding: 56px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; margin-bottom: 36px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .footer-top { grid-template-columns: 1fr; } }
.footer-col h3 { color: #FFFFFF; font-size: 1.02rem; margin-bottom: 14px; }
.footer-desc { font-size: 0.86rem; line-height: 1.65; color: #CBD5E1; }
.footer-links, .footer-contact-list { list-style: none; font-size: 0.86rem; }
.footer-links li, .footer-contact-list li { margin-bottom: 8px; }
.footer-links a:hover, .footer-contact-list a:hover { color: #FCA5A5; }
.social-link {
  width: 36px; height: 36px; border-radius: 8px; background: #1E293B; display: inline-flex;
  align-items: center; justify-content: center;
}
.footer-bottom {
  border-top: 1px solid #1E293B; padding-top: 20px; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; font-size: 0.82rem; color: #94A3B8;
}

/* Floating Export Desk */
.b2b-whatsapp-floating-widget { position: fixed; right: 20px; bottom: 20px; z-index: 1200; }
.whatsapp-trigger-pill {
  display: inline-flex; align-items: center; gap: 10px; background: #B91C1C; color: #FFFFFF;
  border: none; padding: 10px 16px; border-radius: 40px; cursor: pointer; box-shadow: 0 8px 24px rgba(185,28,28,0.32);
}
.wa-trigger-title { display: block; font-weight: 700; font-size: 0.86rem; text-align: left; }
.wa-trigger-status { display: flex; align-items: center; gap: 5px; font-size: 0.74rem; color: #CCFBF1; }
.green-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; display: inline-block; }
.whatsapp-panel-card {
  display: none; position: absolute; right: 0; bottom: 60px; width: 320px; background: #FFFFFF;
  border: 1px solid #E2E8F0; border-radius: 14px; overflow: hidden; box-shadow: 0 18px 42px rgba(15,23,42,0.22);
}
.whatsapp-panel-card.active { display: block; }
.wa-panel-header { background: #0F172A; color: #FFFFFF; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; }
.wa-header-heading { font-weight: 700; font-size: 0.95rem; }
.wa-header-sub { font-size: 0.78rem; color: #FCA5A5; }
.wa-close-btn { background: none; border: none; color: #FFFFFF; cursor: pointer; font-size: 1rem; }
.wa-panel-body { padding: 16px; color: #0F172A; }
.wa-panel-intro { font-size: 0.84rem; color: #475569; margin-bottom: 12px; }
.wa-rep-card { display: flex; gap: 12px; padding: 12px; background: #F8FAFC; border-radius: 10px; border: 1px solid #E2E8F0; }
.wa-rep-avatar { width: 38px; height: 38px; border-radius: 50%; background: #B91C1C; color: #FFFFFF; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wa-rep-tag { font-size: 0.72rem; background: #CCFBF1; color: #0F766E; padding: 2px 6px; border-radius: 6px; margin-left: 6px; font-weight: 700; }
.wa-rep-role, .wa-rep-phone-num { font-size: 0.8rem; color: #475569; margin-top: 3px; }
.wa-chat-action-btn { display: inline-block; margin-top: 8px; font-size: 0.82rem; font-weight: 700; color: #B91C1C; }
.wa-panel-footer { padding: 10px 16px; background: #F8FAFC; border-top: 1px solid #E2E8F0; font-size: 0.8rem; color: #475569; }
