/* ==========================================================================
   Thai River Caviar — shared stylesheet
   Brand tokens pulled from the logo (green) and product packaging
   (deep purple jelly, cream Fullgreen box). Edit tokens below to re-theme.
   ========================================================================== */

:root {
  /* Brand colors */
  --green-900: #123420;
  --green-800: #17492b;
  --green-700: #1e5c34;
  --green-600: #2c7a3f;   /* primary */
  --green-500: #3d9552;
  --green-400: #5cb26e;
  --green-100: #e6f4e8;
  --green-050: #f2f9f0;

  --purple-700: #4d1a63;
  --purple-600: #6a2382;  /* accent, from jelly packaging */
  --purple-100: #f1e6f7;

  --cream: #f8f3e6;       /* from Fullgreen packaging */
  --cream-deep: #efe6d0;
  --bg-page: #fbf7ee;     /* soft, organic off-white used site-wide */

  --ink: #17211a;
  --ink-soft: #47564b;
  --ink-faint: #7c8b7f;

  --white: #ffffff;
  --border: #e0e6de;
  --border-strong: #c7d3c5;

  --shadow-sm: 0 1px 3px rgba(18, 52, 32, 0.08);
  --shadow-md: 0 8px 24px rgba(18, 52, 32, 0.10);
  --shadow-lg: 0 20px 48px rgba(18, 52, 32, 0.14);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --container: 1160px;

  --font-th: "Noto Sans Thai", "Noto Sans", sans-serif;
  --font-en: "Poppins", "Noto Sans Thai", sans-serif;
}

/* ---------- reset ---------- */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-th);
  color: var(--ink);
  background: var(--bg-page);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.lang-en { font-family: var(--font-en); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
button { font: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }
@media (max-width: 720px) { section { padding: 56px 0; } }

.section-alt { background: var(--green-050); }
.section-dark {
  background: var(--green-900);
  color: var(--white);
}
.section-dark .ink-soft { color: rgba(255,255,255,0.72); }
.section-cream { background: var(--cream); }

/* ---------- headings & type ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--green-500);
  display: inline-block;
}
.section-dark .eyebrow, .section-dark .eyebrow::before { color: var(--green-400); background: var(--green-400); }

h1, .h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--green-900);
}
.section-dark h1 { color: var(--white); }

h2, .h2 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--green-900);
}
.section-dark h2 { color: var(--white); }

h3, .h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-800);
}
.section-dark h3 { color: var(--white); }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 62ch;
}
.section-dark .lede { color: rgba(255,255,255,0.8); }

p { color: var(--ink-soft); }
.section-dark p { color: rgba(255,255,255,0.8); }

.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green-600); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-700); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--green-800); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--green-600); color: var(--green-700); }
.btn-on-dark { background: var(--white); color: var(--green-800); }
.btn-on-dark:hover { background: var(--green-050); }
.btn-outline-on-dark { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline-on-dark:hover { border-color: var(--white); }
.btn-accent { background: var(--purple-600); color: var(--white); }
.btn-accent:hover { background: var(--purple-700); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 0.88rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251,247,238,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--green-900);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand-mark { width: 42px; height: 42px; flex-shrink: 0; }
.brand-word-th { display: block; font-size: 0.98rem; }
.brand-word-en { display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-links a {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--green-700); border-color: var(--green-500); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
}
.lang-btn {
  border: none;
  background: transparent;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-faint);
}
.lang-btn.active { background: var(--green-600); color: var(--white); }

.nav-toggle {
  display: none;
  border: 1px solid var(--border-strong);
  background: var(--white);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 480px) {
  .brand-word-en { display: none; }
  .brand-word-th { font-size: 0.86rem; white-space: nowrap; }
  .site-header .container { gap: 10px; }
}

@media (max-width: 1180px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .nav-links a { width: 100%; padding: 14px 24px; border-bottom: 1px solid var(--border); border-left: 3px solid transparent; }
  .nav-links a:hover, .nav-links a[aria-current="page"] { border-left-color: var(--green-500); background: var(--green-050); }
  .site-header.nav-open .nav-links { max-height: 420px; }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--green-050) 0%, var(--bg-page) 100%);
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 64px;
}
@media (max-width: 920px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 40px; }
}
.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}
.hero-media .gallery-carousel,
.hero-media .gallery-track,
.hero-media .gallery-slide {
  height: 100%;
}
.hero-media .gallery-track { border-radius: 0; box-shadow: none; }
.hero-media .gallery-slide { aspect-ratio: auto; }
.hero-media .gallery-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  margin-top: 0;
  z-index: 2;
}
.hero-media .gallery-dot { background: rgba(255,255,255,0.55); }
.hero-media .gallery-dot.active { background: #fff; }

.hero-badges {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 9px 16px 9px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green-800);
  box-shadow: var(--shadow-sm);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); flex-shrink: 0; }

/* ---------- image placeholders ---------- */
.ph-img {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--green-100), var(--cream));
  display: flex;
}
.ph-img img { width: 100%; height: 100%; object-fit: cover; }
.ph-img .ph-fallback {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 18px;
  color: var(--green-700);
  background: repeating-linear-gradient(135deg, var(--green-050), var(--green-050) 14px, var(--cream) 14px, var(--cream) 28px);
}
.ph-img.img-missing .ph-fallback { display: flex; }
.ph-img.img-missing img { display: none; }
.ph-fallback svg { width: 40px; height: 40px; opacity: 0.6; }
.ph-fallback .ph-label { font-weight: 700; font-size: 0.85rem; }
.ph-fallback code {
  font-size: 0.72rem;
  background: rgba(255,255,255,0.7);
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--ink-soft);
}
.ratio-1-1 { aspect-ratio: 1 / 1; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-3-4 { aspect-ratio: 3 / 4; }
.rounded { border-radius: var(--radius-md); overflow: hidden; }
.rounded-lg { border-radius: var(--radius-lg); overflow: hidden; }
.shadowed { box-shadow: var(--shadow-md); }

/* ---------- swipeable image gallery / carousel ---------- */
.gallery-carousel { position: relative; }
.gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 1 / 1;
}
.gallery-carousel.ratio-4-5 .gallery-slide { aspect-ratio: 4 / 5; }
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  color: var(--green-800);
  z-index: 2;
}
.gallery-arrow svg { width: 20px; height: 20px; }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width 0.2s, background 0.2s, border-radius 0.2s;
}
.gallery-dot.active { background: var(--green-600); width: 22px; border-radius: 4px; }

