/* ================================================================
   HAPPITOO B2B International Trade Website - Main Stylesheet
   Shenzhen Happitoo Textile Co., Ltd.
   ================================================================ */

/* --- CSS Variables --- */
:root {
  --color-primary: #0f2b46;
  --color-primary-light: #1a3f63;
  --color-accent: #c8922b;
  --color-accent-light: #e8b84b;
  --color-accent-dark: #9e6e1f;
  --color-white: #ffffff;
  --color-bg: #f7f8fa;
  --color-bg-alt: #eef0f4;
  --color-bg-dark: #0a1e33;
  --color-text: #1a1a2e;
  --color-text-light: #5a6070;
  --color-text-muted: #8e94a0;
  --color-border: #e1e4ea;
  --color-success: #0e8c4a;
  --color-error: #d93025;
  --color-whatsapp: #25d366;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --transition: 0.25s ease;
  --max-width: 1200px;
  --section-pad: 80px 0;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-pad); }
.section-sm { padding: 56px 0; }
.bg-light { background: var(--color-bg); }
.bg-dark { background: var(--color-bg-dark); color: var(--color-white); }

/* --- Typography --- */
h1 { font-size: 2.8rem; line-height: 1.2; font-weight: 700; }
h2 { font-size: 2.2rem; line-height: 1.3; font-weight: 700; }
h3 { font-size: 1.3rem; line-height: 1.4; font-weight: 600; }
h4 { font-size: 1.1rem; line-height: 1.4; font-weight: 600; }

.section-header {
  text-align: center;
  margin-bottom: 52px;
}
.section-header .subtitle {
  color: var(--color-text-light);
  font-size: 1.05rem;
  margin-top: 10px;
}
.section-header .accent-line {
  width: 48px; height: 3px; background: var(--color-accent);
  margin: 16px auto 0; border-radius: 2px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 15px; cursor: pointer;
  transition: all var(--transition); border: 2px solid transparent;
}
.btn-primary {
  background: var(--color-accent); color: var(--color-white);
  border-color: var(--color-accent);
}
.btn-primary:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); }
.btn-outline {
  color: var(--color-white); border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--color-white); }
.btn-outline-dark {
  color: var(--color-primary); border-color: var(--color-primary);
}
.btn-outline-dark:hover { background: var(--color-primary); color: var(--color-white); }
.btn-whatsapp {
  background: var(--color-whatsapp); color: var(--color-white);
  border-color: var(--color-whatsapp);
}
.btn-whatsapp:hover { filter: brightness(1.1); }
.btn-lg { padding: 14px 36px; font-size: 16px; }
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* ================================================================
   NAVIGATION
   ================================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(15, 43, 70, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background var(--transition);
}
.navbar.scrolled { background: rgba(10, 30, 51, 0.98); }
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.2rem; font-weight: 700; color: var(--color-white);
}
.nav-logo .logo-img { height: 36px; width: auto; }
.nav-links { display: flex; gap: 8px; }
.nav-links a {
  color: rgba(255,255,255,0.85); padding: 8px 16px;
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 500;
  transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--color-accent-light); background: rgba(255,255,255,0.06); }

.nav-cta .btn { padding: 8px 20px; font-size: 13px; }

