/* บริษัท ร่วมกันปลูก จำกัด
   ทิศทาง: สมุดบันทึกฤดูนาบนกระดาษครีม ผสมสีส้มทองและเขียวใบไม้แบบเพจแฟร์ดี
   สีหลักมาจากโลโก้ร่วมกันปลูก (เขียวเข้มบนครีม) สีแบรนด์สินค้าใช้เฉพาะในหน้าสินค้า */

:root {
  --cream: #F7F0DD;
  --paper: #FCF8EC;
  --ink: #142D0D;
  --forest: #0B3A22;
  --leaf: #5C8A47;
  --sage: #9DB877;
  --pale: #D5DCB2;
  --sun: #D8801F;
  --muted: #4B5B45;
  --line: rgba(20, 45, 13, .18);
  --line-light: rgba(247, 240, 221, .24);

  /* สีแบรนด์หมออ๋อง แฮมให้คงสีเดิมไว้ ส่วนสามยิ้มใช้สีเขียวของเว็บ */
  --moreong: #531C00;

  /* สีของช่องที่ยังรอข้อมูล ใช้เฉพาะตอนเป็นร่าง */
  --tbc: #FFE27A;
  --tbc-ink: #4A3600;
  --tbc-line: #B28B00;

  --display: "Anuphan", "Noto Sans Thai", sans-serif;
  --text: "Noto Sans Thai Looped", "Sarabun", "Thonburi", sans-serif;

  --step--1: clamp(0.83rem, 0.78rem + 0.29vw, 1.00rem);
  --step-0:  clamp(1.00rem, 0.93rem + 0.36vw, 1.20rem);
  --step-1:  clamp(1.20rem, 1.07rem + 0.63vw, 1.56rem);
  --step-2:  clamp(1.44rem, 1.26rem + 0.89vw, 1.95rem);
  --step-3:  clamp(1.73rem, 1.48rem + 1.24vw, 2.44rem);
  --step-4:  clamp(2.07rem, 1.73rem + 1.70vw, 3.05rem);
  --step-5:  clamp(2.49rem, 2.03rem + 2.31vw, 3.82rem);
  --step-hero: clamp(2.2rem, 1.1rem + 5vw, 4.8rem);
  --step-title: clamp(2.2rem, 1.4rem + 4.2vw, 4.8rem);

  --space-2xs: clamp(0.50rem, 0.46rem + 0.22vw, 0.63rem);
  --space-xs:  clamp(0.75rem, 0.68rem + 0.33vw, 0.94rem);
  --space-s:   clamp(1.00rem, 0.91rem + 0.43vw, 1.25rem);
  --space-m:   clamp(1.50rem, 1.37rem + 0.65vw, 1.88rem);
  --space-l:   clamp(2.00rem, 1.83rem + 0.87vw, 2.50rem);
  --space-xl:  clamp(3.00rem, 2.74rem + 1.30vw, 3.75rem);
  --space-2xl: clamp(4.00rem, 3.65rem + 1.74vw, 5.00rem);
  --space-3xl: clamp(5.00rem, 4.10rem + 4.40vw, 8.50rem);

  --gutter: clamp(1.25rem, 0.6rem + 3.2vw, 4rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--step-0);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* เนื้อกระดาษทั้งหน้า */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: .32;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35  0 0 0 0 .32  0 0 0 0 .22  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--sun); color: var(--ink); }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
.nb { white-space: nowrap; }

.wrap { width: min(100% - 2 * var(--gutter), 82rem); margin-inline: auto; }
[id] { scroll-margin-top: 5rem; }

.skip {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 100;
  background: var(--ink); color: var(--cream);
  padding: .5em 1em; text-decoration: none;
}
.skip:focus { top: .5rem; }

:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.business :focus-visible, .contact :focus-visible, .to-business :focus-visible { outline-color: var(--tbc); }