/* ---------- trust strip ---------- */
.trust-strip { padding: 34px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--white); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 22px;
  align-items: center;
}
.trust-item { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-weight: 700; font-size: 0.88rem; }
.trust-item svg { width: 26px; height: 26px; color: var(--green-600); flex-shrink: 0; }

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--green-100);
  color: var(--green-700);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; }

/* A card led by a small square photo beside its heading, so the image
   supports the text instead of dominating the card. */
.card-thumb { padding: 26px 26px 28px; }
.card-thumb .card-shot { position: relative; width: 92px; height: 92px;
  border-radius: 16px; overflow: hidden; margin-bottom: 18px; }
.card-thumb .card-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* at this size the fallback's filename label cannot fit; the icon alone is enough */
.card-thumb .ph-fallback .ph-label, .card-thumb .ph-fallback code { display: none; }
.card-thumb .card-body { padding: 0; }
.card-thumb .card-kicker { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--green-600); margin-bottom: 8px; }
.card-thumb h3 { margin: 0; font-size: 1.14rem; line-height: 1.45; }
.card-thumb .list-check { margin-top: 15px; gap: 11px; }
.card-thumb .list-check li { font-size: 0.92rem; line-height: 1.6; }
.card-thumb .card-source { margin-top: 17px; padding-top: 14px; border-top: 1px solid var(--border);
  font-size: 0.75rem; color: var(--ink-faint); line-height: 1.6; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; }

.stat-card { text-align: center; padding: 34px 20px; }
.stat-num { font-size: clamp(2rem, 3.4vw, 2.6rem); font-weight: 800; color: var(--green-700); line-height: 1; }
/* The subject leads, so a reader knows what the figure is before reading it. */
.stat-topic { font-size: 1.05rem; font-weight: 800; color: var(--ink); line-height: 1.3; margin-bottom: 7px; }
.stat-label { margin-top: 8px; font-size: 0.86rem; font-weight: 600; color: var(--ink-soft); }
.stat-note { margin-top: 6px; font-size: 0.76rem; color: var(--ink-faint); }

/* Two headline figures in one card, read top to bottom, with the
   accreditation line carried underneath so the numbers never travel alone. */
.stat-split { text-align: left; padding: 30px 30px 26px; }
.stat-split-row { padding: 16px 0; }
.stat-split-row + .stat-split-row { border-top: 1px solid rgba(20, 60, 35, 0.09); }
.stat-split .stat-num { display: flex; align-items: baseline; gap: 0; font-size: clamp(2.4rem, 4.4vw, 3.1rem); }
.stat-unit { margin-left: 7px; font-size: 1rem; font-weight: 700; color: var(--ink-soft); letter-spacing: 0.01em; }
.stat-split .stat-label { margin-top: 6px; font-size: 0.88rem; }
.stat-split .stat-topic { font-size: 1.02rem; margin-bottom: 4px; }
.stat-foot { margin-top: 18px; padding-top: 15px; border-top: 1px solid rgba(20, 60, 35, 0.09);
  font-size: 0.75rem; line-height: 1.65; color: var(--ink-faint); }
