/* ==========================================================
   BAGI Rayong website: shared stylesheet (used by every page)
   Style: modern and clean, with printing colours (CMYK)
   and colour-swatch cards. Red buttons match the BAGI logo.
   ========================================================== */

/* ---------- 1. Fonts (hosted on this site) ---------- */
@font-face {
  font-family: "Noto Sans Thai";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/noto-sans-thai-thai-400-normal.woff2") format("woff2");
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "Noto Sans Thai";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/noto-sans-thai-thai-600-normal.woff2") format("woff2");
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "Noto Sans Thai";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/noto-sans-thai-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Noto Sans Thai";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/noto-sans-thai-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 2. Colours and sizes (change them here only) ---------- */
:root {
  --paper: #ffffff;
  --mist: #f5f7fa;
  --ink: #1b2430;
  --steel: #5b6675;
  --line: #e4e8ee;
  --accent: #d5202a;
  --accent-dark: #b0161f;
  --accent-soft: #fdeeef;
  --draft: #fff1a8;

  /* Printing colours: cyan, magenta, yellow, and the three colours they make when overprinted */
  --cyan: #00a3e0;
  --magenta: #e6007e;
  --yellow: #ffd100;
  --green: #00a651;
  --orange: #f26b21;
  --violet: #5c3d99;
  --cmyk: linear-gradient(90deg, var(--cyan) 0 25%, var(--magenta) 25% 50%, var(--yellow) 50% 75%, var(--ink) 75% 100%);

  --wrap: 72rem;
  --gutter: 1.25rem;
  --section: 3.5rem;
  --radius: 14px;
  --radius-small: 10px;
  --shadow: 0 1px 2px rgba(27, 36, 48, 0.05), 0 6px 20px rgba(27, 36, 48, 0.07);
}

/* ---------- 3. Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans Thai", "Leelawadee UI", Thonburi, Tahoma, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
  overflow-wrap: break-word;
}
img,
svg {
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3 {
  margin: 0 0 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  text-wrap: balance;
}
h1 {
  font-size: clamp(1.75rem, 1.15rem + 2.6vw, 2.75rem);
  line-height: 1.3;
}
h2 {
  font-size: clamp(1.375rem, 1.1rem + 1.3vw, 2rem);
}
h3 {
  font-size: 1.125rem;
}
p,
ul,
ol,
dl {
  margin: 0 0 1rem;
}
a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
a:hover {
  color: var(--accent-dark);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
address {
  font-style: normal;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.skip-link {
  position: absolute;
  left: -999rem;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 1rem;
  z-index: 40;
}
.skip-link:focus {
  left: 0;
  color: var(--paper);
}
.lead {
  font-size: 1.125rem;
  max-width: 44rem;
  color: var(--steel);
}
.measure {
  max-width: 44rem;
}
.nb {
  white-space: nowrap;
}
@media (max-width: 21rem) {
  .nb {
    white-space: normal;
  }
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.5rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(27, 36, 48, 0.06);
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--paper);
}
.btn-large {
  min-height: 3.75rem;
  padding-inline: 1.75rem;
  font-size: 1.1875rem;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.more-link {
  font-weight: 600;
  color: var(--accent-dark);
  text-decoration: none;
}
.more-link:hover {
  text-decoration: underline;
}

/* ---------- 5. Header (same on every page) ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  min-width: 0;
}
.brand:hover {
  color: var(--ink);
}
.brand img {
  width: 50px;
  height: auto;
  flex: none;
}
.brand-name {
  font-weight: 600;
  line-height: 1.3;
}
.brand-name span {
  display: block;
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--steel);
}
.header-actions {
  display: none;
  align-items: center;
  gap: 1.25rem;
}
.header-phone {
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}
.menu-toggle {
  display: none;
  min-height: 2.75rem;
  padding: 0.25rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
}
.js .menu-toggle {
  display: inline-block;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0.75rem;
}
.site-nav a {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-small);
  text-decoration: none;
}
.site-nav a:hover {
  background: var(--mist);
  color: var(--ink);
}
.js .site-nav {
  display: none;
}
.js .site-nav.is-open {
  display: block;
}

/* ---------- 6. Home hero ---------- */
.hero {
  padding-block: 2.5rem 4.5rem;
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--mist) 100%);
}
.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.hero .lead {
  color: var(--ink);
}
.hero .btn-row {
  margin-top: 1.5rem;
}
.hero-note {
  display: inline-block;
  margin: 0.5rem 0 0;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-small);
  background: var(--paper);
  color: var(--steel);
  font-size: 1rem;
  box-shadow: 0 1px 2px rgba(27, 36, 48, 0.06);
}
.dieline {
  display: none;
  padding: 1.5rem;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.dieline .cut {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.75;
  stroke-linejoin: round;
}
.dieline .fold {
  fill: none;
  stroke: var(--steel);
  stroke-width: 1.25;
  stroke-dasharray: 7 5;
}
.dieline .face {
  fill: var(--accent-soft);
}
.dieline .mark {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
}

/* ---------- 7. Factory facts card ---------- */
.facts dl {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.5rem;
  margin: -2.5rem 0 0;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.facts dl > div {
  padding: 0.75rem 0;
}
.facts dt {
  font-size: 0.875rem;
  color: var(--steel);
}
.facts dd {
  margin: 0;
  font-weight: 600;
  line-height: 1.45;
}
.facts .wide {
  grid-column: 1 / -1;
}

/* ---------- 8. Sections ---------- */
.section {
  padding-block: var(--section);
}
.section-alt {
  background: var(--mist);
}
.section-head {
  max-width: 44rem;
  margin-bottom: 1.75rem;
}
.section-head p {
  color: var(--steel);
}
.sub-head {
  margin-top: 3rem;
}

/* Card grid for box types */
.fold-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}
.fold-grid > li {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: box-shadow 0.15s, border-color 0.15s;
}
.fold-grid > li:hover {
  border-color: transparent;
  box-shadow: var(--shadow);
}
.fold-grid p {
  margin-bottom: 0.75rem;
  color: var(--steel);
}
.fold-grid p:last-child {
  margin-bottom: 0;
}
.fold-grid a {
  font-weight: 600;
  color: var(--accent-dark);
  text-decoration: none;
}
.fold-grid a:hover {
  text-decoration: underline;
}
.en {
  display: block;
  font-weight: 400;
  font-size: 0.9375rem;
  color: var(--steel);
}

/* Two-column text block */
.split {
  display: grid;
  gap: 1.5rem 3rem;
}
.tick-list {
  list-style: none;
  margin: 0;
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.tick-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.tick-list li:last-child {
  border-bottom: 0;
}
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.chip-list li {
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  background: var(--mist);
}

/* Reasons */
.reasons {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.reasons li {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.reasons p {
  margin: 0;
  color: var(--steel);
}

/* Ordering steps (a real sequence, so it is numbered) */
.steps {
  display: grid;
  gap: 1.5rem 2rem;
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding-left: 3.5rem;
  counter-increment: step;
  color: var(--steel);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 600;
  line-height: 1;
}
.steps strong {
  display: block;
  color: var(--ink);
}

/* Questions and answers */
.faq {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.faq > div {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.faq h3 {
  margin: 0 0 0.35rem;
}
.faq p {
  margin: 0;
  color: var(--steel);
}

/* Service area */
.area-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.area-card p:last-child {
  margin-bottom: 0;
}

/* Closing call-to-action panel (same on every page) */
.cta {
  padding: var(--section) var(--gutter);
  color: var(--paper);
}
.cta > .wrap {
  max-width: calc(var(--wrap) - 2 * var(--gutter));
  padding: 2.25rem 1.5rem;
  border-radius: 24px;
  background: var(--ink);
}
.cta a {
  color: var(--paper);
}
.cta .btn {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--paper);
  box-shadow: none;
}
.cta .btn:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}
.cta .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
}
.cta .btn-primary:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}
.cta :focus-visible {
  outline-color: var(--paper);
}
.updated {
  padding-bottom: 1.5rem;
  font-size: 0.9375rem;
  color: var(--steel);
}
.updated p {
  margin: 0;
}

/* ---------- 9. Footer (same on every page) ---------- */
.site-footer {
  background: var(--mist);
  padding-block: 3rem 6rem;
  font-size: 1rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
}
.site-footer h2 {
  font-size: 1.0625rem;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li {
  padding: 0.2rem 0;
}
.site-footer nav a {
  text-decoration: none;
  color: var(--steel);
}
.site-footer nav a:hover {
  color: var(--accent-dark);
}
.footer-company strong {
  display: block;
}
.copyright {
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--steel);
  font-size: 0.9375rem;
}
.copyright a {
  margin-left: 1rem;
  color: var(--steel);
}
.link-button {
  display: none;
  margin-left: 1rem;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.js .link-button {
  display: inline;
}

/* ---------- 10. Phone bar fixed to the bottom (phones only) ---------- */
.mobile-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.5rem var(--gutter);
  background: var(--paper);
  box-shadow: 0 -2px 16px rgba(27, 36, 48, 0.1);
}
.mobile-bar a {
  display: grid;
  place-items: center;
  min-height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  font-weight: 600;
  text-decoration: none;
}
.mobile-bar a + a {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--paper);
}

/* ---------- 11. Draft markers: remove before the site goes live ---------- */
mark.draft {
  background: var(--draft);
  color: inherit;
  padding: 0 0.3em;
  border-radius: 4px;
}
.draft-photos {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.draft-photos li {
  display: grid;
  place-items: center;
  min-height: 11rem;
  padding: 1rem;
  border: 2px dashed #d9c75a;
  border-radius: var(--radius);
  background: var(--draft);
  text-align: center;
}

/* ---------- 12. Inner pages ---------- */
.breadcrumb {
  padding-top: 1rem;
  font-size: 0.9375rem;
  color: var(--steel);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--line);
}
.breadcrumb a {
  color: var(--steel);
}
.page-head {
  padding-block: 1.5rem 2.5rem;
}
.page-head .btn-row {
  margin-top: 1.5rem;
}
.block {
  padding-block: 2.5rem;
  border-top: 1px solid var(--line);
}
.block > h2,
.block > p,
.block > ul,
.block > ol {
  max-width: 46rem;
}
.block > .steps {
  max-width: none;
}
.block h3 {
  margin-top: 1.5rem;
}
.block .faq h3 {
  margin-top: 0;
}
.block li {
  margin-bottom: 0.35rem;
}
.jump-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}
.jump-list a {
  display: block;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: var(--mist);
  text-decoration: none;
}
.jump-list a:hover {
  background: var(--accent-soft);
}

