/* ============================================================
   OUYI — Custom Sports Uniforms Manufacturer
   Shared stylesheet for the multi-page B2B site
   ============================================================ */

:root {
  --bg: #0C221A;
  --bg-2: #11291F;
  --bg-3: #0A1C15;
  --paper: #F4EFE6;
  --paper-2: #EDE6D8;
  --paper-dim: #B9B2A2;
  --ink: #17231D;
  --accent: #FF6B2C;
  --accent-deep: #E8541A;
  --green: #3E9B63;
  --line: rgba(244, 239, 230, 0.14);
  --line-dark: rgba(23, 35, 29, 0.14);
  --display: 'Bebas Neue', 'Archivo', sans-serif;
  --body: 'Archivo', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== Typography helpers ===== */
.eyebrow {
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--accent); flex: none; }
.eyebrow.on-light { color: var(--accent-deep); }
.eyebrow.on-light::before { background: var(--accent-deep); }

.sec-head { margin-bottom: 52px; max-width: 760px; }
.sec-head h2 {
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin-top: 16px;
}
.sec-head .sub { color: var(--paper-dim); max-width: 560px; margin-top: 12px; font-size: 16px; }
.sec-head.on-light .sub { color: #6B736D; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.sec-head.center .sub { margin-left: auto; margin-right: auto; }

.section { padding: 100px 0; }
.section-dark { background: var(--bg); }
.section-dark-2 { background: var(--bg-2); }
.section-paper { background: var(--paper); color: var(--ink); }
.section-paper-2 { background: var(--paper-2); color: var(--ink); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  font-family: var(--body);
  font-size: 16px;
  font-weight: 600;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(244, 239, 230, 0.4); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); background: rgba(244, 239, 230, 0.06); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #22312A; transform: translateY(-2px); }
.btn-outline-dark { border-color: var(--line-dark); color: var(--ink); }
.btn-outline-dark:hover { border-color: var(--ink); background: rgba(23, 35, 29, 0.04); transform: translateY(-2px); }
.btn svg { width: 16px; height: 16px; stroke: currentColor; }

/* ===== Header / Nav ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled {
  background: rgba(12, 34, 26, 0.94);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: 0.14em;
  line-height: 1;
}
.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  color: var(--accent);
}
.brand small {
  display: block;
  font-family: var(--body);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  color: var(--paper-dim);
  font-weight: 500;
  margin-top: 2px;
}
.brand-logo {
  height: 40px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
}
.nav-links a {
  color: rgba(244, 239, 230, 0.82);
  transition: color 0.2s ease;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.nav-links a:hover { color: var(--paper); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--paper); }
.nav-links a.active::after { width: 100%; }
.nav-links .nav-cta { padding: 12px 32px; font-size: 14px; white-space: nowrap; border-radius: 6px; flex-shrink: 0; margin-left: 8px; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  place-items: center;
}
.nav-toggle svg { stroke: var(--paper); }

/* ===== Page hero (inner pages) ===== */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 168px 0 92px;
  background:
    radial-gradient(1000px 460px at 88% -10%, rgba(62, 155, 99, 0.2), transparent 60%),
    var(--bg);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244, 239, 230, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 239, 230, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent 85%);
}
.page-hero .wrap { position: relative; }
.page-hero h1 {
  font-size: clamp(40px, 5.4vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin-top: 18px;
  max-width: 900px;
}
.page-hero .lead {
  margin-top: 22px;
  font-size: 17px;
  color: rgba(244, 239, 230, 0.78);
  max-width: 640px;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--paper-dim);
  margin-top: 26px;
}
.breadcrumb a { color: var(--green); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb svg { width: 13px; height: 13px; stroke: var(--paper-dim); }
.breadcrumb span[aria-current="page"] { color: var(--paper); }

/* ===== Hero (home) ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 168px 0 120px;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(62, 155, 99, 0.22), transparent 60%),
    var(--bg);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244, 239, 230, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 239, 230, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent 85%);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 64px;
}
.hero-kicker {
  font-family: var(--display);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--green);
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}
.hero-kicker::before { content: ""; width: 40px; height: 2px; background: var(--green); }
.hero h1 {
  font-size: clamp(46px, 6.2vw, 74px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: 0.01em;
}
.hero h1 .hl { color: var(--accent); }
.hero p.lead {
  margin-top: 26px;
  font-size: 17px;
  color: rgba(244, 239, 230, 0.78);
  max-width: 500px;
}
.hero-actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 16px; }
.hero-note {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 13px;
  color: var(--paper-dim);
}
.hero-note span { display: inline-flex; align-items: center; gap: 8px; }
.hero-note svg { width: 15px; height: 15px; stroke: var(--green); }
.hero-visual { position: relative; }
.hero-photo { border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid var(--line); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-number {
  position: absolute;
  right: -14px;
  bottom: -54px;
  font-family: var(--display);
  font-size: clamp(120px, 16vw, 210px);
  line-height: 1;
  color: rgba(244, 239, 230, 0.1);
  pointer-events: none;
  user-select: none;
}
.hero-badge {
  position: absolute;
  left: -20px;
  top: 24px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 4px;
  transform: rotate(-4deg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* ===== Stats bar ===== */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-3); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 28px; border-right: 1px solid var(--line); text-align: center; }