/* ---------- ช่องที่ยังรอข้อมูล ---------- */
.tbc {
  display: inline;
  background: var(--tbc);
  color: var(--tbc-ink);
  font-family: var(--text);
  font-size: var(--step--1);
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0;
  padding: .12em .5em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.ph {
  display: grid;
  place-content: center;
  gap: .25rem;
  min-height: 12rem;
  padding: var(--space-m);
  text-align: center;
  color: var(--tbc-ink);
  border: 2px dashed var(--tbc-line);
  background:
    repeating-linear-gradient(135deg, rgba(255, 226, 122, .55) 0 14px, rgba(255, 226, 122, .22) 14px 28px),
    var(--paper);
}
.ph span { font-family: var(--display); font-size: var(--step-1); font-weight: 500; line-height: 1.4; }
.ph small { font-size: var(--step--1); line-height: 1.6; }

/* ---------- แถบร่าง ---------- */
.draft-bar {
  background: var(--ink);
  color: var(--cream);
  font-size: var(--step--1);
  line-height: 1.7;
  text-align: center;
  padding: .55rem var(--gutter);
}

/* ---------- หัวเว็บ ---------- */
.site-header { background: var(--cream); border-bottom: 1px solid var(--line); }
.header-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "brand tools" "nav nav";
  align-items: center;
  gap: .2rem 1rem;
  padding-block: .7rem .1rem;
}
.brand-mark { grid-area: brand; display: inline-block; width: fit-content; }
.brand-mark img { width: clamp(7.5rem, 6rem + 6vw, 11rem); }
.header-tools { grid-area: tools; display: flex; align-items: center; gap: .6rem; }
.lang {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .3em .85em;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-family: var(--display);
  font-size: var(--step--1);
  font-weight: 500;
  text-decoration: none;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
@media (hover: hover) { .lang:hover { border-color: var(--ink); } }
.lang:active { color: var(--sun); }

.nav {
  grid-area: nav;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-inline: calc(-1 * var(--gutter));
  padding: .4rem var(--gutter) .7rem;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  font-family: var(--display);
  font-size: var(--step--1);
  font-weight: 500;
}
.nav::-webkit-scrollbar { display: none; }
.nav a { position: relative; text-decoration: none; padding-block: .35rem; }
.nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--sun);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
@media (hover: hover) { .nav a:hover::after { transform: scaleX(1); transform-origin: left; } }
.nav a:active { color: var(--sun); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

@media (min-width: 62rem) {
  .site-header {
    position: sticky; top: 0; z-index: 40;
    background: rgba(247, 240, 221, .92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
  .header-row {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand nav tools";
    column-gap: 2.5rem;
    padding-block: .6rem;
  }
  .nav { justify-content: flex-end; margin: 0; padding: 0; overflow: visible; gap: 1.9rem; }
}

/* ---------- ตัวอักษรร่วม ---------- */
.overline {
  font-family: var(--display);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: .14em;
  line-height: 1.6;
  color: var(--muted);
}
.overline--light { color: var(--pale); }

.section-title {
  font-family: var(--display);
  font-size: var(--step-title);
  font-weight: 200;
  line-height: 1.22;
  letter-spacing: -.01em;
}
.sub-title {
  font-family: var(--display);
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.4;
}
.sub-title--next { margin-top: var(--space-xl); }

.num {
  font-family: var(--display);
  font-weight: 200;
  font-size: var(--step-5);
  line-height: 1;
  color: var(--sun);
  font-variant-numeric: lining-nums;
}

/* ---------- ปุ่ม ---------- */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: .55em 1.7em;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-family: var(--display);
  font-size: var(--step-0);
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn-solid { background: var(--ink); color: var(--cream); }
.btn-line { background: transparent; color: var(--ink); }
.btn-sun { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.btn-small { min-height: 2.75rem; padding: .3em 1.15em; font-size: var(--step--1); }
@media (hover: hover) {
  .btn-solid:hover { background: var(--sun); border-color: var(--sun); color: var(--ink); transform: translateY(-2px); }
  .btn-line:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); }
  .btn-sun:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); transform: translateY(-2px); }
  .on-dark .btn-sun:hover { background: var(--cream); border-color: var(--cream); color: var(--ink); }
}
.btn:active { transform: translateY(1px); }