.stat-foot strong { color: var(--green-700); font-weight: 700; }
/* Stacked on a phone, the figures should arrive before the explanation. */
@media (max-width: 620px) {
  .stat-lead .stat-split { order: -1; margin-bottom: 8px; }
}

/* A tinted badge carrying the icon that labels a figure. */
.stat-ico { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-100); color: var(--green-700); }
.stat-ico svg { width: 26px; height: 26px; }
.stat-card .stat-ico { width: 60px; height: 60px; margin: 0 auto 16px; }
.stat-card .stat-ico svg { width: 32px; height: 32px; }

/* In the split card the badge sits beside its figure, not above it. */
.stat-split-row { display: flex; align-items: flex-start; gap: 15px; }
.stat-split-row > div:last-child { min-width: 0; }
.stat-split .stat-ico { margin: 4px 0 0; }


/* product cards */
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.product-card .ph-img { aspect-ratio: 2/3; height: auto; flex-shrink: 0; }
.product-card-body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product-tag {
  align-self: flex-start;
  background: var(--purple-100);
  color: var(--purple-700);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}
.product-card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}
.price-note { font-weight: 700; color: var(--green-700); font-size: 0.88rem; }

/* certificate document cards (real cert image placeholders) */
.cert-doc-grid { align-items: start; }
.cert-doc-card { display: flex; flex-direction: column; text-align: center; }
.cert-doc-card .ph-img { margin-bottom: 16px; flex-shrink: 0; }
.cert-doc-card h4 { font-weight: 800; color: var(--green-900); font-size: 0.98rem; margin-bottom: 4px; }
.cert-doc-card span { font-size: 0.82rem; color: var(--ink-faint); }

/* certification badges */
.cert-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}
.cert-badge .cert-icon {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--green-100); color: var(--green-700);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cert-badge .cert-icon svg { width: 24px; height: 24px; }
.cert-badge h4 { font-weight: 800; color: var(--green-900); font-size: 0.98rem; margin-bottom: 3px; }
.cert-badge span { font-size: 0.82rem; color: var(--ink-faint); }

/* A flag marks a destination we ship to, so it is drawn as a flag —
   a rounded rectangle with a hairline edge, not the round icon badge,
   which on this page reads as a seal of approval. */
.cert-badge .cert-flag {
  width: 46px; height: 32px; border-radius: 5px; flex-shrink: 0; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(20, 60, 35, 0.14), 0 1px 3px rgba(20, 60, 35, 0.12);
  background: #fff;
}
.cert-badge .cert-flag svg { display: block; width: 100%; height: 100%; }

.pending-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--purple-700);
  background: var(--purple-100);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-left: 8px;
  white-space: nowrap;
}

/* timeline (story) */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item { display: grid; grid-template-columns: 56px 1fr; gap: 22px; padding-bottom: 40px; position: relative; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green-600); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem; position: relative; z-index: 1; flex-shrink: 0;
}
.timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 27px; top: 56px; bottom: 0;
  width: 2px;
  background: var(--border-strong);
}
.timeline-body h3 { margin-bottom: 8px; }

/* quote / people block */
.quote-block {
  background: var(--green-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
}
@media (max-width: 720px) { .quote-block { grid-template-columns: 1fr; padding: 32px; } }
.quote-avatar { width: 88px; height: 88px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.quote-text { font-size: 1.15rem; font-style: italic; color: var(--white); line-height: 1.6; }
.quote-by { margin-top: 14px; font-style: normal; font-weight: 700; color: var(--green-400); font-size: 0.9rem; }

/* forms */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; gap: 16px; margin-bottom: 16px; }
.form-row.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .form-row.two { grid-template-columns: 1fr; } }
.field label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--green-900);
  margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font: inherit;
  font-size: 0.94rem;
  color: var(--ink);
  background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px var(--green-100);
}
.field textarea { resize: vertical; min-height: 110px; }
.choice-group { display: flex; flex-wrap: wrap; gap: 10px; }
.choice-chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 9px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.choice-chip input { accent-color: var(--green-600); }
.form-foot-note { font-size: 0.8rem; color: var(--ink-faint); margin-top: 14px; }

