/* ============================================================
   Mansha Knitwear Co., Ltd. — B2B Factory Website
   Style: warm knitwear tones + Middle-East gold accents
   ============================================================ */

:root {
  --ink: #1d2226;
  --ink-soft: #3d444a;
  --paper: #f7f3ea;
  --paper-2: #efe8da;
  --cream: #fdfbf6;
  --camel: #b98a5e;
  --camel-dark: #9a6f47;
  --gold: #c6a15b;
  --gold-light: #e4cf9d;
  --line: #e2d8c6;
  --shadow: 0 12px 32px rgba(29, 34, 38, .10);
  --radius: 14px;
  --font-body: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: Georgia, "Times New Roman", "Songti SC", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.container { width: min(1160px, 92%); margin: 0 auto; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.22; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--camel-dark);
  font-weight: 600;
  margin-bottom: .7rem;
}

.section-title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: .6rem; }
.section-sub { color: var(--ink-soft); max-width: 640px; margin-bottom: 2.2rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .22s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--camel-dark); transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--ink); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--ink);
  color: rgba(255,255,255,.85);
  font-size: .82rem;
  padding: .5rem 0;
}
.topbar .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.topbar a { color: #fff; }
.topbar .sep { margin: 0 .5rem; opacity: .4; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253,251,246,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(135deg, var(--camel), var(--gold));
  display: grid; place-items: center;
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
}
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; letter-spacing: .04em; }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .62rem; letter-spacing: .22em; color: var(--camel-dark); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 1.7rem; }
.nav-links a { font-size: .95rem; font-weight: 500; color: var(--ink-soft); position: relative; padding: .3rem 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--gold); transition: width .25s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { margin-left: .6rem; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 42px; height: 42px; position: relative;
}
.nav-toggle span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--ink); transition: .25s; }
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle.open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(198,161,91,.25), transparent 60%),
    linear-gradient(160deg, #2a3136 0%, #1d2226 55%, #15191c 100%);
  color: var(--cream);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M60 6 L114 60 L60 114 L6 60 Z' fill='none' stroke='%23c6a15b' stroke-opacity='0.08' stroke-width='1.4'/%3E%3Ccircle cx='60' cy='60' r='26' fill='none' stroke='%23c6a15b' stroke-opacity='0.08' stroke-width='1.2'/%3E%3C/svg%3E");
  background-size: 120px 120px;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding: 6.5rem 0 6rem; }

.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); margin-bottom: 1.1rem; }
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero p.lead { font-size: 1.06rem; color: rgba(255,255,255,.78); max-width: 540px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 3rem; max-width: 520px; }
.stat { border-left: 2px solid var(--gold); padding-left: 1rem; }
.stat b { font-family: var(--font-display); font-size: 1.7rem; display: block; color: #fff; }
.stat span { font-size: .82rem; color: rgba(255,255,255,.65); }

.hero-visual { position: relative; }
.hero-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  padding: 1.4rem 1.6rem;
  backdrop-filter: blur(6px);
}
.hero-card img { border-radius: 12px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.hero-badge {
  position: absolute; bottom: -1.4rem; left: -1.4rem;
  background: var(--gold); color: var(--ink);
  border-radius: 14px; padding: .9rem 1.2rem;
  box-shadow: var(--shadow);
  font-weight: 700; font-size: .9rem;
}
.hero-badge small { display: block; font-weight: 400; font-size: .74rem; opacity: .8; }

/* ---------- Trust strip ---------- */
.trust { background: var(--cream); border-bottom: 1px solid var(--line); }
.trust .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; padding: 1.6rem 0; }
.trust-item { display: flex; gap: .8rem; align-items: center; }
.trust-item svg { flex: 0 0 auto; color: var(--camel-dark); }
.trust-item b { display: block; font-size: .93rem; }
.trust-item span { font-size: .8rem; color: var(--ink-soft); }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section.alt { background: var(--cream); }
.section-head { margin-bottom: 2.4rem; }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }

