/* ==========================================================================
   kmcoscraft — party supplies B2B landing (6 languages, single stylesheet)
   v3 E-E-A-T upgrade
   ========================================================================== */

:root {
  --ink: #0B1220;
  --ink-2: #1E293B;
  --body: #475569;
  --muted: #64748B;
  --line: #E2E8F0;
  --line-2: #EDF1F6;
  --bg: #FFFFFF;
  --soft: #F7F9FC;
  --soft-2: #F1F5F9;

  --rose: #E11D48;
  --rose-dark: #BE123C;
  --rose-soft: #FFF1F4;
  --gold: #B45309;
  --gold-soft: #FFF8ED;
  --pass: #15803D;
  --pass-soft: #F0FDF4;
  --wa: #25D366;
  --wa-dark: #1FBE5B;

  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, .06);
  --shadow: 0 4px 16px rgba(11, 18, 32, .07);
  --shadow-lg: 0 18px 48px rgba(11, 18, 32, .12);

  --wrap: 1140px;
  --gap: 28px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.22; letter-spacing: -.015em; font-weight: 800; }
h1 { font-size: clamp(1.85rem, 3.4vw, 2.7rem); }
h2 { font-size: clamp(1.55rem, 2.4vw, 2rem); }
h3 { font-size: 1.18rem; }
h4 { font-size: 1.02rem; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

main { padding: 0 22px; }
section, header, footer { max-width: var(--wrap); margin: 0 auto; }

/* ---------- geo notice ---------- */
#geo-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--gold-soft);
  border-bottom: 1px solid #F5E2C8;
  color: #7C4A03;
  font-size: .9rem;
  padding: 9px 22px;
}
#geo-bar[hidden] { display: none; }
#geo-bar #geo-text { flex: 1 1 auto; }
#geo-bar a { font-weight: 700; color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
#geo-bar #geo-close {
  background: none;
  border: 0;
  color: #B98A4E;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 6px;
}

/* ---------- nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 18px;
  height: 64px;
  padding: 0 22px;
}
.brand {
  font-weight: 800;
  color: var(--ink);
  font-size: 1.05rem;
  letter-spacing: -.01em;
}
.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink-2);
}
.nav-links a { position: relative; padding: 4px 0; }
.nav-links a:hover { color: var(--rose); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 7px 28px 7px 11px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
}
.cta-sm {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 700;
}
.cta-sm:hover { background: var(--ink-2); }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0 36px;
}
.kicker {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 14px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--rose), #F97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede {
  margin-top: 18px;
  font-size: 1.08rem;
  color: var(--ink-2);
  max-width: 56ch;
}
.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s ease, border-color .18s ease, transform .12s ease, box-shadow .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--rose); color: #fff; box-shadow: 0 4px 16px rgba(225, 29, 72, .22); }
.btn-primary:hover { background: var(--rose-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #C7D2E0; background: var(--soft); }
.hero-note {
  margin-top: 14px;
  font-size: .85rem;
  color: var(--muted);
}
.chips-row {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: var(--soft-2);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-2);
}
.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, .95);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  max-width: 80%;
}
.hero-badge-t { font-weight: 800; color: var(--ink); font-size: .92rem; }
.hero-badge-s { color: var(--muted); font-size: .78rem; margin-top: 2px; }

/* ---------- trust strip ---------- */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin: 24px auto 0;
  padding: 18px;
  background: var(--soft);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.trust-item { text-align: center; }