/* Tables: scroll sideways inside their own box on small screens */
.table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
table {
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
  background: var(--paper);
}
th,
td {
  padding: 0.8rem 1.1rem;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
}
thead th {
  border-top: 0;
  background: var(--mist);
}
tbody tr:first-child th,
tbody tr:first-child td {
  border-top: 0;
}
thead + tbody tr:first-child th,
thead + tbody tr:first-child td {
  border-top: 1px solid var(--line);
}
tbody th {
  width: 30%;
  font-weight: 600;
}

/* Company details list */
.info-list {
  margin: 1.25rem 0 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.info-list > div {
  padding: 0.8rem 1.1rem;
  border-top: 1px solid var(--line);
}
.info-list > div:first-child {
  border-top: 0;
}
.info-list dt {
  font-size: 0.875rem;
  color: var(--steel);
}
.info-list dd {
  margin: 0;
  font-weight: 600;
}

/* Customer logo strip (full colour) */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.logo-grid li {
  display: grid;
  place-items: center;
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--paper);
}
.logo-grid img {
  width: 140px;
}

/* ---------- 13. Cookie bar (shown only when visitor counting is switched on) ---------- */
.cookie-bar {
  position: fixed;
  inset: auto 0.75rem 4.5rem 0.75rem;
  z-index: 15;
  display: grid;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 4px 28px rgba(27, 36, 48, 0.2);
}
.cookie-bar[hidden] {
  display: none;
}
.cookie-bar p {
  margin: 0;
  max-width: 46rem;
}
.cookie-bar .btn {
  min-width: 7rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- 14. Wider screens ---------- */
@media (min-width: 40rem) {
  .facts dl {
    grid-template-columns: repeat(3, 1fr);
  }
  .facts .wide {
    grid-column: auto;
  }
  .fold-grid,
  .reasons,
  .steps,
  .faq,
  .draft-photos {
    grid-template-columns: 1fr 1fr;
  }
  .logo-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
  .info-list > div {
    display: grid;
    grid-template-columns: 14rem 1fr;
    gap: 1rem;
    align-items: baseline;
  }
  .cta > .wrap {
    padding: 3rem;
  }
}

@media (min-width: 60rem) {
  :root {
    --section: 5rem;
    --gutter: 2rem;
  }
  .site-header {
    position: sticky;
    top: 0;
    z-index: 20;
  }
  .site-header > .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 2rem;
  }
  .header-top {
    display: contents;
  }
  .brand {
    padding-block: 0.75rem;
  }
  .header-actions {
    display: flex;
    order: 2;
    margin-left: auto;
  }
  .js .menu-toggle {
    display: none;
  }
  .site-nav,
  .js .site-nav {
    display: block;
    order: 3;
    flex-basis: 100%;
    margin-inline: -0.7rem;
    padding-bottom: 0.5rem;
  }
  .site-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0;
  }
  .site-nav a {
    padding: 0.4rem 0.7rem;
    font-size: 1rem;
  }
  .hero {
    padding-block: 4.5rem 7rem;
  }
  .hero-grid {
    grid-template-columns: 1.3fr 1fr;
    gap: 3.5rem;
  }
  .dieline {
    display: block;
    width: 100%;
  }
  .facts dl {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0 2rem;
    margin-top: -3.25rem;
    padding: 1rem 2rem;
  }
  .fold-grid,
  .steps,
  .draft-photos {
    grid-template-columns: repeat(3, 1fr);
  }
  .logo-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .split {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .page-head {
    padding-block: 2.5rem 3.5rem;
  }
  .site-footer {
    padding-bottom: 3rem;
  }
  .mobile-bar {
    display: none;
  }
  .cookie-bar {
    inset: auto 1.5rem 1.5rem auto;
    max-width: 30rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn,
  .fold-grid > li {
    transition: none;
  }
}

@media print {
  .mobile-bar,
  .menu-toggle,
  .site-nav,
  .cookie-bar {
    display: none;
  }
}

/* ---------- 15. Printing colours (CMYK bar, swatch cards, coloured steps) ---------- */

/* Colour bar across the very top of every page, like a printer's control strip */
.site-header::before {
  content: "";
  display: block;
  height: 6px;
  background: var(--cmyk);
}

/* Home hero: clean white so the colours stand out */
.hero {
  background: linear-gradient(180deg, var(--paper) 0%, var(--mist) 100%);
}
.dieline .ink-c {
  fill: var(--cyan);
}
.dieline .ink-m {
  fill: var(--magenta);
}
.dieline .ink-y {
  fill: var(--yellow);
}
.dieline .ink-k {
  fill: var(--ink);
}
.dieline .cut {
  stroke-width: 2;
}
.dieline .fold {
  stroke: var(--paper);
  stroke-width: 1.5;
}
.dieline .fold-flap {
  fill: none;
  stroke: var(--steel);
  stroke-width: 1.25;
  stroke-dasharray: 7 5;
}
.dieline .mark {
  stroke: var(--ink);
}

/* Box-type cards as colour swatches: a block of ink on top, the label below */
.fold-grid > li {
  --swatch: var(--cyan);
  padding: 0 0 1.5rem;
  overflow: hidden;
}
.fold-grid > li::before {
  content: "";
  display: block;
  height: 5rem;
  margin-bottom: 1.25rem;
  background: var(--swatch);
}
.fold-grid > li > * {
  margin-inline: 1.5rem;
}
.fold-grid > li:nth-child(6n + 2) {
  --swatch: var(--magenta);
}
.fold-grid > li:nth-child(6n + 3) {
  --swatch: var(--yellow);
}
.fold-grid > li:nth-child(6n + 4) {
  --swatch: var(--green);
}
.fold-grid > li:nth-child(6n + 5) {
  --swatch: var(--orange);
}
.fold-grid > li:nth-child(6n + 6) {
  --swatch: var(--violet);
}

/* Industry tags: a dot of ink before each */
.chip-list li {
  --dot: var(--cyan);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--paper);
  border: 1px solid var(--line);
}
.chip-list li::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--dot);
}
.chip-list li:nth-child(5n + 2) {
  --dot: var(--magenta);
}
.chip-list li:nth-child(5n + 3) {
  --dot: var(--yellow);
}
.chip-list li:nth-child(5n + 4) {
  --dot: var(--green);
}
.chip-list li:nth-child(5n + 5) {
  --dot: var(--orange);
}

