/* ============================================================
   Nestextile - Global Styles
   Premium home textiles manufacturer & exporter
   ============================================================ */
* { 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: "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; }

.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: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.logo { font-size: 24px; font-weight: 800; color: #fff; letter-spacing: 1px; }
.logo span { color: var(--gold); }
.nav { display: flex; gap: 30px; }
.nav a { color: #c8d0dd; font-size: 15px; font-weight: 500; transition: color .2s; }
.nav a:hover, .nav a.active { color: var(--gold); }
.nav-toggle { display: none; background: none; border: none; color: #fff; 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%);
  color: #fff;
  padding: 70px 0;
  text-align: center;
}
.page-hero h1 { font-size: 36px; margin-bottom: 10px; font-weight: 800; }
.page-hero p { color: rgba(255,255,255,.85); font-size: 16px; }

/* ---------- 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); }

/* ---------- 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; }

/* ---------- 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; }
.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; }
  .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; }
  .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; }
}