.contact-channels { display: grid; gap: 14px; }
.channel-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.channel-card .channel-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--green-100); color: var(--green-700);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.channel-card .channel-icon svg { width: 24px; height: 24px; }
.channel-card strong { display: block; color: var(--green-900); font-size: 0.95rem; }
.channel-card span { font-size: 0.86rem; color: var(--ink-faint); }
.channel-card { margin-left: auto; }
.channel-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }

.is-placeholder { opacity: 0.72; border-style: dashed !important; }
.channel-card.is-placeholder { cursor: default; }

.placeholder-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--purple-700);
  background: var(--purple-100);
  padding: 2px 9px;
  border-radius: var(--radius-pill);
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(120deg, var(--green-700), var(--green-900));
  border-radius: var(--radius-lg);
  padding: 56px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(255,255,255,0.85); }

/* section header */
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* video block */
.video-block {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/9;
  background: var(--green-900);
}
.video-block video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-fallback {
  position: absolute; inset: 0;
  display: none;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; color: var(--white); text-align: center; padding: 24px;
  background: linear-gradient(135deg, var(--green-800), var(--green-900));
}
.video-block.video-missing .video-fallback { display: flex; }
.video-block.video-missing video { display: none; }
.video-fallback svg { width: 48px; height: 48px; opacity: 0.85; }

/* ---------- vertical (9:16) video gallery — YouTube Shorts style ---------- */
.video-grid-vertical {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 780px) {
  .video-grid-vertical { grid-template-columns: 1fr; max-width: 320px; gap: 32px; }
}
.video-vertical {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--green-900);
}
.video-vertical iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-vertical .video-slot-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 20px;
  color: rgba(255,255,255,0.85);
  background: linear-gradient(135deg, var(--green-800), var(--green-900));
}
.video-vertical .video-slot-empty svg { width: 38px; height: 38px; opacity: 0.85; }
.video-vertical .video-slot-empty span { font-size: 0.85rem; font-weight: 700; }
.video-caption {
  margin-top: 12px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green-800);
}

/* footer */
.site-footer { background: var(--green-900); color: rgba(255,255,255,0.82); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 800; margin-bottom: 14px; }
.footer-brand .brand-mark { width: 38px; height: 38px; }
.site-footer h4 { color: var(--white); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { font-size: 0.92rem; color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: var(--white); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.8rem; color: rgba(255,255,255,0.55);
}

/* misc utility */
.mt-0 { margin-top: 0 !important; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.gap-8 { gap: 8px; }
.gap-14 { gap: 14px; }
.small { font-size: 0.85rem; }
.list-check { display: flex; flex-direction: column; gap: 12px; }
.list-check li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); }
.list-check svg { width: 20px; height: 20px; color: var(--green-600); flex-shrink: 0; margin-top: 2px; }

/* ---------- ingredient list (TA-TO jelly) ---------- */
.ingredient-list { display: flex; flex-direction: column; gap: 16px; }
.ingredient-item { display: flex; gap: 10px; align-items: flex-start; }
.ingredient-item svg { width: 18px; height: 18px; color: var(--purple-600); flex-shrink: 0; margin-top: 3px; }
.ingredient-item h4 { font-size: 0.95rem; font-weight: 800; color: var(--green-900); }
.ingredient-item p { font-size: 0.88rem; color: var(--ink-soft); margin-top: 2px; }

/* ---------- best-time-to-eat mini cards ---------- */
.usecase-tip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-050);
  color: var(--green-800);
  border: 1px solid var(--green-100);
  border-radius: var(--radius-pill, 999px);
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.usecase-tip svg { width: 16px; height: 16px; flex-shrink: 0; }
.usecase-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 620px) { .usecase-grid { grid-template-columns: 1fr; } }
.usecase-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
}
.usecase-card h4 { font-size: 0.92rem; font-weight: 800; color: var(--green-900); margin-bottom: 6px; }
.usecase-card p { font-size: 0.86rem; color: var(--ink-soft); }

/* ---------- spec table ---------- */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 0; font-size: 0.88rem; vertical-align: top; }
.spec-table th { color: var(--ink-faint); font-weight: 600; width: 38%; white-space: nowrap; }
.spec-table td { color: var(--ink-soft); }

