/* ============================================
   Softwell Textile — Global Stylesheet
   Minimal corporate style for B2B export site
   ============================================ */

:root {
  --bg: #ffffff;
  --bg-alt: #f7f5f2;
  --ink: #26221e;
  --ink-soft: #6b635a;
  --accent: #b06a3f;        /* terracotta */
  --accent-dark: #8f5330;
  --line: #e8e2da;
  --radius: 10px;
  --max: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: all .2s ease;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--bg-alt); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--ink);
  color: #d9d2c9;
  font-size: 0.82rem;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 24px;
  flex-wrap: wrap;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 40px; height: 40px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.3rem;
}
.logo-text { font-weight: 800; font-size: 1.15rem; letter-spacing: .3px; }
.logo-sub { color: var(--accent); font-weight: 500; font-size: .7rem; letter-spacing: 2.5px; display: block; line-height: 1; }

.nav { display: flex; align-items: center; gap: 28px; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--accent); }
.nav a.active { color: var(--accent); }
.nav-cta { padding: 9px 20px; }
.menu-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: 80px 0 70px; background: linear-gradient(180deg, #fdfcfa 0%, #f7f5f2 100%); }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.hero-tag { color: var(--accent); font-weight: 700; letter-spacing: 2px; font-size: .8rem; margin-bottom: 16px; }
.hero-desc { color: var(--ink-soft); margin: 20px 0 28px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-points { list-style: none; display: flex; gap: 22px; margin-top: 30px; color: var(--ink-soft); font-size: .9rem; flex-wrap: wrap; }

/* ---------- Real images ---------- */
.hero-visual img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(38,34,30,.16);
}

.card { display: flex; flex-direction: column; }
.card-img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-alt);
}
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.card:hover .card-img img { transform: scale(1.04); }

.split-img {
  display: grid;
  gap: 14px;
}
.split-img img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 14px 32px rgba(38,34,30,.12);
}
.split-img img.portrait {
  aspect-ratio: 4 / 5;
  max-height: 640px;
}

.custom-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.custom-gallery figure {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.custom-gallery img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}
.custom-gallery figcaption {
  padding: 14px 18px;
  font-weight: 600;
  font-size: .95rem;
  text-align: center;
}
.custom-note {
  text-align: center;
  margin-top: 24px;
  color: var(--ink-soft);
}
.custom-note strong { color: var(--accent); font-size: 1.1rem; }

