:root {
  --bg-cream: #faf8f3;
  --bg-card: #ffffff;
  --forest-900: #0f291c;
  --forest-800: #163a28;
  --forest-700: #1f4f37;
  --sage-100: #eaf2ed;
  --gold-600: #b88328;
  --gold-500: #d19b38;
  --text-main: #18221d;
  --text-muted: #526158;
  --border-subtle: #d8e1dc;
  --danger-700: #c5221f;
  --danger-bg: #fce8e6;
  --success-700: #188038;
  --radius-lg: 14px;
  --radius-md: 10px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  background-color: var(--bg-cream);
  color: var(--text-main);
  line-height: 1.6;
}

.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.skip-link:focus-visible {
  position: fixed;
  inset-block-start: 0.75rem;
  inset-inline-start: 0.75rem;
  z-index: 100;
  background: var(--gold-500);
  color: var(--forest-900);
  font-weight: 700;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

h1, h2, h3 {
  text-wrap: balance;
}

.hero p,
.grade-card p,
.why-card p,
.step-card p {
  text-wrap: pretty;
}

.container {
  max-inline-size: 1180px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Top Bar & Nav */
.site-header {
  background: var(--forest-900);
  color: #fff;
  position: sticky;
  inset-block-start: 0;
  z-index: 20;
  border-block-end: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
  flex-wrap: wrap;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
}

.brand-logo-img {
  inline-size: 52px;
  block-size: 52px;
  border-radius: 50%;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.45));
  transition: transform 0.25s ease;
}

.brand-logo-img:hover {
  transform: scale(1.06);
}

.brand-name {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.brand-sub {
  display: block;
  font-size: 0.75rem;
  color: #b7cec1;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.lang-switcher {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.09);
  padding: 0.22rem;
  border-radius: 8px;
  gap: 0.2rem;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: #dbe7e0;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
}

.lang-btn.active {
  background: var(--gold-500);
  color: var(--forest-900);
}

.panel-shortcut {
  color: #cfe0d6;
  font-size: 0.82rem;
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

/* Hero Section */
.hero {
  background: radial-gradient(circle at 80% 20%, #23583d 0%, var(--forest-900) 70%);
  color: #fff;
  padding-block: 4rem 3.5rem;
}

.hero-badge {
  display: inline-block;
  background: rgba(209, 155, 56, 0.18);
  color: #f3c878;
  border: 1px solid rgba(209, 155, 56, 0.45);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-block-end: 1.1rem;
}

.hero h1 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.18;
  max-inline-size: 24ch;
  margin-block: 0 1rem;
}

.hero p {
  font-size: 1.08rem;
  color: #d6e4dc;
  max-inline-size: 66ch;
  margin-block: 0 1.8rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-block-end: 2.6rem;
}

.btn-primary {
  background: var(--gold-500);
  color: var(--forest-900);
  border: 0;
  padding: 0.88rem 1.45rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background: #dfab48;
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.88rem 1.35rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  border-block-start: 1px solid rgba(255, 255, 255, 0.14);
  padding-block-start: 1.8rem;
}

.stat-item strong {
  display: block;
  font-size: 1.65rem;
  color: #f6ce82;
}

.stat-item span {
  font-size: 0.88rem;
  color: #c9ddd1;
}

/* Sections */
.section {
  padding-block: 3.6rem;
}

.section-alt {
  background: #f1f5f2;
}

.section-head {
  margin-block-end: 2rem;
}

.section-head h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  color: var(--forest-900);
  margin-block: 0 0.45rem;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
}

/* Product Grade Cards */
.grades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.35rem;
}

.grade-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  box-shadow: 0 6px 20px rgba(15, 41, 28, 0.04);
}

.grade-card.featured {
  border: 2px solid var(--forest-700);
  background: linear-gradient(180deg, #ffffff 0%, #f4f9f6 100%);
}

.grade-tag {
  align-self: flex-start;
  background: var(--sage-100);
  color: var(--forest-800);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
}

.grade-card h3 {
  margin: 0;
  color: var(--forest-900);
  font-size: 1.2rem;
}

.grade-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Responsive Table — Modern Web Guidance Compliant */
.table-wrapper {
  overflow: auto;
  max-inline-size: 100%;
  max-block-size: min(500px, 80vh);
  container-type: inline-size;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.table-wrapper table {
  inline-size: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: start;
}

.table-wrapper caption {
  padding: 1rem 1.2rem;
  font-weight: 700;
  color: var(--forest-900);
  text-align: start;
  background: var(--sage-100);
  border-block-end: 1px solid var(--border-subtle);
}

.table-wrapper thead {
  position: sticky;
  inset-block-start: 0;
  z-index: 1;
}

.table-wrapper thead th {
  background: var(--forest-800);
  color: #fff;
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.table-wrapper tbody th,
.table-wrapper tbody td {
  padding: 0.9rem 1rem;
  border-block-end: 1px solid var(--border-subtle);
  font-size: 0.92rem;
}

.table-wrapper tbody th {
  position: sticky;
  inset-inline-start: 0;
  background: #ffffff;
  color: var(--forest-900);
  font-weight: 700;
}

@container (width < 600px) {
  .table-wrapper table,
  .table-wrapper thead,
  .table-wrapper tbody,
  .table-wrapper tr,
  .table-wrapper th,
  .table-wrapper td {
    display: block;
  }

  .table-wrapper thead {
    display: none;
  }

  .table-wrapper tr {
    margin-block-end: 1rem;
    border: 1px solid var(--border-subtle);
  }

  .table-wrapper tbody th {
    position: sticky;
    inset-block-start: 0;
    z-index: 2;
    background: var(--sage-100);
  }

  .table-wrapper td:nth-child(2)::before {
    content: var(--label-2) ": ";
    font-weight: 700;
  }
  .table-wrapper td:nth-child(3)::before {
    content: var(--label-3) ": ";
    font-weight: 700;
  }
  .table-wrapper td:nth-child(4)::before {
    content: var(--label-4) ": ";
    font-weight: 700;
  }
  .table-wrapper td:nth-child(5)::before {
    content: var(--label-5) ": ";
    font-weight: 700;
  }
  .table-wrapper td:nth-child(6)::before {
    content: var(--label-6) ": ";
    font-weight: 700;
  }
}

/* Why Us Grid */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.25rem;
}

.why-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  border: 1px solid var(--border-subtle);
}

.why-card h3 {
  margin-block: 0 0.4rem;
  color: var(--forest-800);
}

.why-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* 4-Step Factory Process Strip */
.process-section {
  background: linear-gradient(180deg, #0f291c 0%, #163a28 100%);
  color: #fff;
}

.process-section .section-head h2 {
  color: #fff;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.15rem;
}

.step-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
}

.step-num {
  display: inline-block;
  color: #f6ce82;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-block-end: 0.45rem;
}

.step-card h3 {
  margin-block: 0 0.4rem;
  font-size: 1.08rem;
  color: #fff;
}

.step-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #d0e1d7;
}