/* ---------- หน้าแรก 1. ข้อความต้อนรับ ---------- */
.hero { position: relative; padding-top: var(--space-l); overflow: hidden; }
.hero::before {
  /* พระอาทิตย์สีส้มทองหลังข้อความ */
  content: "";
  position: absolute;
  top: clamp(-6rem, -3.6rem - 3vw, -4.2rem);
  right: clamp(-4rem, -3vw, -1rem);
  width: clamp(9rem, 5rem + 20vw, 24rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sun);
  opacity: .92;
}
.hero-text { position: relative; z-index: 1; }
.hero-title {
  margin-block: var(--space-s) var(--space-m);
  font-family: var(--display);
  font-size: var(--step-hero);
  line-height: 1.22;
  letter-spacing: -.015em;
}
.hero-title > span { display: block; }
.hero-title .line-1 { font-weight: 200; }
.hero-title .line-2 { font-weight: 500; }
@media (min-width: 48rem) { .hero-title .part { display: block; } }
/* จอกว้างพอให้บรรทัดแรกอยู่บรรทัดเดียว ภาพผู้ผลิตจะขึ้นมาอยู่ในจอแรกมากขึ้น */
@media (min-width: 78rem) { .hero-title .part { display: inline; } }
.hero-lead {
  max-width: 28em;
  margin-bottom: var(--space-m);
  font-size: var(--step-1);
  line-height: 1.7;
  color: var(--muted);
}

/* บนมือถือให้ภาพเต็มความกว้างอยู่ระหว่างหัวข้อและข้อความแนะนำ */
.hero-strip {
  position: relative;
  margin-top: var(--space-l);
  border-top: 3px solid var(--ink);
}
.hero-strip img { width: 100%; height: auto; }
@media (max-width: 61.99rem) {
  .hero { display: grid; padding-block: var(--space-s) var(--space-l); }
  .hero-strip { grid-row: 2; margin-top: 0; }
  .hero-intro { grid-row: 3; padding-top: var(--space-s); }
  .hero .hero-title { margin-block: var(--space-xs) var(--space-s); }
}
@media (max-width: 47.99rem) and (max-height: 38rem) {
  .hero { padding-top: 0; }
  .hero-strip { grid-row: 1; margin-bottom: var(--space-s); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero::before { animation: sunrise 1.6s var(--ease) both; }
  @keyframes sunrise {
    from { transform: translateY(120px); opacity: 0; }
    to { transform: none; opacity: .92; }
  }
}

/* แถบคำขวัญ */
.ribbon {
  position: relative;
  background: var(--sun);
  color: var(--ink);
  padding-block: var(--space-l) calc(var(--space-l) + clamp(64px, 7vw, 92px));
}
.ribbon::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: clamp(64px, 7vw, 92px);
  background:
    linear-gradient(to bottom, var(--sun) 0%, transparent 40%, transparent 54%, var(--forest) 100%),
    linear-gradient(rgba(10, 51, 28, .26), rgba(10, 51, 28, .26)),
    url("assets/rice-field-divider.webp") center 58% / cover no-repeat;
  pointer-events: none;
}
.ribbon .wrap { display: grid; gap: var(--space-2xs); }
.slogan {
  font-family: var(--display);
  font-size: var(--step-3);
  font-weight: 300;
  line-height: 1.4;
}
.slogan strong { font-weight: 500; }