.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.menu-toggle span {
  width: 24px; height: 2px; background: var(--color-white);
  border-radius: 2px; transition: var(--transition);
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, #0d2640 40%, #1a3a5c 100%);
  overflow: hidden;
  padding-top: 68px;
}
.hero::before {
  content: '';
  position: absolute; top: 0; right: 0; width: 50%; height: 100%;
  background: radial-gradient(ellipse at center, rgba(200, 146, 43, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero .container {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center; position: relative; z-index: 1;
}
.hero-content { color: var(--color-white); }
.hero-badge {
  display: inline-block; padding: 6px 16px;
  background: rgba(200, 146, 43, 0.15); border: 1px solid rgba(200, 146, 43, 0.3);
  border-radius: 20px; font-size: 13px; font-weight: 500;
  color: var(--color-accent-light); margin-bottom: 24px;
}
.hero-content h1 {
  font-size: 3.2rem; margin-bottom: 20px; line-height: 1.15;
}
.hero-content h1 .highlight { color: var(--color-accent-light); }
.hero-content .hero-desc {
  font-size: 1.1rem; color: rgba(255,255,255,0.75);
  margin-bottom: 32px; max-width: 480px; line-height: 1.7;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg); padding: 40px 32px; text-align: center;
  backdrop-filter: blur(8px); max-width: 340px;
}
.hero-card .trust-badges { display: flex; gap: 16px; justify-content: center; margin-top: 24px; }
.hero-card .trust-badges span {
  background: rgba(200, 146, 43, 0.15); color: var(--color-accent-light);
  padding: 8px 16px; border-radius: 20px; font-size: 13px; font-weight: 600;
}
.hero-stats { display: flex; gap: 28px; margin-top: 28px; }
.hero-stats .hs-item { text-align: center; }
.hero-stats .hs-num { font-size: 2rem; font-weight: 700; color: var(--color-accent-light); }
.hero-stats .hs-label { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 4px; }

/* ================================================================
   TRUST BAR
   ================================================================ */
.trust-bar { background: var(--color-bg); padding: 28px 0; }
.trust-bar .container { display: flex; justify-content: center; flex-wrap: wrap; gap: 48px; }
.trust-item { display: flex; align-items: center; gap: 10px; }
.trust-icon {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.trust-icon.gold { background: rgba(200,146,43,0.12); color: var(--color-accent); }
.trust-item div { line-height: 1.4; }
.trust-item .t-label { font-size: 13px; color: var(--color-text-muted); }
.trust-item .t-value { font-size: 15px; font-weight: 600; color: var(--color-text); }

/* ================================================================
   PRODUCT CARDS
   ================================================================ */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.product-card {
  background: var(--color-white); border-radius: var(--radius-md);
  overflow: hidden; border: 1px solid var(--color-border);
  transition: all var(--transition);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg); border-color: var(--color-accent);
}
.product-card .prod-img {
  height: 220px; overflow: hidden; background: var(--color-bg);
  display: flex; align-items: center; justify-content: center;
}
.product-card .prod-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .prod-img img { transform: scale(1.05); }
.product-card .prod-body { padding: 20px; }
.product-card .prod-body .prod-cat {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--color-accent); font-weight: 600; margin-bottom: 6px;
}
.product-card .prod-body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.product-card .prod-body p {
  color: var(--color-text-light); font-size: 14px; line-height: 1.6;
  margin-bottom: 16px;
}
.product-card .prod-body .specs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.product-card .prod-body .spec {
  background: var(--color-bg); padding: 4px 10px; border-radius: 4px;
  font-size: 12px; color: var(--color-text-light);
}

/* Product Detail (products page) */
.product-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: start; padding: 48px 0;
  border-bottom: 1px solid var(--color-border);
}
.product-detail:last-child { border-bottom: none; }
.product-detail .prod-visual {
  background: var(--color-bg); border-radius: var(--radius-md);
  min-height: 320px; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.product-detail .prod-visual img {
  width: 100%; height: 100%; object-fit: cover;
}
.product-detail .prod-info h3 { font-size: 1.6rem; margin-bottom: 12px; }
.product-detail .prod-info .desc {
  color: var(--color-text-light); margin-bottom: 20px; line-height: 1.8;
}
.product-detail .specs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.product-detail .specs .spec-tag {
  background: var(--color-bg); padding: 6px 14px;
  border-radius: 20px; font-size: 13px; color: var(--color-text-light);
}

/* ================================================================
   FEATURE CARDS
   ================================================================ */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.feature-card {
  background: var(--color-white); border-radius: var(--radius-md);
  padding: 32px 28px; border: 1px solid var(--color-border);
  transition: all var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow-md); }
.feature-card .feat-icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 16px;
}
.feat-icon.navy { background: rgba(15,43,70,0.08); color: var(--color-primary); }
.feat-icon.gold { background: rgba(200,146,43,0.12); color: var(--color-accent); }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--color-text-light); font-size: 14px; line-height: 1.7; }

/* ================================================================
   CATEGORY CARDS
   ================================================================ */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cat-card {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  height: 260px; cursor: pointer;
}
.cat-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.cat-card:hover img { transform: scale(1.08); }
.cat-card .cat-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,30,51,0.85) 0%, rgba(10,30,51,0.2) 60%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px;
}
.cat-card .cat-overlay h3 {
  color: var(--color-white); font-size: 1.3rem; margin-bottom: 6px;
}
.cat-card .cat-overlay p {
  color: rgba(255,255,255,0.7); font-size: 14px;
}
.cat-card .cat-overlay .cat-link {
  color: var(--color-accent-light); font-weight: 600; font-size: 14px;
  margin-top: 12px; display: inline-flex; align-items: center; gap: 6px;
}

/* ================================================================
   FACTORY SHOWCASE
   ================================================================ */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item {
  border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

/* ================================================================
   STATS / NUMBERS
   ================================================================ */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  text-align: center;
}
.stat-item .stat-num {
  font-size: 2.8rem; font-weight: 800; color: var(--color-accent);
  line-height: 1.1;
}
.stat-item .stat-label {
  font-size: 14px; color: var(--color-text-light); margin-top: 8px;
}

/* ================================================================
   CTA SECTION
   ================================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: var(--color-white); text-align: center; padding: 72px 0;
}
.cta-section h2 { font-size: 2.2rem; margin-bottom: 14px; }
.cta-section p {
  color: rgba(255,255,255,0.7); max-width: 520px; margin: 0 auto 28px;
  font-size: 1.05rem;
}

/* ================================================================
   PAGE HEADER
   ================================================================ */
