/* ============================================================
   Nestextile - Global Styles
   Premium home textiles manufacturer & exporter
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

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

:root {
  --navy: #16243f;
  --navy-light: #1f3255;
  --gold: #c9a961;
  --gold-dark: #b3924a;
  --bg: #ffffff;
  --bg-alt: #f4f6f8;
  --text: #222;
  --text-light: #5c6570;
  --border: #e5e8ec;
  --radius: 10px;
  --shadow: 0 2px 14px rgba(22,36,63,.08);
  --shadow-hover: 0 10px 28px rgba(22,36,63,.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: "Poppins", "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Scroll fade-in animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .65s ease, transform .65s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Footer social ---------- */
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, transform .25s;
}
.footer-social a:hover { background: var(--gold); transform: translateY(-3px); }
.footer-social svg { width: 16px; height: 16px; fill: #c8d0dd; }
.footer-social a:hover svg { fill: #101a2e; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: all .25s;
}
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { background: var(--gold-dark); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline:hover { background: rgba(255,255,255,.15); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-light); }
.btn-sm { padding: 9px 20px; font-size: 13px; }

/* ---------- Header ---------- */
.site-header {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(22,36,63,.08);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.logo { font-size: 24px; font-weight: 800; color: var(--navy); letter-spacing: 1px; }
.logo span { color: var(--gold-dark); }
.nav { display: flex; gap: 30px; }
.nav a { color: #4a5568; font-size: 15px; font-weight: 500; transition: color .2s; }
.nav a:hover, .nav a.active { color: var(--gold-dark); }
.nav-toggle { display: none; background: none; border: none; color: var(--navy); font-size: 24px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(140deg, #16243f 0%, #1f3255 60%, #2a4066 100%);
  color: #fff;
  padding: 120px 0 130px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  top: -40%; right: -20%;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(201,169,97,.25) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner { position: relative; z-index: 1; }
.hero-tag {
  display: inline-block;
  background: rgba(201,169,97,.18);
  border: 1px solid rgba(201,169,97,.5);
  color: var(--gold);
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 13px;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 { font-size: 50px; line-height: 1.22; margin-bottom: 20px; font-weight: 800; letter-spacing: .5px; }
.hero-sub { max-width: 660px; margin: 0 auto 36px; font-size: 17px; color: rgba(255,255,255,.85); }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Page hero ---------- */
.page-hero {
  background: linear-gradient(140deg, #16243f 0%, #1f3255 100%);
  padding: 150px 0;
  text-align: center;
  background-size: cover;
  background-position: center;
}

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: 30px; font-weight: 700; margin-bottom: 10px; }
.section-title.center { text-align: center; }
.section-sub { color: var(--text-light); font-size: 16px; margin-bottom: 40px; }
.section-sub.center { text-align: center; }

/* ---------- Grid ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

/* ---------- Service flow ---------- */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.flow-step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 18px;
  text-align: center;
  transition: box-shadow .25s, transform .25s;
}
.flow-step:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.flow-num {
  width: 44px; height: 44px;
  line-height: 44px;
  margin: 0 auto 14px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 50%;
  font-size: 18px;
  font-weight: 800;
}
.flow-step h3 { font-size: 16px; margin-bottom: 8px; }
.flow-step p { font-size: 13px; color: var(--text-light); }

/* ---------- Cards ---------- */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: block;
  transition: box-shadow .25s, transform .25s;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-5px); }
.card-img {
  height: 170px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 16px;
  background: #eef0f3;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.card:hover .card-img img { transform: scale(1.05); }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--text-light); font-size: 14px; }
.card-meta { margin-top: 10px; font-size: 13px; color: var(--gold-dark) !important; font-weight: 700; }

/* ---------- Room scenes ---------- */
.scene { text-align: center; }
.scene-img {
  height: 180px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  background: #eef0f3;
}
.scene-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.scene p { font-weight: 600; color: var(--text); }

/* ---------- Features ---------- */
.feature { text-align: center; padding: 30px 20px; background: var(--bg); border-radius: var(--radius); border: 1px solid var(--border); }
.feature-icon { font-size: 42px; margin-bottom: 12px; }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--text-light); font-size: 14px; }

/* ---------- Products layout (sidebar + grid) ---------- */
.products-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; margin-top: 34px; }
.cat-sidebar {
  background: var(--bg)top: 34px; }
.cat-sidebar {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 14px;
  position: sticky;
  top: 76px;
}
.cat-sidebar h3 { font-size: 16px; margin-bottom: 12px; color: var(--navy); padding: 0 8px; }
.cat-sidebar ul { list-style: none; }
.cat-sidebar li {
  padding: 11px 14px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-light);
  font-size: 14px;
  transition: all .2s;
}
.cat-sidebar li:hover { background: var(--bg-alt); color: var(--navy); }
.cat-sidebar li.active { background: var(--navy); color: #fff; font-weight: 600; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.product-item:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.product-item img { width: 100%; height: 180px; object-fit: cover; display: block; }
.product-item p { padding: 12px 14px; font-size: 14px; font-weight: 600; color: var(--text); }

@media (max-width: 900px) {
  .products-layout { grid-template-columns: 1fr; }
  .cat-sidebar { position: static; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* ---------- Contact intro & form guide ---------- */
.contact-intro { margin-bottom: 34px; }
.contact-intro .section-sub { max-width: 640px; margin-left: auto; margin-right: auto; }
.form-guide {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 18px;
  text-align: center;
}
.form-steps {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: nowrap;
  margin-top: 16px;
}
.form-steps .step {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #f5f6f8;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 4px 10px;
  font-size: 11px;
  color: var(--text-light);
  white-space: nowrap;
}
.form-steps .step-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.samples-note {
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
  margin-top: 12px;
}

/* ---------- Contact layout ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 40px;
  align-items: stretch;
}
.left-col .contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 0;
  height: 100%;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 24px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(22,36,63,.05);
  transition: box-shadow .3s, transform .3s, border-color .3s;
}
a.contact-card:hover {
  box-shadow: 0 12px 28px rgba(22,36,63,.12);
  transform: translateY(-6px);
  border-color: var(--gold);
}
.contact-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2f6b5f, #244f46);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  color: #fff;
  margin-bottom: 14px;
  box-shadow: 0 4px 10px rgba(47,107,95,.25);
}
.contact-card:nth-child(2) .contact-icon { background: linear-gradient(135deg, #2e9e6b, #1f7a52); box-shadow: 0 4px 10px rgba(46,158,107,.25); }
.contact-card:nth-child(3) .contact-icon { background: linear-gradient(135deg, #c9a961, #a8873f); box-shadow: 0 4px 10px rgba(201,169,97,.28); }
.contact-card h3 { font-size: 18px; margin-bottom: 8px; color: var(--navy); }
.contact-card p { color: var(--text-light); font-size: 15px; margin-bottom: 14px; }
.contact-action { color: var(--gold-dark); font-weight: 600; font-size: 14px; transition: color .2s; }
a.contact-card:hover .contact-action { color: #2f6b5f; }

/* 右侧表单区（定制表单） */
.enquiry-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px 24px;
  height: 100%;
  box-shadow: 0 2px 12px rgba(22,36,63,.05);
}
.send-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}
.send-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 44px; height: 3px;
  border-radius: 2px;
  background: #2f9e6b;
}
.custom-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-field { margin-bottom: 14px; }
.form-field label {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
}
.form-field .req { color: #e05a4a; }
.custom-form input,
.custom-form textarea {
  width: 100%;
  padding: 11px 12px;
  background: #f5f6f8;
  border: 1px solid #e3e6ea;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  color: #333;
  box-sizing: border-box;
  transition: border-color .2s, background .2s;
}
.custom-form input:focus,
.custom-form textarea:focus {
  outline: none;
  border-color: #2f9e6b;
  background: #fff;
}
.btn-submit {
  background: #2f9e6b;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 44px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
  transition: background .2s;
}
.btn-submit:hover { background: #278a5c; }
.center-note { max-width: 640px; margin: 0 auto; }
@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .enquiry-box { padding: 20px 16px; }
  .custom-form .form-row { grid-template-columns: 1fr; }
}

/* ---------- News ---------- */
.news-date { color: var(--gold-dark); font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.news-list .news-item {
  border-bottom: 1px solid var(--border);
  padding: 26px 0;
}
.news-list .news-item:first-child { padding-top: 0; }
.news-item h2 { font-size: 20px; margin-bottom: 6px; }
.news-item p:last-child { color: var(--text-light); font-size: 15px; }

/* ---------- CTA box ---------- */
.cta-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 56px 40px;
  text-align: center;
}
.cta-box h2 { font-size: 28px; margin-bottom: 10px; }
.cta-box p { color: var(--text-light); margin-bottom: 26px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Facts ---------- */
.fact-list { list-style: none; }
.fact-list li {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.fact-list li:last-child { border-bottom: none; }
.fact-list strong { color: var(--navy); min-width: 150px; display: inline-block; font-weight: 700; }

/* ---------- Contact ---------- */
.contact-form label { display: block; font-size: 14px; font-weight: 600; margin: 14px 0 6px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d5dae1;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: var(--bg);
  transition: border-color .2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); }
.contact-form .btn { margin-top: 22px; }
.contact-info p { margin-bottom: 16px; font-size: 15px; }
.contact-info strong { color: var(--navy); }
.note-box {
  background: #faf5ea;
  border-left: 4px solid var(--gold);
  padding: 16px 18px;
  border-radius: 8px;
  font-size: 14px;
  color: #5a4a2f;
  margin-top: 26px;
}

/* ---------- Footer ---------- */
.site-footer { background: #101a2e; color: #9aa5b5; padding: 46px 0 0; font-size: 14px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 36px; padding-bottom: 30px; }
.site-footer .logo { font-size: 20px; color: #ffffff; }
.site-footer .logo span { color: #ffffff; }
.footer-note { margin-top: 8px; color: #7d8898; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links h4, .footer-contact h4 { color: #fff; font-size: 15px; margin-bottom: 8px; }
.footer-links a:hover { color: var(--gold); }
.footer-contact p { margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 20px; color: #6b7686; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .flow { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 36px; }
}
@media (max-width: 680px) {
  .grid-2, .grid-3, .grid-4, .flow { grid-template-columns: 1fr; }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 16px 20px;
    gap: 14px;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .hero { padding: 80px 0 90px; }
  .hero h1 { font-size: 30px; }
  .footer-inner { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}
template-columns: 1fr; }
  .section { padding: 56px 0; }
}
}