/* ---------- 2. สำหรับร้านค้าและองค์กร ---------- */
.business { background: var(--forest); color: var(--cream); padding-block: var(--space-3xl); }
.business-head { display: grid; gap: var(--space-s); }
.business-title {
  font-family: var(--display);
  font-size: var(--step-title);
  font-weight: 200;
  line-height: 1.24;
  letter-spacing: -.01em;
  max-width: 14em;
}
.business-lead { max-width: 40em; margin-top: var(--space-s); color: rgba(247, 240, 221, .86); }

.offers { display: grid; gap: var(--space-l) var(--space-xl); margin-top: var(--space-2xl); }
.offers li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: .35rem var(--space-xs);
  align-content: start;
  padding-top: var(--space-s);
  border-top: 1px solid var(--line-light);
}
.offers .num { grid-row: span 3; font-size: var(--step-4); padding-top: .2rem; }
.offers h3 { font-family: var(--display); font-size: var(--step-1); font-weight: 500; line-height: 1.45; }
.offers p { grid-column: 2; color: rgba(247, 240, 221, .78); line-height: 1.75; }
@media (min-width: 40rem) { .offers { grid-template-columns: 1fr 1fr; } }
@media (min-width: 70rem) { .offers { grid-template-columns: repeat(3, 1fr); } }

.business-photos { display: grid; gap: var(--space-s); margin-top: var(--space-2xl); }
.business-photos img { width: 100%; object-fit: cover; border-radius: 2px; }
.business-photos .shot-wide { aspect-ratio: 3 / 2; }
.business-photos .shot-square { aspect-ratio: 1; object-position: 50% 80%; }
@media (min-width: 48rem) { .business-photos { grid-template-columns: 3fr 2fr; } }