.trust-num { font-size: 1.45rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.trust-item .msg { font-size: .82rem; color: var(--muted); margin-top: 2px; }

/* ---------- generic section ---------- */
.section { padding: 56px 0; }
.sec-sub { margin-top: 12px; color: var(--body); max-width: 70ch; }

/* ---------- certs ---------- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.cert-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s ease, transform .18s ease;
}
.cert-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.cert-img {
  position: relative;
  display: block;
  background: var(--soft-2);
  aspect-ratio: 760 / 1074;
  overflow: hidden;
}
.cert-img img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.cert-pass {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--pass);
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(21, 128, 61, .25);
}
.cert-meta {
  margin: 0;
  padding: 18px;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 14px;
  font-size: .88rem;
}
.cert-meta dt { color: var(--muted); font-weight: 600; }
.cert-meta dd { color: var(--ink); margin: 0; font-weight: 600; }
.cert-scope {
  margin-top: 22px;
  padding: 12px 16px;
  background: var(--pass-soft);
  border-left: 3px solid var(--pass);
  color: #14532D;
  font-size: .88rem;
  border-radius: 6px;
}
.cert-note {
  margin-top: 16px;
  font-size: .9rem;
  color: var(--body);
  max-width: 70ch;
}
.cert-note b { color: var(--ink); }
.cta-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--rose);
  font-weight: 700;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
.cta-link:hover { color: var(--rose-dark); }

/* ---------- tables (materials, spec) ---------- */
.table-wrap {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}
.data-table th, .data-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.data-table thead th {
  background: var(--soft);
  color: var(--ink);
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: var(--soft-2); }
.data-table td:first-child { color: var(--ink); font-weight: 600; width: 28%; }
.data-table.two-col td:first-child { width: 36%; }
.table-foot {
  margin-top: 14px;
  font-size: .85rem;
  color: var(--muted);
}

/* ---------- factory ---------- */
.fac-feature {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: center;
  background: var(--soft);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.fac-feature img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 880 / 1001;
  object-fit: cover;
}
.fac-feature h3 { margin-bottom: 10px; }
.fac-feature-t p { color: var(--body); }
.fac-facts {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.fact { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.fact-k { font-size: .78rem; color: var(--muted); font-weight: 600; }
.fact-v { color: var(--ink); font-weight: 700; margin-top: 2px; font-size: .92rem; }
.fac-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.fac-tile {
  margin: 0;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.fac-tile img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.fac-tile figcaption {
  font-size: .82rem;
  color: var(--ink-2);
  padding: 8px 12px;
  font-weight: 600;
}
.fac-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    -45deg,
    var(--soft-2),
    var(--soft-2) 12px,
    #fff 12px,
    #fff 24px
  );
}
.ph-inner {
  padding: 14px;
  font-size: .82rem;
  color: var(--muted);
  text-align: center;
  font-weight: 600;
}
.fac-note {
  margin-top: 18px;
  font-size: .88rem;
  color: var(--muted);
}

/* ---------- products ---------- */
.band { margin-top: 40px; }
.band-head { margin-bottom: 16px; }
.band-head h3 { font-size: 1.15rem; color: var(--ink); }
.band-sub { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 14px;
}
.prod-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .18s ease, transform .18s ease;
}
.prod-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.prod-img {
  display: block;
  background: var(--soft-2);
  aspect-ratio: 760 / 449;
  overflow: hidden;
}
.prod-img img { width: 100%; height: 100%; object-fit: cover; }
.prod-body { padding: 14px; }
.prod-body h4 { font-size: .95rem; color: var(--ink); line-height: 1.35; }
.prod-moq { margin-top: 8px; font-size: .82rem; color: var(--muted); }
.prod-moq b { color: var(--rose); font-weight: 800; }

/* ---------- buyers ---------- */
.buyer-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.buyer {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.buyer h3 { font-size: 1rem; color: var(--ink); }
.buyer p { color: var(--body); margin-top: 8px; font-size: .92rem; }

/* ---------- why ---------- */
.why-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.why {
  padding: 20px;
  background: var(--soft);
  border-left: 3px solid var(--rose);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.why h3 { font-size: 1rem; color: var(--ink); }
.why p { color: var(--body); margin-top: 8px; font-size: .92rem; }

/* ---------- FAQ ---------- */
.faq-list {
  margin-top: 28px;
  display: grid;
  gap: 12px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
  position: relative;
  padding-right: 30px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--muted);
  font-weight: 400;
  line-height: 1;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p {
  margin-top: 10px;
  color: var(--body);
  font-size: .94rem;
}

/* ---------- byline ---------- */
.byline {
  margin: 24px auto;
  padding: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  gap: 16px;
  align-items: center;
}
.by-avatar {
  flex: none;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--rose), #F97316);
  color: #fff;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.by-name { font-weight: 800; color: var(--ink); font-size: .95rem; }
.by-text { color: var(--body); font-size: .88rem; margin-top: 4px; }

/* ---------- final cta ---------- */
.final-cta {
  margin: 56px auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 40px;
  background: linear-gradient(135deg, #0B1220 0%, #1E293B 100%);
  border-radius: var(--radius-lg);
  color: #fff;
}
.final-cta h2 { color: #fff; }
.final-cta p { color: rgba(255, 255, 255, .82); margin-top: 12px; }
.final-cta .hero-cta { margin-top: 22px; }
.final-cta .btn-primary { background: var(--wa); color: #04331A; box-shadow: 0 4px 16px rgba(37, 211, 102, .28); }
.final-cta .btn-primary:hover { background: var(--wa-dark); }
.cta-note { color: rgba(255, 255, 255, .65); font-size: .85rem; }
.final-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.final-card h3 {
  color: #fff;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.final-card li {
  position: relative;
  padding: 8px 0 8px 24px;
  color: rgba(255, 255, 255, .9);
  font-size: .92rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.final-card li:last-child { border-bottom: 0; }
.final-card li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--wa);
  font-weight: 800;
}

/* ---------- footer ---------- */
.site-foot {
  margin: 56px auto 0;
  padding: 36px 22px 24px;
  border-top: 1px solid var(--line);
  background: var(--soft);
}
.foot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: var(--wrap);
  margin: 0 auto;
}
.foot-col h4 {
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 12px;
}
.foot-col li { padding: 4px 0; color: var(--body); font-size: .92rem; }
.foot-lang {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 24px;
  max-width: var(--wrap);
  margin-left: auto;
  margin-right: auto;
  font-size: .85rem;
  color: var(--muted);
}
.foot-desc {
  max-width: var(--wrap);
  margin: 18px auto 0;
  color: var(--body);
  font-size: .88rem;
}
.foot-legal {
  max-width: var(--wrap);
  margin: 8px auto 0;
  color: var(--muted);
  font-size: .82rem;
}
.foot-base {
  max-width: var(--wrap);
  margin: 14px auto 0;
  color: var(--muted);
  font-size: .82rem;
}

/* ---------- floating whatsapp ---------- */
.fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 54px;
  height: 54px;
  background: var(--wa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .35);
  z-index: 80;
  transition: transform .18s ease, background .18s ease;
}
.fab:hover { background: var(--wa-dark); transform: scale(1.05); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; gap: 32px; }
  .hero-card { aspect-ratio: 4 / 3; max-height: 320px; }
  .trust-strip { grid-template-columns: repeat(3, 1fr); }
  .cert-grid { grid-template-columns: 1fr; }
  .fac-feature { grid-template-columns: 1fr; }
  .fac-feature img { aspect-ratio: 4 / 3; }
  .fac-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .buyer-grid, .why-grid { grid-template-columns: 1fr; }
  .final-cta { grid-template-columns: 1fr; padding: 28px; }
  .foot-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  main { padding: 0 16px; }
  section { padding: 40px 0; }
  .site-nav { padding: 0 16px; height: 56px; gap: 8px; }
  .nav-right { gap: 6px; }
  .lang { padding: 6px 24px 6px 8px; font-size: .8rem; }
  .cta-sm { padding: 7px 10px; font-size: .8rem; }
  .hero { padding: 32px 0 20px; }
  .hero h1 { font-size: 1.6rem; }
  .hero .lede { font-size: .98rem; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); padding: 14px; }
  .trust-num { font-size: 1.2rem; }
  .prod-grid { grid-template-columns: 1fr; }
  .fac-grid { grid-template-columns: 1fr; }
  .data-table th, .data-table td { padding: 10px 12px; font-size: .86rem; }
  .data-table td:first-child { width: auto; }
  .final-cta { padding: 22px; }
  .final-cta h2 { font-size: 1.4rem; }
  .byline { padding: 14px; gap: 12px; }
  .by-avatar { width: 40px; height: 40px; font-size: .95rem; }
  .fab { width: 50px; height: 50px; right: 12px; bottom: 12px; }
}

/* ---------- print ---------- */
@media print {
  .site-nav, .fab, #geo-bar, .hero-cta, .cta-sm { display: none !important; }
  .cert-img, .fac-feature img { break-inside: avoid; }
}