/* Danxiong Shoes — public site stylesheet */

:root {
  --ink: #182430;
  --ink-soft: #2b3947;
  --teal: #16323a;
  --teal-light: #e8f0ef;
  --red: #b8352a;
  --red-dark: #96281f;
  --cream: #faf8f4;
  --amber: #c8902f;
  --amber-light: #f6ecd9;
  --white: #ffffff;
  --gray-900: #1c2126;
  --gray-700: #4a545e;
  --gray-500: #7c8791;
  --gray-200: #e6e8eb;
  --gray-100: #f3f4f6;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(24, 36, 48, 0.08);
  --shadow-sm: 0 2px 10px rgba(24, 36, 48, 0.06);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; margin: 0 0 0.5em; color: var(--ink); }
p { margin: 0 0 1em; color: var(--gray-700); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--red); color: #fff;
  padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer; transition: all 0.2s ease;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--gray-200); }
.btn-outline:hover { border-color: var(--ink); }
.hero .btn-outline, .cta-band .btn-outline {
  color: #fff; border-color: rgba(255,255,255,0.45);
}
.hero .btn-outline:hover, .cta-band .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--cream); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: #fff;
  border-bottom: 1px solid var(--gray-200);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; gap: 24px; }
.logo img { height: 34px; width: auto; }
.main-nav ul { display: flex; align-items: center; gap: 30px; }
.main-nav a { font-size: 0.95rem; font-weight: 500; color: var(--gray-700); padding: 6px 2px; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--ink); border-color: var(--red); }
.main-nav a.lang-toggle {
  border: 1px solid var(--gray-200); border-radius: 999px; padding: 5px 14px; font-weight: 600;
}
.main-nav a.lang-toggle:hover { border-color: var(--ink); }
.nav-cta-mobile { display: none; }
body.lang-zh { font-family: 'Noto Sans SC', var(--font-body); }
body.lang-zh h1, body.lang-zh h2, body.lang-zh h3, body.lang-zh h4 { font-family: 'Noto Sans SC', var(--font-display); }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer;
}
.nav-toggle span { width: 100%; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; background: var(--ink); color: #fff; overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 40px;
  padding: 90px 24px 80px;
}
.hero .eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem;
  font-weight: 600; color: var(--amber); margin-bottom: 18px;
}
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4vw, 3.2rem); margin-bottom: 20px; }
.hero p.lead { color: rgba(255,255,255,0.78); font-size: 1.08rem; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

/* ---------- Homepage hero product carousel (card, not full-bleed) ---------- */
.hero-media {
  position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow);
  background: linear-gradient(155deg, #f6f3ec 0%, #ece6d8 100%);
  aspect-ratio: 16 / 11; width: 100%; max-width: 640px; min-height: 380px;
}
.hero-media-slides { position: relative; width: 100%; height: 100%; }
.hero-media-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center;
  opacity: 0; transition: opacity 0.8s ease, transform 0.8s ease; transform: scale(0.97);
}
.hero-media-slide.active { opacity: 1; transform: scale(1); }
.hero-media-dots {
  position: absolute; left: 0; right: 0; bottom: 16px; z-index: 2;
  display: flex; justify-content: center; gap: 8px;
}
.hero-media-dots .hero-dot {
  width: 8px; height: 8px; border-radius: 50%; border: 1px solid rgba(24,36,48,0.35);
  background: transparent; cursor: pointer; padding: 0;
}
.hero-media-dots .hero-dot.active { background: var(--red); border-color: var(--red); }

/* ---------- Proof strip / stats ---------- */
.proof-strip { background: var(--teal); color: #fff; }
.proof-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding: 34px 24px;
}
.proof-item { text-align: center; }
.proof-item .num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--amber); }
.proof-item .label { font-size: 0.85rem; color: rgba(255,255,255,0.75); margin-top: 4px; }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-alt { background: var(--cream); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem;
  font-weight: 700; color: var(--red); margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }

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

.card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .icon-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; background: var(--amber-light);
  color: var(--amber); font-weight: 700; font-family: var(--font-display); margin-bottom: 16px;
}
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { margin-bottom: 0; font-size: 0.95rem; }