.stat:last-child { border-right: none; }
.stat .num { font-family: var(--display); font-size: 46px; line-height: 1; color: var(--paper); }
.stat .num em { font-style: normal; color: var(--accent); }
.stat .label { margin-top: 10px; font-size: 13px; color: var(--paper-dim); letter-spacing: 0.05em; }

/* ===== Category cards ===== */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cat-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: flex-end;
}
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.cat-card:hover img { transform: scale(1.06); }
.cat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 28, 21, 0.92) 0%, rgba(10, 28, 21, 0.25) 55%, transparent 100%);
}
.cat-body {
  position: relative;
  z-index: 1;
  padding: 24px;
  width: 100%;
}
.cat-body h3 { font-size: 22px; font-weight: 700; }
.cat-body p { font-size: 13.5px; color: rgba(244, 239, 230, 0.75); margin-top: 4px; }
.cat-body .link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}
.cat-body .link-more svg { width: 15px; height: 15px; stroke: currentColor; transition: transform 0.2s ease; }
.cat-body .link-more:hover svg { transform: translateX(4px); }

/* ===== Product cards ===== */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.prod-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.prod-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.prod-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(23, 35, 29, 0.14); }
.prod-media { aspect-ratio: 3 / 4; overflow: hidden; background: var(--paper-2); }
.prod-media img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.4s ease; }
.prod-card:hover .prod-media img { transform: scale(1.05); }
.prod-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prod-no { font-family: var(--display); font-size: 13px; letter-spacing: 0.22em; color: var(--accent-deep); }
.prod-name { font-size: 19px; font-weight: 700; color: var(--bg); }
.prod-name a { color: var(--bg); }
.prod-desc { font-size: 13.5px; color: #6B736D; line-height: 1.55; }
.prod-foot { margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.prod-price { font-size: 17px; font-weight: 700; color: var(--accent); }
.prod-price small { font-size: 12px; font-weight: 400; color: #8A918C; }
.prod-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.prod-link svg { width: 15px; height: 15px; stroke: currentColor; transition: transform 0.2s ease; }
.prod-link:hover svg { transform: translateX(4px); }

/* ===== Steps (process) ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 30px 26px 28px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.25s ease, background 0.25s ease;
}
.step:hover { border-color: rgba(255, 107, 44, 0.6); background: rgba(255, 255, 255, 0.04); }
.step-num {
  font-family: var(--display);
  font-size: 44px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 239, 230, 0.5);
  transition: color 0.25s ease, -webkit-text-stroke-color 0.25s ease;
}
.step:hover .step-num { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.step h3 { margin-top: 18px; font-size: 19px; font-weight: 700; }
.step p { margin-top: 10px; font-size: 14px; color: var(--paper-dim); }
.step-tag {
  display: inline-block;
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--green);
  border: 1px solid rgba(62, 155, 99, 0.5);
  border-radius: 999px;
  padding: 4px 12px;
}
/* light steps */
.steps.on-light .step { border-color: var(--line-dark); background: #fff; }
.steps.on-light .step:hover { border-color: var(--accent); }
.steps.on-light .step-num { -webkit-text-stroke-color: rgba(23, 35, 29, 0.45); }
.steps.on-light .step:hover .step-num { color: var(--accent-deep); -webkit-text-stroke-color: var(--accent-deep); }
.steps.on-light .step p { color: #6B736D; }

/* ===== Feature list (craft) ===== */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-item {
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  padding: 30px 28px;
  background: #fff;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.feature-icon {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 8px;
  background: var(--bg);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.feature-icon svg { width: 24px; height: 24px; stroke: currentColor; }
.feature-item h3 { font-size: 17px; font-weight: 700; }
.feature-item p { margin-top: 8px; font-size: 13.5px; color: #6B736D; line-height: 1.6; }

/* dark feature variant */
.feature-grid.dark .feature-item { border-color: var(--line); background: rgba(255, 255, 255, 0.03); }
.feature-grid.dark .feature-icon { background: rgba(255, 107, 44, 0.14); color: var(--accent); }
.feature-grid.dark .feature-item h3 { color: var(--paper); }
.feature-grid.dark .feature-item p { color: var(--paper-dim); }

/* ===== CTA band ===== */
.cta {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
  background: radial-gradient(900px 420px at 20% 110%, rgba(62, 155, 99, 0.25), transparent 60%), var(--bg-3);
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244, 239, 230, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 239, 230, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,0.6));
}
.cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.cta h2 { font-size: clamp(32px, 4.2vw, 50px); font-weight: 700; line-height: 1.15; margin: 16px 0 18px; }
.cta p { color: rgba(244, 239, 230, 0.78); max-width: 460px; font-size: 16px; }
.cta-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 16px; }
.cta-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px 32px;
}
.cta-card h3 { font-size: 18px; font-weight: 700; }
.contact-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-size: 15px;
  color: rgba(244, 239, 230, 0.88);
}
.contact-line svg { width: 18px; height: 18px; stroke: var(--accent); flex: none; }
.contact-line strong { font-family: var(--display); font-size: 19px; letter-spacing: 0.06em; color: var(--paper); }
.contact-line a:hover strong { color: var(--accent); }
.cta-card .hint { margin-top: 18px; font-size: 12.5px; color: var(--paper-dim); }
.cta-number {
  position: absolute;
  right: 0;
  bottom: -90px;
  font-family: var(--display);
  font-size: clamp(140px, 20vw, 260px);
  line-height: 1;
  color: rgba(244, 239, 230, 0.05);
  pointer-events: none;
  user-select: none;
}

/* ===== Tables (specs / size chart) ===== */
.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-table th, .spec-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line-dark);
}
.spec-table th { background: var(--paper-2); font-weight: 600; color: var(--ink); width: 34%; }
.spec-table td { background: #fff; color: #444D48; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.spec-table.on-dark th { background: rgba(255, 255, 255, 0.06); color: var(--paper); border-bottom-color: var(--line); }
.spec-table.on-dark td { background: rgba(255, 255, 255, 0.02); color: rgba(244, 239, 230, 0.82); border-bottom-color: var(--line); }

.size-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.size-table th, .size-table td { padding: 12px 14px; text-align: center; border: 1px solid var(--line-dark); }
.size-table th { background: var(--bg); color: var(--paper); font-weight: 600; }
.size-table td { background: #fff; color: #444D48; }
.size-table tr:nth-child(even) td { background: var(--paper-2); }

/* ===== FAQ (details accordion) ===== */
.faq-list { max-width: 860px; }
.faq-item {
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  background: #fff;
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 26px;
  cursor: pointer;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--display);
  font-size: 26px;
  color: var(--accent-deep);
  line-height: 1;
  transition: transform 0.25s ease;
  flex: none;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 26px 22px; font-size: 14.5px; color: #5A625D; line-height: 1.7; }
.faq-item .faq-a a { color: var(--accent-deep); font-weight: 600; }
.faq-list.dark .faq-item { border-color: var(--line); background: rgba(255, 255, 255, 0.03); }
.faq-list.dark .faq-item summary { color: var(--paper); }
.faq-list.dark .faq-item .faq-a { color: var(--paper-dim); }

/* ===== GEO fact block ===== */
.fact-block {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 30px 32px;
  overflow: hidden;
}
.fact-block.on-light { border-color: var(--line-dark); background: #fff; }
.fact-block h3 {
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 20px;
}
.fact-block.on-light h3 { color: var(--accent-deep); }
.fact-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 34px; }
.fact-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
  font-size: 14.5px;
}
.fact-block.on-light .fact-list li { border-bottom-color: var(--line-dark); }
.fact-list dt { color: var(--paper-dim); }
.fact-list dd { color: var(--paper); font-weight: 600; text-align: right; }
.fact-block.on-light .fact-list dt { color: #6B736D; }
.fact-block.on-light .fact-list dd { color: var(--ink); }

/* ===== Two column split ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split.rev .split-media { order: 2; }
.split-media { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media.ratio-4x3 { aspect-ratio: 4 / 3; }
.split h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 700; line-height: 1.18; margin: 16px 0; }
.split p { color: var(--paper-dim); font-size: 15.5px; }
.split.on-light p { color: #6B736D; }
.split ul.checklist { margin-top: 22px; display: grid; gap: 12px; }
.split ul.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: rgba(244, 239, 230, 0.85);
}
.split.on-light ul.checklist li { color: #3C443F; }
.split ul.checklist svg { width: 20px; height: 20px; stroke: var(--green); flex: none; margin-top: 2px; }
.split .btn-row { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ===== Compare table ===== */
.compare-wrap { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 720px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 10px; }
.compare-table th, .compare-table td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line-dark); }
.compare-table thead th { background: var(--bg); color: var(--paper); font-weight: 600; }
.compare-table tbody th { background: var(--paper-2); font-weight: 600; width: 22%; }
.compare-table tbody td { background: #fff; color: #4A534E; }

/* ===== Contact form ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}
.form-card {
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  padding: 38px 40px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
.form-field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.form-field label span { color: var(--accent-deep); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  font-family: var(--body);
  font-size: 15px;
  color: var(--ink);
  background: #FAF8F3;
  transition: border-color 0.2s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 12.5px; color: #8A918C; margin-top: 14px; line-height: 1.6; }
.form-success {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 8px;
  background: rgba(62, 155, 99, 0.12);
  border: 1px solid rgba(62, 155, 99, 0.45);
  color: #2E7D4F;
  font-size: 14px;
  font-weight: 600;
}
.form-success.show { display: block; }
.info-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 34px 32px;
}
.info-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.info-card .info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 20px;
  font-size: 14.5px;
  color: rgba(244, 239, 230, 0.85);
}
.info-card .info-item svg { width: 19px; height: 19px; stroke: var(--accent); flex: none; margin-top: 2px; }
.info-card .info-item strong { display: block; font-weight: 600; color: var(--paper); }
.info-card .info-item span { font-size: 13.5px; color: var(--paper-dim); }
.info-card .hr { border-top: 1px solid var(--line); margin: 26px 0 0; }

/* ===== Testimonial ===== */
.testi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.testi {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 30px 32px;
}
.testi p { font-size: 15px; color: rgba(244, 239, 230, 0.85); line-height: 1.7; }
.testi .who {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.testi .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--display);
  font-size: 18px;
  display: grid;
  place-items: center;
  letter-spacing: 0.06em;
}
.testi .who strong { display: block; font-size: 14.5px; }
.testi .who span { font-size: 12.5px; color: var(--paper-dim); }

