/* Theme Name: TextilePro B2B
Theme URI: https://www.dreamelix.com
Author: 小A 💰
Author URI: https://www.dreamelix.com
Description: B2B factory showcase theme for functional textile manufacturers. Deep navy + white. Clean, trust-building, conversion-focused.
Version: 1.1.0
License: GNU GPL v2
Text Domain: textilepro
*/

/* ==================== RESET & BASE ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  background: #f8f9fa;
}
a { text-decoration: none; color: #1a3a5c; transition: color .2s; }
a:hover { color: #4a6fa5; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ==================== HEADER ==================== */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky; top: 0; z-index: 1000;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.site-logo {
  font-size: 1.5rem; font-weight: 800; color: #0a2540;
  letter-spacing: -0.5px;
}
.site-logo span { color: #1a3a5c; }
.main-nav ul { display: flex; list-style: none; gap: 32px; }
.main-nav a {
  font-weight: 600; font-size: .95rem; color: #4b5563;
  position: relative;
}
.main-nav a:hover, .main-nav a.current { color: #0a2540; }
.main-nav a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: #0a2540; transition: width .3s;
}
.main-nav a:hover::after, .main-nav a.current::after { width: 100%; }

.header-cta .btn {
  background: #0a2540; color: #fff; padding: 10px 22px;
  border-radius: 6px; font-weight: 700; font-size: .9rem;
  display: inline-block;
}
.header-cta .btn:hover { background: #1a3a5c; color: #fff; }

.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* ==================== HERO ==================== */
.hero {
  background: linear-gradient(135deg, #0a2540 0%, #1a3a5c 100%);
  color: #fff; padding: 100px 0 120px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 600px; height: 600px; background: rgba(255,255,255,.06);
  border-radius: 50%;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; }
.hero-title { font-size: 3rem; line-height: 1.15; font-weight: 800; margin-bottom: 20px; }
.hero-title .highlight { color: #fff; font-weight: 900; border-bottom: 3px solid rgba(255,255,255,.4); }
.hero-desc { font-size: 1.15rem; opacity: .9; margin-bottom: 32px; max-width: 520px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  background: #fff; color: #0a2540; padding: 14px 32px;
  border-radius: 8px; font-weight: 700; font-size: 1rem;
  display: inline-block; border: none; cursor: pointer;
}
.btn-primary:hover { background: rgba(255,255,255,.9); color: #0a2540; }
.btn-outline {
  background: transparent; color: #fff; padding: 14px 32px;
  border-radius: 8px; font-weight: 700; font-size: 1rem;
  display: inline-block; border: 2px solid rgba(255,255,255,.4);
}
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }

.hero-stats { display: flex; gap: 40px; margin-top: 40px; }
.stat-number { font-size: 2.2rem; font-weight: 800; color: #fff; }
.stat-label { font-size: .9rem; opacity: .8; }

.hero-visual {
  background: rgba(255,255,255,.06);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.1);
}
.hero-visual .feature-list { list-style: none; }
.hero-visual .feature-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: 1.05rem;
}
.hero-visual .feature-list li:last-child { border-bottom: 0; }
.hero-visual .icon { font-size: 1.4rem; }

/* ==================== SECTIONS ==================== */
.section { padding: 80px 0; }
.section-title {
  font-size: 2.2rem; font-weight: 800; color: #0a2540;
  text-align: center; margin-bottom: 16px;
}
.section-subtitle {
  text-align: center; color: #6b7280; font-size: 1.1rem;
  max-width: 600px; margin: 0 auto 50px;
}

/* Features Grid */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.feature-card {
  background: #fff; border-radius: 12px; padding: 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06); border: 1px solid #e5e7eb;
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,.08); }
.feature-icon { font-size: 2.5rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.15rem; font-weight: 700; color: #0a2540; margin-bottom: 8px; }
.feature-card p { color: #6b7280; font-size: .95rem; }

/* Products */
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.product-card {
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.06); border: 1px solid #e5e7eb;
  transition: transform .2s, box-shadow .2s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(0,0,0,.1); }
.product-image { height: 220px; background: #f0f4f8; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.product-info { padding: 24px; }
.product-info h3 { font-size: 1.2rem; font-weight: 700; color: #0a2540; margin-bottom: 8px; }
.product-info .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tag {
  background: #f0f4f8; color: #1a3a5c; padding: 4px 10px;
  border-radius: 20px; font-size: .78rem; font-weight: 600;
}
.product-info p { color: #6b7280; font-size: .92rem; margin-bottom: 16px; }
.product-info .btn-sm {
  background: #0a2540; color: #fff; padding: 8px 18px;
  border-radius: 6px; font-weight: 600; font-size: .88rem;
  display: inline-block;
}
.product-info .btn-sm:hover { background: #1a3a5c; color: #fff; }

/* Why Us / Trust */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; text-align: center; }
.trust-item { padding: 24px; }
.trust-item .icon { font-size: 2.2rem; margin-bottom: 12px; }
.trust-item h4 { font-size: 1rem; font-weight: 700; color: #0a2540; margin-bottom: 6px; }
.trust-item p { font-size: .88rem; color: #6b7280; }

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #0a2540 0%, #1a3a5c 100%);
  color: #fff; text-align: center; padding: 80px 0;
}
.cta-section h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 16px; }
.cta-section p { font-size: 1.1rem; opacity: .9; margin-bottom: 32px; }

/* ==================== ABOUT PAGE ==================== */
.about-hero { background: linear-gradient(135deg, #0a2540 0%, #1a3a5c 100%); color: #fff; padding: 80px 0; text-align: center; }
.about-hero h1 { font-size: 2.5rem; font-weight: 800; }
.about-content { max-width: 800px; margin: 0 auto; padding: 60px 20px; }
.about-content h2 { font-size: 1.5rem; color: #0a2540; margin: 40px 0 16px; }
.about-content p { color: #4b5563; margin-bottom: 16px; }
.about-content ul { margin-left: 24px; color: #4b5563; margin-bottom: 16px; }
.about-content li { margin-bottom: 8px; }

/* ==================== CONTACT / INQUIRY ==================== */
.contact-section { padding: 80px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info h2 { font-size: 1.8rem; color: #0a2540; margin-bottom: 16px; }
.contact-info p { color: #6b7280; margin-bottom: 24px; }
.contact-detail { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.contact-detail .icon { font-size: 1.4rem; flex-shrink: 0; }
.contact-detail h4 { font-size: .95rem; font-weight: 700; color: #0a2540; margin-bottom: 2px; }
.contact-detail span { font-size: .9rem; color: #6b7280; }

.inquiry-form { background: #fff; padding: 40px; border-radius: 14px; box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .9rem; font-weight: 600; color: #374151; margin-bottom: 6px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 12px 14px; border: 1px solid #d1d5db;
  border-radius: 8px; font-size: .95rem; font-family: inherit;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none; border-color: #1a3a5c;
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group .hint { font-size: .8rem; color: #9ca3af; margin-top: 4px; }

/* ==================== FOOTER ==================== */
.site-footer {
  background: #0a2540; color: rgba(255,255,255,.7); padding: 60px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo { font-size: 1.4rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: .9rem; line-height: 1.6; opacity: .8; }
.footer-col h4 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,.7); font-size: .9rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .85rem; opacity: .7;
}

/* ==================== PAGE TEMPLATE ==================== */
.page-header {
  background: linear-gradient(135deg, #0a2540 0%, #1a3a5c 100%);
  color: #fff; padding: 70px 0; text-align: center;
}
.page-header h1 { font-size: 2.4rem; font-weight: 800; }
.page-content { padding: 60px 0; }

/* ==================== MOBILE ==================== */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-title { font-size: 2rem; }
  .hero-stats { gap: 24px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid #e5e7eb; padding: 20px; }
  .main-nav.active { display: block; }
  .main-nav ul { flex-direction: column; gap: 16px; }
  .mobile-toggle { display: block; }
  .header-cta { display: none; }
}