.category-card {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5;
  box-shadow: var(--shadow-sm);
}
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.category-card:hover img { transform: scale(1.06); }
.category-card .overlay {
  position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(15,20,26,0.82) 100%);
}
.category-card .label { position: absolute; left: 16px; right: 16px; bottom: 16px; color: #fff; }
.category-card .label h3 { color: #fff; font-size: 1.05rem; margin-bottom: 2px; }
.category-card .label span { font-size: 0.8rem; color: rgba(255,255,255,0.75); }

.product-card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.product-card .thumb { aspect-ratio: 1/1; overflow: hidden; background: var(--gray-100); }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .body { padding: 16px 18px 20px; }
.product-card .cat { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--red); font-weight: 700; }
.product-card h3 { font-size: 1rem; margin: 6px 0 0; }

.step-list { counter-reset: step; }
.step {
  display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--gray-200);
}
.step:last-child { border-bottom: none; }
.step .n {
  flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700;
}
.step h4 { margin: 0 0 4px; font-size: 1.02rem; }
.step p { margin: 0; font-size: 0.92rem; }

.callout {
  background: var(--teal-light); border-left: 4px solid var(--teal); border-radius: 6px;
  padding: 20px 22px; margin: 24px 0;
}
.callout.amber { background: var(--amber-light); border-color: var(--amber); }
.callout p:last-child { margin: 0; }

table.info-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
table.info-table th, table.info-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--gray-200); font-size: 0.92rem; }
table.info-table th { background: var(--ink); color: #fff; font-weight: 600; }
table.info-table tr:nth-child(even) td { background: var(--gray-100); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--red); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto 26px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: 0.85rem; font-weight: 600; color: var(--gray-700); }
input, select, textarea {
  font-family: var(--font-body); font-size: 0.95rem; padding: 12px 14px;
  border: 1px solid var(--gray-200); border-radius: 8px; background: #fff; color: var(--gray-900);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); }
textarea { resize: vertical; min-height: 120px; }
.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 22px; font-size: 0.92rem; }
.alert-success { background: #e7f6ec; color: #1e6b3a; border: 1px solid #bfe6cb; }
.alert-error { background: #fdecea; color: #a3271b; border: 1px solid #f6c6c0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.72); }
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px;
  padding: 64px 24px 40px;
}
.footer-logo { height: 30px; filter: brightness(0) invert(1); margin-bottom: 14px; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer-col h4 { color: #fff; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-col a:hover { color: #fff; }
.footer-contact li { color: rgba(255,255,255,0.65); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 24px; }
.footer-bottom p { margin: 0; font-size: 0.82rem; color: rgba(255,255,255,0.5); text-align: center; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.tag {
  display: inline-block; background: var(--amber-light); color: var(--amber);
  font-size: 0.75rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px;
}
.prose { color: var(--gray-700); }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.4em; }
.prose h1, .prose h2, .prose h3 { margin: 1em 0 0.5em; }
.prose img { border-radius: 8px; margin: 0.5em 0; max-width: 100%; height: auto; }
.prose a { color: var(--red); text-decoration: underline; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; }
.prose table td, .prose table th { border: 1px solid var(--gray-200); padding: 8px 12px; }

/* ---------- Table overflow safety on small screens ---------- */
.table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-responsive table { min-width: 480px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 50px; }
  .hero-media { order: -1; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .main-nav {
    position: fixed; inset: 62px 0 0 0; background: #fff; transform: translateX(100%);
    transition: transform 0.25s ease; overflow-y: auto; border-top: 1px solid var(--gray-200);
    z-index: 150;
  }
  .main-nav.open { transform: translateX(0); }
  .nav-toggle { position: relative; z-index: 200; }
  .main-nav ul { flex-direction: column; align-items: flex-start; padding: 24px; gap: 4px; }
  .main-nav a { display: block; padding: 12px 0; width: 100%; }
  .nav-cta-mobile { display: block; margin-top: 12px; width: 100%; }
  .main-nav .nav-cta-mobile a.btn {
    display: flex; align-items: center; justify-content: center;
    width: 100%; padding: 13px 26px; font-size: 0.95rem; line-height: 1.3;
    border-radius: 999px; box-sizing: border-box;
  }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .footer-inner { grid-template-columns: 1fr; padding: 48px 24px 32px; }
  .hero-media { aspect-ratio: 16 / 11; min-height: 260px; max-width: 100%; }
}
@media (max-width: 480px) {
  .proof-grid { grid-template-columns: 1fr 1fr; gap: 16px; padding: 26px 20px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
}