.business-foot { display: grid; gap: var(--space-s); margin-top: var(--space-2xl); }
.mail-line { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.mail-text { font-family: var(--display); font-size: var(--step-1); font-weight: 300; overflow-wrap: anywhere; }
.copy-btn {
  min-height: 2.75rem;
  padding: .3em 1em;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-family: var(--display);
  font-size: var(--step--1);
  font-weight: 500;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
@media (hover: hover) { .copy-btn:hover { background: var(--cream); color: var(--ink); } }
.copy-btn:active { transform: translateY(1px); }

/* ---------- 3. ความยั่งยืน (ESG) ---------- */
.esg { position: relative; padding-block: var(--space-3xl); overflow: hidden; }
.esg::before {
  content: "";
  position: absolute;
  top: 0; right: 6%;
  width: clamp(7rem, 4rem + 16vw, 19rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sun);
  transform: translateY(-50%);
}
.esg .wrap { position: relative; }
.esg-head { display: grid; gap: var(--space-s); padding-top: var(--space-l); }
.esg-lead { max-width: 38em; margin-top: var(--space-s); font-size: var(--step-1); line-height: 1.8; color: var(--muted); }

.timeline { margin-top: var(--space-2xl); }
.timeline-cap { font-family: var(--display); font-weight: 500; }
.timeline ol { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-m) var(--space-s); margin-top: var(--space-s); }
.timeline li { display: grid; gap: .3rem; padding-top: var(--space-xs); border-top: 3px solid var(--leaf); }
.year {
  font-family: var(--display);
  font-size: var(--step-5);
  font-weight: 200;
  line-height: 1.1;
  font-variant-numeric: lining-nums tabular-nums;
}
.who { color: var(--muted); line-height: 1.6; }
.source { margin-top: var(--space-s); font-size: var(--step--1); line-height: 1.8; color: var(--muted); }
@media (min-width: 60rem) { .timeline ol { grid-template-columns: repeat(4, 1fr); gap: var(--space-l); } }

.evidence { display: grid; gap: var(--space-2xl); margin-top: var(--space-2xl); }
.checks { display: grid; gap: .2rem; margin-top: var(--space-s); border-top: 3px solid var(--ink); }
.checks li { position: relative; padding: .7rem 0 .7rem 2rem; border-bottom: 1px solid var(--line); }
.checks li::before {
  content: "";
  position: absolute; left: .15rem; top: 1.35rem;
  width: 1rem; height: .55rem;
  border-left: 2.5px solid var(--leaf);
  border-bottom: 2.5px solid var(--leaf);
  transform: rotate(-45deg);
}
@media (min-width: 60rem) { .checks { grid-template-columns: 1fr 1fr; column-gap: var(--space-xl); } }

.certs { width: 100%; margin-top: var(--space-s); border-collapse: collapse; border-top: 3px solid var(--ink); }
.certs th, .certs td {
  padding: .8rem 1rem .8rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}
.certs thead th { font-size: var(--step--1); font-weight: 500; color: var(--muted); }
.certs tbody th { font-family: var(--display); font-weight: 500; }
.certs td { font-size: var(--step--1); }
@media (max-width: 47.99rem) {
  .certs thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .certs, .certs tbody, .certs tr, .certs th, .certs td { display: block; }
  .certs tr { padding-block: .8rem; border-bottom: 1px solid var(--line); }
  .certs th, .certs td { padding: .1rem 0; border: 0; }
  .certs td::before { content: attr(data-label) " "; color: var(--muted); }
}

.handover { margin-top: var(--space-2xl); display: grid; gap: var(--space-s); }
.handover-list li {
  padding-block: .8rem;
  border-top: 1px solid var(--line);
  font-family: var(--display);
  font-size: var(--step-2);
  font-weight: 300;
  line-height: 1.45;
}
.handover-list li:last-child { border-bottom: 1px solid var(--line); }

/* ---------- 4. เกี่ยวกับเรา ---------- */
.about { background: var(--paper); padding-block: var(--space-3xl); }
.about-grid { display: grid; gap: var(--space-l); }
.lead {
  margin-top: var(--space-s);
  font-family: var(--display);
  font-size: var(--step-3);
  font-weight: 300;
  line-height: 1.5;
}
.about-body { display: grid; gap: var(--space-s); align-content: start; margin-top: var(--space-m); color: var(--muted); }
@media (min-width: 60rem) {
  .about-grid { grid-template-columns: 7fr 5fr; gap: var(--space-2xl); align-items: start; }
}

/* รูปแบบกระดาษซ้อน */
.photo { position: relative; }
.photo::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 8% -3% auto 6%;
  height: 86%;
  background: var(--sage);
  transform: rotate(-2deg);
}
.photo img {
  position: relative; z-index: 1;
  width: 100%;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 10px 24px -14px rgba(20, 45, 13, .55);
}

.fair { margin-top: var(--space-3xl); display: grid; gap: var(--space-l); }
.belief { padding-top: var(--space-m); border-top: 2px solid var(--ink); }
.belief p {
  max-width: 34em;
  font-family: var(--display);
  font-size: var(--step-2);
  font-weight: 300;
  line-height: 1.6;
}
.fair-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-m) var(--space-s); }
.fair-list li { display: grid; gap: .5rem; padding-top: var(--space-xs); border-top: 3px solid var(--leaf); }
.fair-th { font-family: var(--display); font-size: var(--step-1); font-weight: 500; line-height: 1.4; }
@media (min-width: 60rem) { .fair-list { grid-template-columns: repeat(4, 1fr); gap: var(--space-l); } }

/* แถบพาไปอีกหน้า */
.go-band { display: block; text-decoration: none; padding-block: var(--space-xl); }
.go-band .wrap { position: relative; display: grid; gap: .4rem; padding-right: 3.5rem; }
.go-who { font-family: var(--display); font-size: var(--step-3); font-weight: 300; line-height: 1.35; }
.go-do { font-size: var(--step-0); line-height: 1.6; }
.go-band .arrow {
  position: absolute;
  right: 0; top: 50%;
  width: 2.6rem; height: 1.3rem;
  margin-top: -.65rem;
  fill: none; stroke: currentColor; stroke-width: 2;
  transition: transform .4s var(--ease);
}
@media (hover: hover) { .go-band:hover .arrow { transform: translateX(.5rem); } }
.to-shop { background: var(--sage); color: var(--ink); }
.to-business { background: var(--forest); color: var(--cream); }
.to-business .arrow { stroke: var(--sun); }
.go-band:active .go-who { text-decoration: underline; }