.page-header {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: var(--color-white); padding: 100px 0 56px; text-align: center;
}
.page-header h1 { margin-bottom: 10px; }
.page-header p { color: rgba(255,255,255,0.7); font-size: 1.05rem; }

/* ================================================================
   CONTACT PAGE
   ================================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-info .ci-item {
  display: flex; gap: 14px; align-items: flex-start;
}
.contact-info .ci-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
  background: rgba(15,43,70,0.06); color: var(--color-primary);
}
.contact-info .ci-text h4 { font-size: 15px; margin-bottom: 2px; }
.contact-info .ci-text p { color: var(--color-text-light); font-size: 14px; line-height: 1.6; }

.contact-form {
  background: var(--color-white); padding: 36px; border-radius: var(--radius-md);
  border: 1px solid var(--color-border); box-shadow: var(--shadow-sm);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-weight: 600; font-size: 14px;
  margin-bottom: 6px; color: var(--color-text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); font-size: 15px; font-family: inherit;
  color: var(--color-text); background: var(--color-bg);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--color-accent); background: var(--color-white);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ================================================================
   ABOUT PAGE
   ================================================================ */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.about-image {
  border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/3;
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value-card {
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 28px 20px; text-align: center;
  transition: all var(--transition);
}
.value-card:hover { box-shadow: var(--shadow-md); }
.value-card .v-icon {
  width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.value-card h4 { font-size: 15px; margin-bottom: 6px; }
.value-card p { font-size: 13px; color: var(--color-text-light); }

/* ================================================================
   SERVICES PAGE
   ================================================================ */
.service-section { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 56px 0; border-bottom: 1px solid var(--color-border); }
.service-section:last-child { border-bottom: none; }
.service-visual {
  border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/3;
  background: var(--color-bg);
}
.service-visual img { width: 100%; height: 100%; object-fit: cover; }
.service-content h2 { font-size: 1.6rem; margin-bottom: 14px; }
.service-content p { color: var(--color-text-light); margin-bottom: 20px; line-height: 1.8; }
.service-features { display: flex; flex-wrap: wrap; gap: 8px; }
.service-features .sf-tag {
  background: rgba(15,43,70,0.06); padding: 6px 14px; border-radius: 20px;
  font-size: 13px; color: var(--color-primary); font-weight: 500;
}

/* ================================================================
   WHATSAPP FLOAT
   ================================================================ */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--color-whatsapp); color: var(--color-white);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all var(--transition);
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(37,211,102,0.5); }

/* ================================================================
   TABS / FILTERS
   ================================================================ */
.filter-tabs {
  display: flex; justify-content: center; gap: 8px; margin-bottom: 40px;
  flex-wrap: wrap;
}
.filter-tab {
  padding: 10px 22px; border-radius: 24px; border: 1px solid var(--color-border);
  background: var(--color-white); color: var(--color-text-light);
  font-size: 14px; font-weight: 500; cursor: pointer;
  transition: all var(--transition);
}
.filter-tab:hover { border-color: var(--color-accent); color: var(--color-accent); }
.filter-tab.active {
  background: var(--color-primary); color: var(--color-white);
  border-color: var(--color-primary);
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: var(--color-bg-dark); color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }
.footer-col h4 {
  color: var(--color-white); margin-bottom: 16px; font-size: 15px;
}
.footer-col p, .footer-col a {
  font-size: 14px; line-height: 2; display: block;
  color: rgba(255,255,255,0.6); transition: color var(--transition);
}
.footer-col a:hover { color: var(--color-accent-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 48px; padding: 20px 0;
  text-align: center; font-size: 13px; color: rgba(255,255,255,0.4);
}

/* ================================================================
   SCROLL TO TOP
   ================================================================ */
.scroll-top {
  position: fixed; bottom: 96px; right: 28px; z-index: 998;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--color-white); border: 1px solid var(--color-border);
  color: var(--color-text); display: flex; align-items: center;
  justify-content: center; cursor: pointer; font-size: 18px;
  box-shadow: var(--shadow-sm); opacity: 0; visibility: hidden;
  transition: all var(--transition);
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--color-primary); color: var(--color-white); border-color: var(--color-primary); }

/* ================================================================
   SCROLL ANIMATIONS
   ================================================================ */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  .hero .container { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-content h1 { font-size: 2.4rem; }
  .hero-content .hero-desc { max-width: 100%; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--color-bg-dark); flex-direction: column;
    padding: 16px; gap: 4px;
  }
  .nav-links.active { display: flex; }
  .nav-cta { display: none; }
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.6rem; }
  .hero-content h1 { font-size: 2rem; }
  .product-detail { grid-template-columns: 1fr; gap: 24px; }
  .product-detail .prod-visual { min-height: 220px; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-card { height: 200px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat-item .stat-num { font-size: 2.2rem; }
  .about-grid { grid-template-columns: 1fr; }
  .service-section { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-stats { gap: 16px; }
  .hero-stats .hs-num { font-size: 1.5rem; }
  .trust-bar .container { gap: 24px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 20px; }
  .values-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
}