/* ===== Product detail layout ===== */
.pd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.pd-gallery { display: grid; gap: 18px; }
.pd-gallery .main-img {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 1 / 1;
}
.pd-gallery .main-img img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.pd-thumbs a { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 1/1; }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.pd-thumbs a:hover img { transform: scale(1.05); }
.pd-info .prod-no { margin-bottom: 12px; }
.pd-info h1 { font-size: clamp(30px, 3.8vw, 44px); font-weight: 700; line-height: 1.12; }
.pd-info .lead { margin-top: 16px; color: var(--paper-dim); font-size: 15.5px; }
.pd-facts {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.pd-fact {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
}
.pd-fact .k { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-dim); }
.pd-fact .v { font-size: 16px; font-weight: 600; color: var(--paper); margin-top: 3px; }
.pd-cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }
.pd-cta-note { margin-top: 16px; font-size: 12.5px; color: var(--paper-dim); }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-3); padding: 44px 0 40px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 40px; }
.footer-brand { max-width: 320px; }
.footer-brand p { margin-top: 14px; font-size: 13.5px; color: var(--paper-dim); }
.footer-links { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 {
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--paper-dim);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.footer-col li { margin-top: 10px; }
.footer-col a { font-size: 14px; color: rgba(244, 239, 230, 0.8); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--accent); }
.copyright {
  margin-top: 40px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 24px 24px 0;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 12.5px;
  color: var(--paper-dim);
}

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-number { right: 8px; bottom: -30px; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .cta-inner { grid-template-columns: 1fr; gap: 44px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.rev .split-media { order: 0; }
  .pd-grid { grid-template-columns: 1fr; gap: 44px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .testi-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    inset: 66px 16px auto 16px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 24px;
    display: none;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0 !important; width: 100%; border-bottom: 1px solid var(--line); font-size: 15px !important; display: block; }
  .nav-links a::after { display: none; }
  .nav-links a.active { border-bottom: 2px solid var(--accent); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links .nav-cta { margin: 20px 0 8px !important; padding: 16px 24px !important; width: 100%; text-align: center; font-size: 15px !important; justify-content: center; }
  .nav-toggle { display: grid; }
  .hero { padding: 140px 0 90px; }
  .page-hero { padding: 140px 0 70px; }
  .section { padding: 72px 0; }
  .prod-grid, .prod-grid.cols-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .fact-list { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-links { gap: 36px; }
  .pd-facts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}


/* ===== Design Library page ===== */
.lib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 20px;
}
.lib-card {
  background: rgba(244, 239, 230, 0.05);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.lib-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.lib-no {
  font-family: var(--display);
  letter-spacing: 0.1em;
  font-size: 15px;
  color: var(--accent);
}
.lib-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--paper);
}
.lib-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.lib-tag {
  font-size: 11px;
  letter-spacing: 0.03em;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(244, 239, 230, 0.09);
  color: var(--paper-dim);
}
.swatch-row {
  display: flex;
  gap: 7px;
  margin-top: auto;
  padding-top: 4px;
}
.swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(244, 239, 230, 0.3);
}
.lib-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}
.lib-cta svg {
  width: 14px;
  height: 14px;
}