/* ---------- 5. ติดต่อเรา ---------- */
.contact { background: var(--ink); color: var(--cream); padding-block: var(--space-3xl) var(--space-2xl); }
.contact-grid { display: grid; gap: var(--space-xl); }
.contact-title {
  font-family: var(--display);
  font-size: var(--step-hero);
  font-weight: 200;
  line-height: 1.2;
  letter-spacing: -.015em;
}
.contact-company { margin-top: var(--space-s); font-family: var(--display); font-size: var(--step-2); font-weight: 500; line-height: 1.4; }
.contact-list { margin-top: var(--space-m); }
.contact-list div {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: var(--space-s);
  padding-block: .7rem;
  border-top: 1px solid var(--line-light);
}
.contact-list div:last-child { border-bottom: 1px solid var(--line-light); }
.contact-list dt { color: var(--pale); }
.contact-list a { text-underline-offset: .2em; }
.quote-box {
  display: grid;
  gap: var(--space-s);
  align-content: start;
  padding: var(--space-l);
  background: var(--forest);
  border-top: 4px solid var(--sun);
}
.quote-box h3 { font-family: var(--display); font-size: var(--step-3); font-weight: 300; line-height: 1.35; }
.quote-box p { color: rgba(247, 240, 221, .82); }
@media (min-width: 60rem) { .contact-grid { grid-template-columns: 1fr 1fr; gap: var(--space-2xl); align-items: end; } }

/* ---------- ท้ายเว็บ ---------- */
.site-footer { background: var(--ink); color: var(--cream); padding-block: var(--space-l) var(--space-xl); }
.footer-row { display: grid; gap: var(--space-m); padding-top: var(--space-l); border-top: 1px solid var(--line-light); }
.footer-logo { width: clamp(11rem, 8rem + 12vw, 17rem); filter: brightness(0) invert(.94) sepia(.25); }
.footer-brands { display: flex; flex-wrap: wrap; gap: .3rem 1.6rem; font-family: var(--display); font-size: var(--step-1); font-weight: 300; }
.footer-links { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; font-size: var(--step--1); }
.footer-links a { text-underline-offset: .2em; }
.footer-copy { font-size: var(--step--1); color: var(--pale); }
@media (min-width: 60rem) {
  .footer-row { grid-template-columns: 1fr auto; align-items: end; }
  .footer-logo { grid-row: span 3; }
  .footer-brands, .footer-links, .footer-copy { justify-self: end; }
}

/* ---------- หน้าสินค้า ---------- */
.shop-hero { position: relative; padding-block: var(--space-xl) var(--space-2xl); overflow: hidden; }
.shop-hero .wrap { display: grid; gap: var(--space-xl); align-items: center; }
.shop-hero .hero-title { font-size: clamp(2.2rem, 1.3rem + 3vw, 3.6rem); }
@media (min-width: 60rem) { .shop-hero .wrap { grid-template-columns: 6fr 5fr; gap: var(--space-2xl); } }

/* รูปสินค้าสามใบวางซ้อนแบบรูปถ่ายบนโต๊ะ */
.fan { position: relative; width: 100%; max-width: 34rem; margin-inline: auto; aspect-ratio: 5 / 4; }
.fan img {
  position: absolute;
  width: 44%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: .4rem solid var(--paper);
  border-radius: 2px;
  box-shadow: 0 14px 28px -16px rgba(20, 45, 13, .6);
}
.fan img:nth-child(1) { left: 2%; top: 12%; transform: rotate(-6deg); }
.fan img:nth-child(2) { left: 28%; top: 2%; z-index: 2; transform: rotate(1.5deg); }
.fan img:nth-child(3) { right: 2%; top: 14%; transform: rotate(7deg); }