/* Reasons: one ink colour per card */
.reasons li {
  border-top: 5px solid var(--cyan);
}
.reasons li:nth-child(4n + 2) {
  border-top-color: var(--magenta);
}
.reasons li:nth-child(4n + 3) {
  border-top-color: var(--yellow);
}
.reasons li:nth-child(4n + 4) {
  border-top-color: var(--ink);
}

/* Ordering steps: numbers in printing colours */
.steps li::before {
  background: var(--cyan);
  color: var(--paper);
}
.steps li:nth-child(6n + 2)::before {
  background: var(--magenta);
}
.steps li:nth-child(6n + 3)::before {
  background: var(--yellow);
  color: var(--ink);
}
.steps li:nth-child(6n + 4)::before {
  background: var(--green);
}
.steps li:nth-child(6n + 5)::before {
  background: var(--orange);
}
.steps li:nth-child(6n + 6)::before {
  background: var(--violet);
}

/* Inner pages: short colour bar above the main heading, coloured shortcut pills */
.page-head h1::before {
  content: "";
  display: block;
  width: 5.5rem;
  height: 8px;
  margin-bottom: 1.25rem;
  border-radius: 4px;
  background: var(--cmyk);
}
.jump-list a:hover {
  background: var(--yellow);
  color: var(--ink);
}