.topbar a { color: inherit; }
.topbar a:hover { color: #fff; }

/* ---------- Placeholder image blocks (replace with real photos) ---------- */
.placeholder-img {
  background: repeating-linear-gradient(45deg, #efe9e1, #efe9e1 12px, #e7dfd5 12px, #e7dfd5 24px);
  border: 1px dashed #c9bfae;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: #94887a;
  font-size: .85rem;
  min-height: 260px;
  line-height: 1.8;
}
.hero-img { min-height: 400px; }

/* ---------- Stats ---------- */
.stats { background: var(--ink); color: #fff; padding: 34px 0; }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat strong { display: block; font-size: 1.9rem; color: #e8b48f; }
.stat span { font-size: .85rem; color: #cfc7bc; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-tag { color: var(--accent); font-weight: 700; letter-spacing: 2px; font-size: .78rem; margin-bottom: 10px; }
.section-head p { color: var(--ink-soft); margin-top: 12px; }
.section-more { text-align: center; margin-top: 44px; }

/* ---------- Grid & Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  padding-bottom: 22px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(38,34,30,.1); }
.card .placeholder-img { border: none; border-radius: 0; min-height: 200px; }
.card h3 { padding: 18px 22px 6px; font-size: 1.05rem; }
.card p { padding: 0 22px; color: var(--ink-soft); font-size: .9rem; }

/* ---------- Features ---------- */
.feature { text-align: center; padding: 8px 12px; }
.feature-icon { font-size: 2rem; margin-bottom: 12px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: .9rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.step-num { color: var(--accent); font-weight: 800; font-size: 1.4rem; display: block; margin-bottom: 10px; }
.step h3 { font-size: 1rem; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: .88rem; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-img { min-height: 360px; }
.split-text h2 { margin-bottom: 16px; }
.split-text > p { color: var(--ink-soft); margin-bottom: 18px; }
.check-list { list-style: none; margin-bottom: 26px; }
.check-list li { padding: 6px 0 6px 26px; position: relative; color: var(--ink-soft); }
.check-list li::before { content: "✔"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ---------- CTA ---------- */
.cta { background: var(--accent); color: #fff; padding: 60px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { font-size: 1.6rem; margin-bottom: 8px; }
.cta p { opacity: .9; }

/* ---------- Footer ---------- */
.footer { background: #1d1a17; color: #b8b0a5; padding: 56px 0 0; font-size: .9rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.footer-col h4 { color: #fff; margin-bottom: 16px; font-size: .95rem; }
.footer-col a, .footer-col span { display: block; padding: 4px 0; color: #b8b0a5; }
.footer-col a:hover { color: #e8b48f; }
.footer-brand p { margin-top: 14px; max-width: 280px; }
.footer-bottom { border-top: 1px solid #332e29; padding: 18px 0; font-size: .8rem; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Inner page head ---------- */
.page-head {
  background: linear-gradient(180deg, #fdfcfa 0%, #f7f5f2 100%);
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--line);
}
.page-head h1 { max-width: 780px; margin: 12px 0 14px; }
.page-head > .container > p { color: var(--ink-soft); max-width: 680px; }
.breadcrumb { font-size: .82rem; color: var(--ink-soft); letter-spacing: .3px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span:last-child { color: var(--ink); }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.contact-info h2, .contact-form-wrap h2 { font-size: 1.5rem; margin-bottom: 8px; }
.contact-lead { color: var(--ink-soft); font-size: .92rem; margin-bottom: 26px; }

.info-list { list-style: none; border-top: 1px solid var(--line); }
.info-list li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.info-icon { font-size: 1.1rem; line-height: 1.4; width: 24px; flex-shrink: 0; }
.info-list strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-soft); font-weight: 600; }
.info-list a, .info-list span:not(.info-icon) { font-size: .95rem; }
.info-list a:hover { color: var(--accent); }

.contact-cta { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }

.contact-form-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: 0 10px 30px rgba(38,34,30,.05);
}
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: inherit;
  font-size: .95rem;
  color: var(--ink);
  padding: 11px 14px;
  border: 1px solid #dcd4c9;
  border-radius: 6px;
  background: #fdfcfa;
  font-weight: 400;
  width: 100%;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(176,106,63,.12);
}
.contact-form textarea { resize: vertical; }
.form-submit { align-self: flex-start; padding: 13px 34px; }
.form-note { font-size: .8rem; color: var(--ink-soft); line-height: 1.6; }

/* ---------- Map ---------- */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  line-height: 0;
  background: var(--bg-alt);
}
.map-wrap iframe { width: 100%; height: 420px; border: 0; }
.map-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: .9rem;
  color: var(--ink-soft);
}
.map-bar a { color: var(--accent); font-weight: 600; }
.map-bar a:hover { text-decoration: underline; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 24px;
  margin-bottom: 12px;
  background: #fff;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  font-weight: 600;
  position: relative;
  padding-right: 32px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 0 20px; color: var(--ink-soft); font-size: .93rem; }

/* ---------- Gallery & equipment (factory page) ---------- */
.gallery figure {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.gallery figcaption {
  padding: 16px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.gallery figcaption strong { font-size: .98rem; }
.gallery figcaption span { color: var(--ink-soft); font-size: .86rem; }

.equip-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.equip-card img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  margin-bottom: 16px;
}
.equip-card h3 { font-size: 1rem; margin-bottom: 6px; }
.equip-card p { color: var(--ink-soft); font-size: .87rem; }

/* ---------- Logo customization page ---------- */
.head-points { margin-top: 22px; }

.split.flip .split-img { order: 2; }
.split.flip .split-text { order: 1; }
@media (max-width: 960px) {
  .split.flip .split-img, .split.flip .split-text { order: initial; }
}

.inline-link { color: var(--accent); font-weight: 600; }
.inline-link:hover { text-decoration: underline; }

.method-note {
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  font-size: .9rem;
  color: var(--ink-soft);
}
.method-note strong { color: var(--ink); }

.gallery-tight { margin-top: 44px; gap: 18px; }
.gallery-tight img { aspect-ratio: 4 / 3; }

.table-wrap { overflow-x: auto; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  font-size: .92rem;
  min-width: 640px;
}
.compare-table th, .compare-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.compare-table thead th {
  background: var(--ink);
  color: #fff;
  font-size: .85rem;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.compare-table thead th:first-child { background: transparent; }
.compare-table tbody th {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  width: 180px;
  background: var(--bg-alt);
}
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table td:nth-child(2) { box-shadow: inset 3px 0 0 var(--accent); }

/* ---------- Products page ---------- */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}
.filter-btn {
  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 20px;
  cursor: pointer;
  transition: all .2s ease;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.filter-btn .count {
  display: inline-block;
  margin-left: 6px;
  font-size: .75rem;
  background: rgba(176,106,63,.12);
  color: var(--accent);
  border-radius: 999px;
  padding: 1px 8px;
}
.filter-btn.active .count { background: rgba(255,255,255,.22); color: #fff; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(38,34,30,.1); }
.p-img { aspect-ratio: 1 / 1; overflow: hidden; background: var(--bg-alt); }
.p-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.product-card:hover .p-img img { transform: scale(1.04); }
.product-card figcaption {
  padding: 13px 16px;
  font-size: .88rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
}
.products-note { text-align: center; color: var(--ink-soft); font-size: .92rem; margin-top: 40px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner, .split { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .custom-gallery { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

@media (max-width: 640px) {
  .nav {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    align-items: flex-start;
  }
  .nav.open { display: flex; }
  .menu-toggle { display: block; }
  .grid-3, .grid-4, .steps { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 56px 0; }
  .hero { padding: 52px 0; }
  .hero-visual img { aspect-ratio: 4 / 3; }
  .split-img img { aspect-ratio: 16 / 10; }
  .custom-gallery { grid-template-columns: 1fr; }
  .custom-gallery img { height: 220px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 24px 20px; }
  .map-wrap iframe { height: 300px; }
  .page-head { padding: 40px 0 34px; }
  .contact-cta .btn { flex: 1 1 100%; text-align: center; }
  .equip-grid { grid-template-columns: repeat(2, 1fr); }
  .equip-card img { height: 150px; }
  .split-img img.portrait { aspect-ratio: 4 / 5; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