.brand-jumps { margin-top: var(--space-m); }
.brand-jumps p { font-weight: 600; }
.brand-jumps ul { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.brand-jumps a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-underline-offset: .25em;
}
.brand-order { margin-top: var(--space-m); }
.brand-block { --brand: var(--forest); padding-block: var(--space-2xl); }
.brand--moreong { --brand: var(--moreong); }
.brand-block + .brand-block { padding-top: 0; }
.brand-bar {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  padding: var(--space-s) var(--space-m);
  background: var(--brand);
  color: var(--cream);
  border-radius: 2px;
}
.brand-bar h2 { font-family: var(--display); font-size: var(--step-4); font-weight: 500; line-height: 1.25; }
.tagline { line-height: 1.6; color: rgba(247, 240, 221, .86); }

.logo-slot {
  flex: none;
  width: 4.75rem; height: 4.75rem;
  display: grid; place-items: center;
  overflow: hidden;
  background: #fff;
  border-radius: 4px;
}
.logo-slot img { width: 100%; height: 100%; object-fit: contain; }
.logo-slot--round { border-radius: 50%; }
.logo-slot--wordmark { width: auto; height: auto; background: none; border-radius: 0; }
.logo-slot--wordmark img { width: auto; height: 3.75rem; }
@media (min-width: 48rem) { .logo-slot--wordmark img { height: 6rem; } }
.logo-slot--empty {
  padding: .35rem;
  text-align: center;
  font-size: .72rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--tbc-ink);
  background: var(--tbc);
  border: 2px dashed var(--tbc-line);
}

.brand-split { display: grid; gap: var(--space-l); margin-top: var(--space-l); }
.brand-split > .wide-shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; }
@media (min-width: 60rem) { .brand-split { grid-template-columns: 7fr 5fr; gap: var(--space-2xl); align-items: start; } }
.brand-side { display: grid; align-content: start; }

.products li {
  display: grid;
  gap: .15rem .9rem;
  padding-block: .75rem;
  border-top: 1px solid var(--line);
}
.products li:first-child { border-top: 3px solid var(--brand); }
.products li:last-child { border-bottom: 1px solid var(--line); }
.p-name { font-family: var(--display); font-size: var(--step-1); font-weight: 500; line-height: 1.45; }
.p-size { color: var(--muted); line-height: 1.6; }
.products .tbc { justify-self: start; }
@media (min-width: 40rem) {
  .products li { grid-template-columns: 1fr auto; align-items: baseline; }
  .products .tbc { grid-column: 1 / -1; }
}

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-l) var(--space-s); margin-top: var(--space-l); }
@media (min-width: 48rem) { .cards { grid-template-columns: repeat(3, 1fr); gap: var(--space-l) var(--space-m); } }
@media (min-width: 72rem) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card { display: grid; gap: .5rem; align-content: start; }