.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card .icon { width: 52px; height: 52px; border-radius: 12px; background: var(--paper-2); display: grid; place-items: center; color: var(--camel-dark); margin-bottom: 1.1rem; }
.card h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.card p { font-size: .92rem; color: var(--ink-soft); }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.6rem; }
.product-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product-card .thumb { position: relative; aspect-ratio: 3/3.6; overflow: hidden; background: var(--paper-2); }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .thumb img { transform: scale(1.05); }
.product-tag {
  position: absolute; top: .8rem; left: .8rem;
  background: var(--gold); color: var(--ink);
  font-size: .68rem; font-weight: 700; letter-spacing: .08em;
  padding: .28rem .6rem; border-radius: 999px; text-transform: uppercase;
}
.product-tag.stock { background: var(--camel); color: #fff; }
.product-info { padding: 1.1rem 1.2rem 1.3rem; }
.product-info h3 { font-size: 1.02rem; margin-bottom: .25rem; }
.product-info .sub { font-size: .8rem; color: var(--camel-dark); margin-bottom: .55rem; }
.product-meta { display: flex; justify-content: space-between; font-size: .78rem; color: var(--ink-soft); }
.product-meta b { color: var(--ink); }

/* ---------- Steps / process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: step; }
.step { position: relative; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.5rem 1.5rem; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 700;
  color: var(--gold); display: block; margin-bottom: .5rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.step p { font-size: .88rem; color: var(--ink-soft); }

/* ---------- About / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .8rem; font-size: .95rem; }
.check-list svg { color: var(--camel-dark); flex: 0 0 auto; margin-top: .22rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--camel-dark), var(--camel) 55%, var(--gold));
  color: #fff;
  text-align: center;
  padding: 4.2rem 1rem;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M60 6 L114 60 L60 114 L6 60 Z' fill='none' stroke='%23ffffff' stroke-opacity='0.14' stroke-width='1.4'/%3E%3C/svg%3E");
  background-size: 110px 110px;
}
.cta-band .container { position: relative; z-index: 2; }
.cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: .7rem; }
.cta-band p { opacity: .92; margin-bottom: 1.8rem; }

/* ---------- Contact / form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
.contact-info-card { background: var(--ink); color: var(--cream); border-radius: var(--radius); padding: 2rem; }
.contact-info-card h3 { margin-bottom: 1rem; color: #fff; }
.contact-info-card p { font-size: .93rem; color: rgba(255,255,255,.8); margin-bottom: .5rem; }
.contact-line { display: flex; gap: .8rem; align-items: center; margin-bottom: 1rem; font-size: .95rem; }
.contact-line svg { color: var(--gold-light); flex: 0 0 auto; }
.contact-line a:hover { color: var(--gold-light); }

.form-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: .35rem; }
.form-group label .req { color: var(--camel-dark); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: .72rem .9rem;
  border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: .93rem; background: #fff; color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(198,161,91,.18);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .78rem; color: var(--ink-soft); margin-top: .8rem; }
.form-success {
  display: none;
  background: #eaf5ec; border: 1px solid #bfe0c7; color: #2c6e3f;
  padding: .9rem 1.1rem; border-radius: 10px; margin-bottom: 1.2rem; font-size: .9rem;
}

/* ---------- Footer ---------- */
.footer { background: #14181b; color: rgba(255,255,255,.72); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.4rem; padding-bottom: 2.6rem; }
.footer h4 { color: #fff; font-family: var(--font-display); font-size: 1.02rem; margin-bottom: 1rem; }
.footer ul li { margin-bottom: .55rem; font-size: .9rem; }
.footer ul a:hover { color: var(--gold-light); }
.footer .brand-name { color: #fff; }
.footer .brand-name small { color: var(--gold-light); }
.footer p { font-size: .9rem; }
.footer .bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.1rem 0; font-size: .8rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.4);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.1); }

/* ---------- Page hero (inner) ---------- */
.page-hero {
  background: linear-gradient(160deg, #2a3136, #1d2226);
  color: var(--cream);
  padding: 4.6rem 0;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M60 6 L114 60 L60 114 L6 60 Z' fill='none' stroke='%23c6a15b' stroke-opacity='0.08' stroke-width='1.4'/%3E%3C/svg%3E");
  background-size: 120px 120px;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: .6rem; }
.page-hero p { color: rgba(255,255,255,.75); max-width: 620px; }

/* ---------- Modal ---------- */
.modal {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(20,24,27,.66);
  backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
  padding: 1.2rem;
}
.modal.open { display: flex; }
.modal-box {
  background: var(--paper); border-radius: 18px;
  width: min(920px, 100%); max-height: 90vh; overflow: auto;
  display: grid; grid-template-columns: 1fr 1.05fr;
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
}
.modal-box img { width: 100%; height: 100%; object-fit: cover; min-height: 380px; }
.modal-body { padding: 2.2rem; position: relative; }
.modal-close {
  position: absolute; top: .8rem; right: .8rem;
  width: 38px; height: 38px; border-radius: 50%;
  border: none; background: var(--paper-2); color: var(--ink);
  font-size: 1.2rem; cursor: pointer;
  display: grid; place-items: center;
}
.modal-close:hover { background: var(--line); }
.modal-body h2 { font-size: 1.5rem; margin-bottom: .3rem; }
.modal-body .sub { color: var(--camel-dark); font-size: .9rem; margin-bottom: 1.2rem; }
.spec-table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .9rem; }
.spec-table td { padding: .55rem .2rem; border-bottom: 1px solid var(--line); }
.spec-table td:first-child { color: var(--ink-soft); width: 42%; }
.spec-table td:last-child { font-weight: 600; }
.modal-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.4rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; padding: 4rem 0; }
  .hero-stats { max-width: 100%; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .modal-box { grid-template-columns: 1fr; }
  .modal-box img { min-height: 260px; max-height: 40vh; }
  .trust .container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 76px; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column; align-items: stretch;
    padding: 1.2rem 1.4rem 1.6rem;
    gap: .2rem;
    border-bottom: 1px solid var(--line);
    display: none;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-cta { margin: .8rem 0 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-badge { left: .6rem; bottom: -1rem; }
  .topbar .container { justify-content: center; text-align: center; }
  .trust .container { grid-template-columns: 1fr; }
}