/* ---------- nutrition facts strip ---------- */
.nutrition-strip {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.9;
}

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 18px; }
.faq-item h4 { font-size: 0.95rem; font-weight: 800; color: var(--green-900); margin-bottom: 4px; }
.faq-item p { font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- B2C size options ---------- */
.size-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 620px) { .size-grid { grid-template-columns: 1fr; } }
.size-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  text-align: center;
}
.size-card .size-label { font-size: 0.78rem; color: var(--ink-faint); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.size-card .size-weight { font-size: 0.9rem; font-weight: 700; color: var(--green-900); margin-top: 4px; }
.size-card .size-price { font-size: 1.15rem; font-weight: 800; color: var(--purple-600); margin-top: 6px; }

/* ---------- lab-tested badges ---------- */
.lab-badge-row { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 14px; }
.lab-badge { display: flex; align-items: center; gap: 12px; }
.lab-badge .lab-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-050);
  border: 1px solid var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--green-700);
}
.lab-badge .lab-badge-icon svg { width: 22px; height: 22px; }
.lab-badge strong { display: block; font-size: 0.88rem; color: var(--green-900); }
.lab-badge span { font-size: 0.8rem; color: var(--ink-faint); }

.breadcrumb-hero {
  padding: 46px 0 40px;
  background: var(--green-050);
  border-bottom: 1px solid var(--border);
}
.breadcrumb-hero .eyebrow { margin-bottom: 10px; }

.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--green-900);
  color: var(--white);
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 200;
  max-width: 90vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ==========================================================================
   The Green Journal — blog / article cards
   Copy one .journal-card block, swap the image/date/tag/title/excerpt/link
   text, and drop it into .journal-grid. Nothing else needs to change.
   ========================================================================== */
.journal-grid { align-items: stretch; }
.journal-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.journal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.journal-card .ph-img { aspect-ratio: 16/10; height: auto; flex-shrink: 0; }
.journal-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.journal-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.journal-tag {
  background: var(--green-100);
  color: var(--green-700);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}
.journal-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-faint);
}
.journal-card h3 {
  font-size: 1.08rem;
  line-height: 1.4;
  margin-bottom: 10px;
}
.journal-excerpt {
  font-size: 0.9rem;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.journal-readmore {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green-700);
  transition: gap .15s ease;
}
.journal-readmore svg { width: 16px; height: 16px; transition: transform .15s ease; }
.journal-card:hover .journal-readmore { gap: 10px; }
.journal-card:hover .journal-readmore svg { transform: translateX(2px); }

.journal-foot { margin-top: 44px; text-align: center; }

/* ---------- article callout / note box ---------- */
.callout {
  background: var(--green-050);
  border-left: 4px solid var(--green-600);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.callout strong { color: var(--green-800); }
.callout.callout-muted {
  background: var(--cream);
  border-left-color: var(--purple-600);
}

/* ---------- article body ordered steps ---------- */
.article-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 22px;
  color: var(--ink-soft);
  font-size: 1rem;
}
.article-steps li { padding-left: 4px; }

.nowrap { white-space: nowrap; }

.img-caption {
  max-width: 760px;
  margin: 12px auto 0;
  text-align: center;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

/* ---- Image lightbox: tap any document, chart or product photo to read it full size ---- */
.zoomable { cursor: zoom-in; }

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8, 24, 14, 0.92);
  display: none; align-items: center; justify-content: center;
  padding: 56px 16px 16px;
  overscroll-behavior: contain;
}
.lightbox.open { display: flex; }
.lightbox-stage {
  max-width: 100%; max-height: 100%;
  overflow: auto;                 /* zoomed state scrolls; pinch-zoom still works on top */
  -webkit-overflow-scrolling: touch;
  display: flex; align-items: center; justify-content: center;
}
.lightbox img {
  display: block;
  max-width: 100%; max-height: calc(100vh - 88px);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  cursor: zoom-in;
  background: #fff;
}
.lightbox.zoomed .lightbox-stage { align-items: flex-start; justify-content: flex-start; }
.lightbox.zoomed img { max-width: none; max-height: none; width: 1400px; cursor: zoom-out; border-radius: 0; }

/* a solid strip keeps the hint and close button legible over any document */
.lightbox::before {
  content: ""; position: fixed; top: 0; left: 0; right: 0; height: 58px;
  background: linear-gradient(180deg, rgba(8,24,14,0.96) 55%, rgba(8,24,14,0));
  pointer-events: none;
}
.lightbox-close, .lightbox-hint {
  position: fixed; color: #fff; font-family: var(--font-th), sans-serif; z-index: 1;
}
.lightbox-close {
  top: 12px; right: 14px;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35); background: rgba(255,255,255,0.08);
  font-size: 24px; line-height: 1; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-hint {
  top: 20px; left: 16px; font-size: 0.82rem; font-weight: 600;
  color: rgba(255,255,255,0.72); pointer-events: none;
}
@media (max-width: 640px) {
  .lightbox { padding: 52px 8px 8px; }
  .lightbox.zoomed img { width: 1100px; }
  .lightbox-hint { font-size: 0.75rem; }
}