/* ===== Fabric Library page ===== */
.fab-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.fab-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.fab-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(23, 35, 29, 0.12);
}
.fab-media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #ececec;
}
.fab-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.fab-card:hover .fab-media img { transform: scale(1.06); }
.fab-info {
  padding: 12px 14px 14px;
}
.fab-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin: 0 0 4px;
}
.fab-gsm {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
}
@media (max-width: 900px) {
  .fab-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .fab-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Factory bento grid ===== */
.fac-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin-top: 20px;
}
.fac-item {
  margin: 0;
  position: relative;
  background: rgba(244, 239, 230, 0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.fac-item:hover { transform: translateY(-4px); border-color: var(--accent); }
.story-img-hover { transition: transform 0.25s ease, box-shadow 0.25s ease; border-radius: 14px; overflow: hidden; }
.story-img-hover:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(23, 35, 29, 0.18); }
.story-img-hover img { transition: transform 0.4s ease; }
.story-img-hover:hover img { transform: scale(1.05); }
.fac-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fac-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 34px 18px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: #fff;
}
.fac-item figcaption .fac-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}
.fac-item figcaption .fac-sub {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
}
/* bento: row1 main+qc same height, row2 3 equal, row3 2 equal */
.fac-item:nth-child(1) { grid-column: span 8;  aspect-ratio: 16/10; }
.fac-item:nth-child(2) { grid-column: span 4;  aspect-ratio: 4/5; }
.fac-item:nth-child(3) { grid-column: span 4;  aspect-ratio: 4/3; }
.fac-item:nth-child(4) { grid-column: span 4;  aspect-ratio: 4/3; }
.fac-item:nth-child(5) { grid-column: span 4;  aspect-ratio: 4/3; }
.fac-item:nth-child(6) { grid-column: span 6;  aspect-ratio: 16/9; }
.fac-item:nth-child(7) { grid-column: span 6;  aspect-ratio: 16/9; }
@media (max-width: 900px) {
  .fac-item:nth-child(n) { grid-column: span 6; aspect-ratio: 4/3; }
}
@media (max-width: 600px) {
  .fac-item:nth-child(n) { grid-column: span 12; aspect-ratio: 4/3; }
}