/* Inquiry Form — Validate Input After Interaction Compliant */
.rfq-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2.4rem);
  box-shadow: 0 12px 32px rgba(15, 41, 28, 0.06);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.15rem;
}

.field {
  display: flex;
  flex-direction: column;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--forest-900);
  margin-block-end: 0.2rem;
}

.hint {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-block-end: 0.32rem;
}

.field input,
.field select,
.field textarea {
  padding: 0.72rem 0.85rem;
  border: 1.5px solid #c3d0c9;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: var(--text-main);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--forest-700);
  outline-offset: 1px;
}

.error-msg {
  display: none;
  color: var(--danger-700);
  font-size: 0.83rem;
  font-weight: 600;
  margin-block-start: 0.3rem;
}

.field input:user-invalid,
.field input.user-invalid-fallback {
  border-color: var(--danger-700);
  background-color: var(--danger-bg);
}

.field input:user-invalid + .error-msg,
.field input.user-invalid-fallback + .error-msg {
  display: block;
}

.field input:user-valid {
  border-color: var(--success-700);
}

/* Light-Dismiss Modal Dialog */
dialog {
  border: 0;
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  max-inline-size: 480px;
  inline-size: calc(100% - 2rem);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
}

dialog::backdrop {
  background-color: rgba(15, 41, 28, 0.6);
  backdrop-filter: blur(3px);
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-block-start: 1.25rem;
}

.btn-wa {
  background: #1fa855;
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 1.15rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.92rem;
}

.btn-secondary {
  background: #e7ede9;
  color: var(--forest-900);
  border: 0;
  padding: 0.75rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.site-footer {
  background: var(--forest-900);
  color: #bfd2c7;
  padding-block-start: 2.5rem;
  padding-block-end: 5.5rem;
  font-size: 0.9rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.ftr-logo-img {
  inline-size: 48px;
  block-size: 48px;
  border-radius: 50%;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.footer-link {
  color: #f3c878;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

.floating-wa {
  position: fixed;
  inset-block-end: 1.25rem;
  inset-inline-end: 1.25rem;
  z-index: 9999;
  background: #1fa855;
  color: #fff;
  text-decoration: none;
  padding: 0.72rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 10px 28px rgba(15, 41, 28, 0.32);
}

.floating-wa:hover {
  background: #198f47;
}

/* Hide Netlify badge & prevent any floating overlap */
[data-netlify-badge], .netlify-badge, #netlify-badge, [class*="netlify"], iframe[src*="netlify"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ==========================================
   RETAIL 100G SHOWCASE SECTION
   ========================================== */
.retail-showcase-section {
  padding-block: 4rem;
  background: linear-gradient(180deg, #f8fbf9 0%, #edf5f0 100%);
  border-block: 1px solid rgba(15, 41, 28, 0.08);
}

.retail-card {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 3.5rem;
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(15, 41, 28, 0.1);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 16px 40px rgba(15, 41, 28, 0.07);
}

@media (max-width: 900px) {
  .retail-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.8rem;
  }
}

.retail-img-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.retail-img {
  max-inline-size: 100%;
  block-size: auto;
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(15, 41, 28, 0.15);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.retail-img:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 45px rgba(15, 41, 28, 0.22);
}

.retail-badge {
  display: inline-block;
  background: #fdf5e6;
  color: #a06b00;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #f2d194;
  margin-block-end: 1rem;
}

.retail-features {
  list-style: none;
  padding: 0;
  margin-block: 1.4rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.retail-features li {
  font-size: 0.98rem;
  color: #24352b;
  line-height: 1.5;
}

.retail-features strong {
  color: #0d281a;
}

.brand-logo-img {
  inline-size: 52px;
  block-size: 52px;
  border-radius: 50%;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.45));
  transition: transform 0.25s ease;
}

.brand-logo-img:hover {
  transform: scale(1.06);
}

.btn-wa-direct {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: #25d366;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-wa-direct:hover {
  background: #1eb956;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
  color: #ffffff !important;
}

.retail-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