/* สินค้าหลักของหมออ๋องกว้างสองช่อง แถวของการ์ดจึงเต็มทุกแถว */
.cards { container-type: inline-size; }
.card--feature { grid-column: 1 / -1; }
.cards .card--feature img { aspect-ratio: 16 / 9; }
@media (min-width: 72rem) {
  .card--feature { grid-column: span 2; }
  .cards .card--feature img { aspect-ratio: auto; height: calc((100cqw - 3 * var(--space-m)) / 4 * 1.25); }
}
.card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
/* ช่องรูปสินค้าที่ยังไม่มีรูปถ่ายจริง แทนด้วย <img> เมื่อได้รูป */
.card-photo-none {
  aspect-ratio: 4 / 5;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.card h3 {
  padding-top: .55rem;
  border-top: 3px solid var(--brand);
  font-family: var(--display);
  font-size: var(--step-1);
  font-weight: 500;
  line-height: 1.4;
}
.card p { font-size: var(--step--1); line-height: 1.6; color: var(--muted); }

.facts {
  margin-top: var(--space-l);
  padding: var(--space-m);
  background: var(--paper);
  border-left: 4px solid var(--brand);
}
.facts h3 { font-family: var(--display); font-size: var(--step-1); font-weight: 500; line-height: 1.4; }
.facts ul { margin-top: var(--space-xs); display: grid; gap: .5rem; }
.facts li { padding-left: 1.2rem; position: relative; line-height: 1.75; }
.facts li::before {
  content: "";
  position: absolute; left: 0; top: .78em;
  width: .5rem; height: .5rem;
  border-radius: 50%;
  background: var(--brand);
}
.facts .source { margin-top: .3rem; }
.note { margin-top: var(--space-m); max-width: 46em; color: var(--muted); }
.note a { text-underline-offset: .2em; }

.rice-study { padding-block: var(--space-l); background: var(--paper); }
.rice-study .wrap { display: grid; gap: var(--space-xs); }
.rice-study p { max-width: 66ch; }
.buy { background: var(--paper); padding-block: var(--space-3xl); border-top: 1px solid var(--line); }
.buy-grid { display: grid; gap: var(--space-xl); }
.buy-main { display: grid; gap: var(--space-m); justify-items: start; align-content: start; }
.btn-line-app { background: #06C755; border-color: #06C755; color: #062B14; min-height: 3.6rem; font-size: var(--step-1); }
@media (hover: hover) { .btn-line-app:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); transform: translateY(-2px); } }
.channels { margin-top: var(--space-xs); }
.channels li {
  display: grid;
  gap: .1rem;
  padding-block: .7rem;
  border-top: 1px solid var(--line);
  justify-items: start;
}
.channels li:last-child { border-bottom: 1px solid var(--line); }
.channels a {
  font-family: var(--display);
  font-size: var(--step-3);
  font-weight: 300;
  line-height: 1.35;
  text-decoration: none;
  background: linear-gradient(var(--sun), var(--sun)) no-repeat left bottom / 0 2px;
  transition: background-size .4s var(--ease), color .25s var(--ease);
}
@media (hover: hover) { .channels a:hover { background-size: 100% 2px; } }
.channels a:active { color: var(--sun); }
.buy-notes { display: grid; gap: .2rem; }
.buy-notes li { padding-block: .7rem; border-top: 1px solid var(--line); }
.buy-notes li:last-child { border-bottom: 1px solid var(--line); }
.buy-notes strong { display: block; font-family: var(--display); font-size: var(--step-1); font-weight: 500; line-height: 1.4; }
@media (min-width: 60rem) { .buy-grid { grid-template-columns: 5fr 4fr 3fr; gap: var(--space-2xl); } }

/* ---------- เผยเนื้อหาตอนเลื่อนถึง ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- ฉบับภาษาอังกฤษ: คำยาวกว่าภาษาไทย หัวข้อใหญ่จึงเล็กลงหนึ่งขั้น ---------- */
:lang(en) .hero-title { font-size: clamp(2rem, 1.1rem + 3.8vw, 4.2rem); }
:lang(en) .shop-hero .hero-title { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.4rem); }
:lang(en) .section-title, :lang(en) .business-title { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.8rem); }
:lang(en) .contact-title { font-size: clamp(2.2rem, 1.3rem + 4.4vw, 4.6rem); }

/* ---------- ตอนสั่งพิมพ์หรือบันทึกเป็น PDF: แสดงทุกส่วนครบ ไม่ต้องเลื่อนหน้าก่อน และคงสีพื้นไว้ให้ตัวหนังสือสีอ่อนยังอ่านออก ---------- */
@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body::before, .skip, .nav, .draft-bar { display: none !important; }
  .site-header { position: static !important; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .js .reveal, .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .card, .brand-bar, .facts, .products li, figure, img { break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; }
}