/* Closing panel and footer: colour bar along the top edge */
.cta > .wrap {
  position: relative;
  overflow: hidden;
}
.cta > .wrap::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 8px;
  background: linear-gradient(90deg, var(--cyan) 0 33.33%, var(--magenta) 33.33% 66.66%, var(--yellow) 66.66% 100%);
}
.table-wrap thead th {
  border-bottom: 3px solid var(--cyan);
}

/* ---------- 16. Layout pattern taken from the reference page ----------
   Mostly white with a very light tinted top section, navy section headings,
   large soft blue-tinted shadows, one navy contact panel, dark footer. */
:root {
  --heading: #233f8c;
  --navy: #264496;
  --brand-gradient: linear-gradient(120deg, #00a3e0 0%, #2b62c4 55%, #5c3d99 100%);
  --shadow: 0 10px 40px -4px rgba(19, 55, 109, 0.08), 0 8px 22px -6px rgba(19, 55, 109, 0.1);
  --radius: 12px;
  --radius-small: 8px;
}
h2 {
  color: var(--heading);
}

/* Home top section: very light tint, dark text, lots of white space */
.hero {
  background: linear-gradient(180deg, #e9f5fc 0%, #eef0fc 100%);
}

/* Inner pages: light tinted band behind the page heading */
.breadcrumb {
  max-width: none;
  padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  background: var(--mist);
}
.page-head {
  background: var(--mist);
}
.page-head + .wrap > .block:first-child {
  border-top: 0;
}

/* Closing contact panel */
.cta > .wrap {
  background: var(--navy);
}
.cta > .wrap::before {
  content: none;
}
.cta h2 {
  color: var(--paper);
}
.cta .btn-primary {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}
.cta .btn-primary:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}

/* Dark footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
}
.site-footer h2,
.site-footer strong {
  color: var(--paper);
}
.site-footer a,
.site-footer nav a,
.copyright a {
  color: rgba(255, 255, 255, 0.82);
}
.site-footer a:hover,
.site-footer nav a:hover {
  color: var(--yellow);
}
.copyright {
  border-top-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.65);
}
.site-footer :focus-visible {
  outline-color: var(--yellow);
}

/* Phones: two large logos per row, shorter colour blocks on the swatch cards */
@media (max-width: 39.99rem) {
  .logo-grid {
    grid-template-columns: 1fr 1fr;
  }
  .logo-grid img {
    width: 150px;
  }
  .fold-grid > li::before {
    height: 3.5rem;
  }
}

/* ---------- 17. "Page not found" page ---------- */
.error-code {
  margin: 0 0 0.5rem;
  font-size: clamp(4rem, 2rem + 10vw, 7rem);
  font-weight: 600;
  line-height: 1;
}
.error-code span:nth-child(1) {
  color: var(--cyan);
}
.error-code span:nth-child(2) {
  color: var(--magenta);
}
.error-code span:nth-child(3) {
  color: var(--yellow);
}
.error-code + h1::before {
  content: none;
}

/* ---------- 18. Languages: switcher row and Japanese fonts ---------- */
.lang-row {
  flex-basis: 100%;
  display: flex;
  justify-content: flex-end;
  padding-top: 0.4rem;
  font-size: 0.875rem;
}
.lang-switch {
  display: flex;
  gap: 0.25rem;
}
.lang-switch a {
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  color: var(--steel);
  text-decoration: none;
}
.lang-switch a:hover {
  background: var(--mist);
  color: var(--ink);
}
.lang-switch a[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
}
html[lang="ja"] body {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Noto Sans JP", "Noto Sans Thai", sans-serif;
  line-height: 1.85;
}
html[lang="ja"] h1,
html[lang="ja"] h2,
html[lang="ja"] h3 {
  line-height: 1.5;
  line-break: strict;
}
@media (min-width: 60rem) {
  .lang-row {
    order: 0;
  }
}

/* ---------- 19. Focus on "โรงงานผลิตกล่อง ระยอง" ----------
   The header and the home heading lead with what the business is;
   the company name sits clearly on the line below. */
.brand-name {
  font-size: 1.1875rem;
  line-height: 1.25;
}
.brand-name span {
  margin-top: 0.1rem;
  font-size: 0.875rem;
  color: var(--ink);
}
.hero h1 {
  font-size: clamp(2.25rem, 1.2rem + 4.6vw, 4rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.h1-sub {
  display: block;
  margin-top: 0.75rem;
  font-size: clamp(1.125rem, 0.95rem + 0.8vw, 1.5rem);
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--heading);
}
html[lang="ja"] .hero h1 {
  font-size: clamp(1.9rem, 1.1rem + 3.6vw, 3.25rem);
}
html[lang="ja"] h1,
html[lang="ja"] h2 {
  word-break: auto-phrase;
}

/* ---------- 20. Photos ---------- */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.25rem 0 1.5rem;
}
.gallery-1 {
  grid-template-columns: 1fr;
  max-width: 34rem;
}
.gallery figure {
  margin: 0;
}
.gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.gallery-product img {
  object-fit: contain;
  padding: 0.75rem;
}
.gallery-photo img {
  object-fit: cover;
  aspect-ratio: 3 / 2;
}
.gallery figcaption {
  margin-top: 0.4rem;
  font-size: 0.9375rem;
  color: var(--steel);
}
/* Box-type cards with a photo: thin ink bar on top, photo below it */
.fold-grid > li.has-photo::before {
  height: 8px;
  margin-bottom: 0;
}
.card-photo {
  display: block;
  width: calc(100% - 2rem);
  margin: 1rem 1rem 0.75rem;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}
.fold-grid > li > .card-photo {
  margin-inline: 1rem;
}
@media (min-width: 40rem) {
  .gallery-3,
  .gallery-4 {
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .gallery-photo.gallery-2 {
    max-width: 52rem;
  }
}

/* Home facts card now holds four facts: keep two per row on tablets */
@media (min-width: 40rem) and (max-width: 59.99rem) {
  .facts dl {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- 21. Home page box types as a sliding row ---------- */
.fold-grid.carousel {
  display: flex;
  gap: 1rem;
  margin: 0 -0.5rem 1.25rem;
  padding: 0.5rem 0.5rem 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.5rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.fold-grid.carousel > li {
  flex: 0 0 82%;
  scroll-snap-align: start;
}
.carousel-nav {
  display: none;
  justify-content: flex-end;
  gap: 0.5rem;
  margin: -0.75rem 0 0.5rem;
}
.js .carousel-nav {
  display: flex;
}
.carousel-btn {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(27, 36, 48, 0.06);
  cursor: pointer;
}
.carousel-btn:hover {
  border-color: var(--ink);
}
@media (min-width: 40rem) {
  .fold-grid.carousel > li {
    flex-basis: calc((100% - 1rem) / 2.2);
  }
}
@media (min-width: 60rem) {
  .fold-grid.carousel > li {
    flex-basis: calc((100% - 2rem) / 3.25);
  }
}

/* ---------- 22. Home page: printing and finishing as a swatch book ----------
   Each finish has a small sample chip drawn in CSS to suggest the effect. */
.finish-head {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.finish-head p {
  max-width: 40rem;
}
.ink-set {
  display: flex;
  align-items: center;
  gap: 0;
}
.ink {
  width: 3.25rem;
  height: 3.25rem;
  margin-right: -0.9rem;
  border-radius: 50%;
  mix-blend-mode: multiply;
}
.ink-c {
  background: var(--cyan);
}
.ink-m {
  background: var(--magenta);
}
.ink-y {
  background: var(--yellow);
}
.ink-k {
  background: var(--ink);
  mix-blend-mode: normal;
}
.ink-plus {
  margin: 0 0.75rem 0 1.6rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--steel);
}
.ink-chip {
  display: grid;
  grid-template-rows: 2.25rem auto;
  width: 5.5rem;
  border-radius: 6px;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}
.ink-chip span {
  background: var(--orange);
}
.ink-chip {
  padding-bottom: 0.3rem;
}
.ink-chip span {
  margin-bottom: 0.3rem;
}
.finish-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.finish {
  padding: 0.6rem 0.6rem 0.9rem;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  color: var(--steel);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.finish strong {
  display: block;
  margin: 0.6rem 0.25rem 0.1rem;
  color: var(--ink);
  font-size: 1rem;
}
.finish {
  padding-inline: 0.6rem;
}
.finish > strong ~ * {
  margin-inline: 0.25rem;
}
.chip {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #f3efe8;
}
.chip::after {
  content: "";
  position: absolute;
}
/* metallized board: silver sheet with a faint rainbow */
.finish-metal .chip {
  background: linear-gradient(115deg, rgba(0, 163, 224, 0.18), rgba(230, 0, 126, 0.14) 50%, rgba(255, 209, 0, 0.18)), linear-gradient(115deg, #b9c0ca, #f6f8fb 28%, #a9b1bd 50%, #eef1f5 72%, #b9c0ca);
}
/* hot foil: a gold band on paper */
.finish-foil .chip::after {
  inset: 34% 12%;
  border-radius: 4px;
  background: linear-gradient(100deg, #b07f24, #f7e28e 32%, #c8962d 55%, #fff3b8 76%, #b07f24);
}
/* embossing: a raised shape in the same paper colour */
.finish-emboss .chip::after {
  inset: 22% 36%;
  border-radius: 50%;
  background: #f3efe8;
  box-shadow: -3px -3px 6px #ffffff, 4px 4px 9px rgba(60, 50, 30, 0.28);
}
/* spot UV: a glossy spot on a matte dark surface */
.finish-spot .chip {
  background: #2c313a;
}
.finish-spot .chip::after {
  inset: 18% 34%;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 42%), #171b22;
}
/* gloss and matte: one colour, glossy on the left, flat on the right */
.finish-coat .chip {
  background: linear-gradient(105deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0) 30%) left / 50% 100% no-repeat, var(--cyan);
}
.finish-coat .chip::after {
  inset: 0 0 0 50%;
  background: rgba(255, 255, 255, 0.16);
  border-left: 2px solid var(--paper);
}
/* drip off: gloss and matte stripes side by side */
.finish-drip .chip {
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.26) 0 9px, rgba(255, 255, 255, 0) 9px 18px), #c2185b;
}
/* window patching: a clear window in a printed box */
.finish-window .chip {
  background: var(--yellow);
}
.finish-window .chip::after {
  inset: 20% 22%;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 6px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.45) 45%, rgba(255, 255, 255, 0.75));
}
/* OPP lamination: a film sheen across the surface */
.finish-opp .chip {
  background: linear-gradient(120deg, rgba(255, 255, 255, 0) 34%, rgba(255, 255, 255, 0.55) 48%, rgba(255, 255, 255, 0) 62%), var(--green);
}
@media (min-width: 40rem) {
  .finish-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}
@media (min-width: 60rem) {
  .finish-head {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 3rem;
  }
}

/* ---------- 23. Printing page: one sample card per finish, real photos together ---------- */
.finish-cards {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 0.5rem;
}
.finish-card {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.finish-card .chip {
  aspect-ratio: 1;
}
.finish-card h3 {
  margin: 0 0 0.35rem;
}
.finish-card p {
  margin: 0 0 0.35rem;
  color: var(--steel);
}
.finish-card p:last-child {
  margin-bottom: 0;
}
.finish-card strong {
  color: var(--ink);
}
.gallery-work figcaption {
  font-weight: 600;
  color: var(--ink);
}
@media (min-width: 40rem) {
  .finish-card {
    grid-template-columns: 8rem 1fr;
  }
  .gallery-work {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 60rem) {
  .finish-cards {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- 24. Chinese (Simplified) pages: use the Chinese fonts already on the visitor's device ---------- */
html[lang="zh-Hans"] body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", "Noto Sans Thai", sans-serif;
  line-height: 1.85;
}
html[lang="zh-Hans"] h1,
html[lang="zh-Hans"] h2,
html[lang="zh-Hans"] h3 {
  line-height: 1.5;
  line-break: strict;
}
html[lang="zh-Hans"] .hero h1 {
  font-size: clamp(2rem, 1.1rem + 4vw, 3.5rem);
}
.menu-toggle {
  white-space: nowrap;
  flex: none;
}

/* ---------- 25. Fixes from the full check ---------- */
/* Step numbers: dark text on the lighter inks so the number is easy to read */
.steps li::before,
.steps li:nth-child(6n + 4)::before,
.steps li:nth-child(6n + 5)::before {
  color: var(--ink);
}
.steps li:nth-child(6n + 2)::before,
.steps li:nth-child(6n + 6)::before {
  color: var(--paper);
}
/* Language links: a larger area to tap */
.lang-switch a {
  padding: 0.3rem 0.7rem;
}