/* ===== Factory panorama ===== */
.factory-hero {
  margin: 26px auto 0;
  max-width: 900px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.factory-hero img { width: 100%; display: block; }
.factory-copy {
  margin-top: 26px;
  max-width: 860px;
  color: rgba(244, 239, 230, 0.82);
  font-size: 16px;
  line-height: 1.75;
}
.factory-copy p + p { margin-top: 14px; }

/* ===== Fabric lightbox ===== */
.fab-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(12, 34, 26, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 40px;
  cursor: zoom-out;
}
.fab-lightbox.open { display: flex; }
.fab-lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  background: #fff;
}
.fab-lightbox .lb-caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.fab-lightbox .lb-close {
  position: absolute;
  top: 20px;
  right: 28px;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  background: none;
  border: none;
}

.sizing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 900px) { .sizing-grid { grid-template-columns: 1fr; } }

.sizing-tabs { display:flex; gap:8px; flex-wrap:wrap; margin:8px 0 24px; }
.sizing-tab { padding:10px 20px; border-radius:999px; border:1px solid var(--line); background:transparent; color:var(--ink); font:600 14px/1 'Archivo',sans-serif; cursor:pointer; transition:all .2s; }
.sizing-tab:hover { border-color:var(--accent); color:var(--accent); }
.sizing-tab.active { background:var(--ink); color:#fff; border-color:var(--ink); }
.sizing-panel { display:none; }
.sizing-panel.active { display:block; animation:fadeIn .3s ease; }
@keyframes fadeIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }

/* WhatsApp floating button */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(255, 107, 44, 0.4);
  z-index: 9999;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(255, 107, 44, 0.6);
}
.wa-float svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

/* Email floating button */
.email-float {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(255, 107, 44, 0.4);
  z-index: 9999;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.email-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(255, 107, 44, 0.6);
}
.email-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.narrow { max-width: 820px; }
.narrow h2 { margin-top: 40px; font-size: 24px; }
.narrow p, .narrow li { font-size: 15px; line-height: 1.75; color: var(--paper-dim); }
.narrow ul { margin: 12px 0 12px 20px; }
.narrow a { color: var(--accent); }

/* Center FAQ and Related Sections */
#faq .sec-head, #related .sec-head {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
#faq .sec-head .eyebrow, #related .sec-head .eyebrow {
  justify-content: center;
}
#faq .faq-list {
  margin-left: auto;
  margin-right: auto;
}
#related .prod-grid {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 991px) {
  #related .prod-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  #related .prod-grid {
    grid-template-columns: 1fr;
  }
}

/* Center Design SEO Section */
#design-seo {
  text-align: center;
}
#design-seo p {
  margin-left: auto;
  margin-right: auto;
}
