/* ==========================================================================
   Jirakorn Co., Ltd. — Design System
   Brand green sampled from logo: #549534 (primary) / #B8DA89 (sage)
   ========================================================================== */

:root {
  /* ---- Color: brand ---- */
  --color-primary: #549534;        /* logo green — large text, icons, borders */
  --color-primary-dark: #3D6E27;   /* AA-safe on white — body links, buttons */
  --color-primary-darker: #2C5219; /* hover / pressed */
  --color-sage: #B8DA89;           /* logo subtitle green — accents, tags */
  --color-sage-light: #EAF3DD;     /* tinted section backgrounds */
  --color-sage-dark: #7FA855;

  /* ---- Color: neutrals ---- */
  --color-ink: #1E2A18;            /* headings */
  --color-text: #37452F;           /* body text */
  --color-text-muted: #5B6B57;     /* secondary text */
  --color-text-on-dark: #F3F7EE;
  --color-text-on-dark-muted: #C3D3B8;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F6F9F2;
  --color-bg-dark: #1C2A17;
  --color-bg-dark-alt: #24361D;
  --color-border: #DEE7D5;
  --color-border-dark: #3A4A32;

  /* ---- Color: semantic ---- */
  --color-success: #2E7D32;
  --color-error: #C0392B;
  --color-warning: #B8860B;

  /* ---- Typography ---- */
  --font-heading: "Noto Serif Thai", "Noto Serif", Georgia, serif;
  --font-body: "Sarabun", "Noto Sans Thai", -apple-system, BlinkMacSystemFont, sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: clamp(1.5rem, 1.3rem + 1vw, 1.875rem);
  --fs-2xl: clamp(1.875rem, 1.5rem + 1.8vw, 2.5rem);
  --fs-3xl: clamp(2.25rem, 1.7rem + 2.6vw, 3.25rem);
  --fs-4xl: clamp(2.75rem, 1.9rem + 4vw, 4.25rem);

  --lh-tight: 1.2;
  --lh-snug: 1.4;
  --lh-body: 1.7;

  /* ---- Spacing (8px rhythm) ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* ---- Radius & shadow ---- */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 3px rgba(20, 38, 12, 0.08), 0 1px 2px rgba(20, 38, 12, 0.06);
  --shadow-md: 0 8px 24px rgba(20, 38, 12, 0.10), 0 2px 6px rgba(20, 38, 12, 0.06);
  --shadow-lg: 0 20px 48px rgba(20, 38, 12, 0.16), 0 6px 16px rgba(20, 38, 12, 0.08);

  /* ---- Layout ---- */
  --container-max: 1240px;
  --header-h: 76px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur-base: 240ms;
  --dur-slow: 400ms;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, picture, video { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-ink);
  line-height: var(--lh-tight);
  font-weight: 600;
}
h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-md); }
p { max-width: 68ch; }
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.section { padding-block: var(--space-9); }
.section--tight { padding-block: var(--space-7); }
.section--alt { background: var(--color-bg-alt); }
.section--dark { background: var(--color-bg-dark); color: var(--color-text-on-dark); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--color-text-on-dark); }
.section--dark p, .section--dark li { color: var(--color-text-on-dark-muted); }
.section--sage { background: linear-gradient(160deg, var(--color-sage-light), var(--color-bg)); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-3);
}
.section--dark .eyebrow { color: var(--color-sage); }
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.section-head {
  max-width: 720px;
  margin-bottom: var(--space-7);
}
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--color-text-muted); margin-top: var(--space-3); font-size: var(--fs-md); }

.text-center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.grid { display: grid; gap: var(--space-6); }
.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: 1023px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.stack { display: flex; flex-direction: column; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }

/* ---- Language toggle visibility ---- */
html.lang-en [data-lang="th"] { display: none !important; }
html.lang-th [data-lang="en"] { display: none !important; }

/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-6);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--fs-sm);
  border: 1.5px solid transparent;
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn--primary { background: var(--color-primary-dark); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--color-primary-darker); box-shadow: var(--shadow-md); }

.btn--outline { background: transparent; border-color: var(--color-primary-dark); color: var(--color-primary-dark); }
.btn--outline:hover { background: var(--color-primary-dark); color: #fff; }

.btn--ghost-light { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.5); color: #fff; }
.btn--ghost-light:hover { background: rgba(255,255,255,0.22); }

.btn--sm { min-height: 40px; padding: 0 var(--space-5); font-size: var(--fs-xs); }
.btn--block { width: 100%; }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--color-border); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); }

.brand { display: flex; align-items: center; }
.brand img { height: 40px; width: auto; }

.nav-desktop { display: none; }
.nav-desktop ul { display: flex; align-items: center; gap: var(--space-6); }
.nav-desktop a {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text);
  padding: var(--space-2) 0;
  position: relative;
}
.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}
.nav-desktop a:hover::after,
.nav-desktop a[aria-current="page"]::after { transform: scaleX(1); }
.nav-desktop a[aria-current="page"] { color: var(--color-primary-dark); }

.header-actions { display: flex; align-items: center; gap: var(--space-4); }

.lang-switch {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
}
.lang-switch button {
  border: none;
  background: transparent;
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  min-height: 32px;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.lang-switch button[aria-pressed="true"] { background: var(--color-primary-dark); color: #fff; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav-mobile {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--color-bg);
  z-index: 90;
  padding: var(--space-6) clamp(1.25rem, 4vw, 2.5rem) var(--space-8);
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility var(--dur-base);
}
.nav-mobile.is-open { opacity: 1; transform: translateY(0); visibility: visible; }
.nav-mobile ul { display: flex; flex-direction: column; gap: var(--space-1); }
.nav-mobile a {
  display: block;
  padding: var(--space-4) var(--space-2);
  font-size: var(--fs-lg);
  font-family: var(--font-heading);
  font-weight: 600;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-ink);
}
.nav-mobile a[aria-current="page"] { color: var(--color-primary-dark); }
.nav-mobile .btn { margin-top: var(--space-6); }
.nav-mobile a.btn--primary { color: #fff; border-bottom: none; font-family: var(--font-body); font-size: var(--fs-sm); }

@media (min-width: 1024px) {
  .nav-desktop { display: block; }
  .nav-toggle, .nav-mobile { display: none; }
  [data-desktop-cta] { display: inline-flex !important; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 140% at 85% -10%, #4a7f30 0%, #2C5219 46%, #1C2A17 100%);
  color: #fff;
  padding-block: var(--space-9) var(--space-9);
}
.hero__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-sage); margin-bottom: var(--space-4);
}
.hero h1 { color: #fff; margin-bottom: var(--space-5); max-width: 16ch; }
.hero p.lead { color: var(--color-text-on-dark-muted); font-size: var(--fs-md); max-width: 46ch; margin-bottom: var(--space-6); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-bottom: var(--space-7); }
.hero__stats { display: grid; grid-template-columns: repeat(3, auto); gap: var(--space-7); }
.hero__stats strong { display: block; font-family: var(--font-heading); font-size: var(--fs-xl); color: #fff; }
.hero__stats span { font-size: var(--fs-xs); color: var(--color-text-on-dark-muted); }

.hero__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255,255,255,0.15);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(20,32,14,0.55), transparent 45%);
}
.hero__media-tag {
  position: absolute;
  left: var(--space-5); bottom: var(--space-5);
  z-index: 1;
  background: rgba(255,255,255,0.95);
  color: var(--color-ink);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--fs-xs);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 900px) {
  .hero .container { grid-template-columns: 1.05fr 0.95fr; }
}

/* Simple inner page hero (no media) */
.page-hero {
  background: linear-gradient(160deg, #2C5219, #1C2A17);
  color: #fff;
  padding-block: var(--space-8) var(--space-7);
}
.page-hero .container { max-width: 820px; }
.page-hero h1 { color: #fff; }
.page-hero p { color: var(--color-text-on-dark-muted); font-size: var(--fs-md); margin-top: var(--space-4); }
.breadcrumb { font-size: var(--fs-xs); color: var(--color-sage); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--space-3); display: block; }

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }

.icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--color-sage-light);
  color: var(--color-primary-dark);
  margin-bottom: var(--space-4);
}
.icon-badge svg { width: 26px; height: 26px; }

.feature-card h3 { font-size: var(--fs-md); margin-bottom: var(--space-2); }
.feature-card p { color: var(--color-text-muted); font-size: var(--fs-sm); margin: 0; }

.stat-card { text-align: center; padding: var(--space-6) var(--space-4); }
.stat-card strong { display: block; font-family: var(--font-heading); font-size: var(--fs-2xl); color: var(--color-primary-dark); }
.stat-card span { font-size: var(--fs-xs); color: var(--color-text-muted); font-weight: 600; }

/* Product category card */
.product-card { display: flex; flex-direction: column; height: 100%; }
.product-card__tag {
  align-self: flex-start;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-primary-dark); background: var(--color-sage-light);
  padding: 4px 12px; border-radius: var(--radius-full); margin-bottom: var(--space-4);
}
.product-card h3 { margin-bottom: var(--space-2); }
.product-card p { color: var(--color-text-muted); font-size: var(--fs-sm); flex-grow: 1; }
.product-card__foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--color-border);
  font-size: var(--fs-xs); font-weight: 700; color: var(--color-primary-dark);
}
.product-card__sku { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-3); }
.product-card__sku span {
  font-size: 0.75rem; font-weight: 700; color: var(--color-text);
  background: var(--color-bg-alt); border: 1px solid var(--color-border);
  padding: 3px 10px; border-radius: var(--radius-full);
}

/* Certification card */
.cert-card { text-align: center; }
.cert-card .icon-badge { margin-inline: auto; }
.cert-card h3 { font-size: var(--fs-md); }
.cert-card p { color: var(--color-text-muted); font-size: var(--fs-sm); }

/* Country / market card */
.country-card {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-5); background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.country-card__pin {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-sage-light); color: var(--color-primary-dark);
  display: flex; align-items: center; justify-content: center;
}
.country-card__pin svg { width: 22px; height: 22px; }
.country-card h4 { font-size: var(--fs-base); margin-bottom: 2px; }
.country-card span { font-size: var(--fs-xs); color: var(--color-text-muted); }

/* News card */
.news-card img, .news-card__media { aspect-ratio: 16/10; object-fit: cover; width: 100%; border-radius: var(--radius-md); }
.news-card__media { background: var(--color-sage-light); display: flex; align-items: center; justify-content: center; color: var(--color-primary); }
.news-card__media svg { width: 40px; height: 40px; }
.news-card { padding: 0; overflow: hidden; }
.news-card__body { padding: var(--space-5); }
.news-card__date { font-size: var(--fs-xs); font-weight: 700; color: var(--color-primary-dark); text-transform: uppercase; letter-spacing: 0.06em; }
.news-card h3 { font-size: var(--fs-md); margin: var(--space-2) 0; }
.news-card p { color: var(--color-text-muted); font-size: var(--fs-sm); }

/* Timeline */
.timeline { position: relative; padding-left: var(--space-6); border-left: 2px solid var(--color-border); }
.timeline-item { position: relative; padding-bottom: var(--space-7); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: calc(-1 * var(--space-6) - 6px); top: 4px;
  width: 12px; height: 12px; border-radius: 50%; background: var(--color-primary); border: 3px solid var(--color-sage-light);
}
.timeline-item strong { display: block; color: var(--color-primary-dark); font-family: var(--font-heading); font-size: var(--fs-md); margin-bottom: var(--space-1); }
.timeline-item p { color: var(--color-text-muted); font-size: var(--fs-sm); margin: 0; }

/* Process steps */
.process-steps { counter-reset: step; }
.process-step {
  position: relative; padding-left: var(--space-8); padding-bottom: var(--space-7);
  border-left: 2px dashed var(--color-border); margin-left: 22px;
}
.process-step:last-child { border-color: transparent; padding-bottom: 0; }
.process-step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: -22px; top: 0;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-primary-dark); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-md);
}
.process-step h3 { font-size: var(--fs-lg); margin-bottom: var(--space-3); }
.process-step p { color: var(--color-text-muted); font-size: var(--fs-md); margin: 0; }

/* ==========================================================================
   Value strip / logos
   ========================================================================== */
.value-strip {
  display: flex; flex-wrap: wrap; gap: var(--space-6);
  align-items: center; justify-content: space-between;
}
.badge-pill {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: #fff; border: 1px solid var(--color-border);
  padding: var(--space-3) var(--space-5); border-radius: var(--radius-full);
  font-size: var(--fs-sm); font-weight: 700; color: var(--color-primary-dark);
}
.badge-pill svg { width: 18px; height: 18px; }

/* ==========================================================================
   Data table (product spec lists)
   ========================================================================== */
.table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: #fff; }
table.data-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 640px; }
.data-table th, .data-table td { text-align: left; padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--color-border); vertical-align: top; }
.data-table thead th { background: var(--color-bg-alt); font-family: var(--font-heading); font-weight: 700; color: var(--color-ink); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.05em; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--color-sage-light); }
.data-table td.col-name { font-weight: 700; color: var(--color-ink); white-space: nowrap; }
.doc-link {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 6px; font-size: 0.75rem; font-weight: 700;
  color: var(--color-primary-dark);
}
.doc-link svg { width: 13px; height: 13px; flex-shrink: 0; }
.doc-link:hover { text-decoration: underline; }
.data-table .tag-mini { display: inline-block; font-size: 0.7rem; font-weight: 700; background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: var(--radius-full); padding: 2px 9px; margin: 2px 3px 2px 0; color: var(--color-text-muted); white-space: nowrap; }
.subhead-mini { font-family: var(--font-heading); font-size: var(--fs-md); color: var(--color-primary-dark); margin: var(--space-8) 0 var(--space-3); }
.subhead-mini:first-child { margin-top: 0; }
.panel-intro { color: var(--color-text-muted); max-width: 70ch; margin-bottom: var(--space-6); }

/* ==========================================================================
   Tabs (Products filter)
   ========================================================================== */
.tabs { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-7); }
.tabs button {
  border: 1.5px solid var(--color-border);
  background: #fff; color: var(--color-text);
  padding: var(--space-3) var(--space-5); border-radius: var(--radius-full);
  font-size: var(--fs-sm); font-weight: 600;
  transition: all var(--dur-fast) var(--ease-out);
}
.tabs button:hover { border-color: var(--color-primary); }
.tabs button[aria-selected="true"] { background: var(--color-primary-dark); border-color: var(--color-primary-dark); color: #fff; }

.product-panel { display: none; }
.product-panel.is-active { display: block; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  background: radial-gradient(120% 160% at 15% 0%, #4a7f30, #1C2A17 70%);
  color: #fff; border-radius: var(--radius-lg);
  padding: var(--space-8) clamp(1.5rem, 5vw, 4rem);
  display: flex; flex-wrap: wrap; gap: var(--space-6);
  align-items: center; justify-content: space-between;
}
.cta-band h2 { color: #fff; font-size: var(--fs-2xl); max-width: 22ch; margin: 0; }
.cta-band p { color: var(--color-text-on-dark-muted); margin-top: var(--space-2); }
.cta-band__actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-grid { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid--2col { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-sm); font-weight: 700; color: var(--color-ink); }
.field .required { color: var(--color-error); }
.field small.help { font-size: var(--fs-xs); color: var(--color-text-muted); }
.field input, .field select, .field textarea {
  min-height: 48px; padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-border); border-radius: var(--radius-sm);
  background: #fff; font-size: var(--fs-base); color: var(--color-text);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(84,149,52,0.15); outline: none;
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--color-error); }
.field-error { font-size: var(--fs-xs); color: var(--color-error); display: none; font-weight: 600; }
.field.has-error .field-error { display: block; }
.form-note { font-size: var(--fs-xs); color: var(--color-text-muted); }

.form-success {
  display: none; align-items: flex-start; gap: var(--space-3);
  background: var(--color-sage-light); border: 1px solid var(--color-sage-dark);
  color: var(--color-primary-darker); padding: var(--space-5); border-radius: var(--radius-md);
  font-weight: 600; margin-top: var(--space-5);
}
.form-success.is-visible { display: flex; }
.form-success svg { width: 22px; height: 22px; flex-shrink: 0; }

.form-error {
  display: none; align-items: flex-start; gap: var(--space-3);
  background: #FBEAE7; border: 1px solid var(--color-error);
  color: var(--color-error); padding: var(--space-5); border-radius: var(--radius-md);
  font-weight: 600; margin-top: var(--space-5);
}
.form-error.is-visible { display: flex; }
.form-error svg { width: 22px; height: 22px; flex-shrink: 0; }

/* FAQ accordion */
.faq-list { display: flex; flex-direction: column; gap: var(--space-3); max-width: 820px; margin-inline: auto; }
.faq-item {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: var(--space-5) var(--space-6);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  font-family: var(--font-heading); font-weight: 600; font-size: var(--fs-md); color: var(--color-ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-icon {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--color-sage-light); color: var(--color-primary-dark);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--dur-base) var(--ease-out);
}
.faq-item[open] summary .faq-icon { transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 var(--space-6) var(--space-5); color: var(--color-text-muted); font-size: var(--fs-sm); }

/* Contact info card */
.contact-info-card { display: flex; gap: var(--space-4); align-items: flex-start; }
.contact-info-card .icon-badge { margin-bottom: 0; flex-shrink: 0; }
.contact-info-card h3 { font-size: var(--fs-base); margin-bottom: var(--space-1); }
.contact-info-card p, .contact-info-card a { color: var(--color-text-muted); font-size: var(--fs-sm); }
.contact-info-card a:hover { color: var(--color-primary-dark); }

.map-placeholder {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 16/9; background: var(--color-sage-light);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-border);
}
.map-placeholder__pin { color: var(--color-primary-dark); text-align: center; }
.map-placeholder__pin svg { width: 40px; height: 40px; margin-inline: auto; }
.map-placeholder__pin span { display: block; font-size: var(--fs-xs); font-weight: 700; margin-top: var(--space-2); color: var(--color-text-muted); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--color-bg-dark); color: var(--color-text-on-dark-muted); padding-block: var(--space-9) var(--space-6); }
.footer-grid { display: grid; gap: var(--space-7); grid-template-columns: 1.4fr 1fr 1fr 1.2fr; margin-bottom: var(--space-8); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand img { height: 38px; filter: brightness(0) invert(1); }
.footer-about p { margin-top: var(--space-4); font-size: var(--fs-sm); max-width: 34ch; }
.footer-social { display: flex; gap: var(--space-3); margin-top: var(--space-5); }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--color-border-dark);
  display: flex; align-items: center; justify-content: center; transition: background var(--dur-fast) var(--ease-out);
}
.footer-social a:hover { background: var(--color-primary-dark); }
.footer-social svg { width: 16px; height: 16px; }
.site-footer h4 { color: #fff; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--space-4); }
.footer-links { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-links a { font-size: var(--fs-sm); }
.footer-links a:hover { color: #fff; }
.footer-contact li { display: flex; gap: var(--space-3); font-size: var(--fs-sm); margin-bottom: var(--space-3); align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--color-sage); }
.footer-bottom {
  border-top: 1px solid var(--color-border-dark); padding-top: var(--space-5);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3);
  font-size: var(--fs-xs);
}
.footer-bottom a:hover { color: #fff; }

/* ==========================================================================
   Misc pages
   ========================================================================== */
.two-col { display: grid; gap: var(--space-8); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; } }
.two-col img, .media-frame { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--color-bg-dark);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.photo-placeholder {
  aspect-ratio: 4 / 3;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 2px dashed var(--color-border);
  background: var(--color-bg-alt);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  text-align: center;
  padding: var(--space-6);
}
.photo-placeholder svg { width: 44px; height: 44px; color: var(--color-sage-dark); }
.photo-placeholder strong { font-family: var(--font-heading); color: var(--color-primary-dark); font-size: var(--fs-md); font-weight: 600; }
.photo-placeholder span { font-size: var(--fs-xs); color: var(--color-text-muted); max-width: 26ch; }

/* Agent / distributor cards */
.agent-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-6); display: flex; flex-direction: column; height: 100%; }
.agent-card__country { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }
.agent-card__country .icon-badge { margin-bottom: 0; flex-shrink: 0; }
.agent-card__country h3 { margin: 0; font-size: var(--fs-md); }
.agent-card__name { font-weight: 700; color: var(--color-ink); font-size: var(--fs-sm); margin-bottom: var(--space-4); padding-bottom: var(--space-4); border-bottom: 1px solid var(--color-border); }
.agent-card__contact { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-4); font-size: var(--fs-sm); }
.agent-card__contact a { color: var(--color-primary-dark); font-weight: 600; }
.agent-card__contact a:hover { text-decoration: underline; }
.agent-card__label { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-muted); margin-bottom: var(--space-2); margin-top: auto; }
.agent-card__products { line-height: 2; }
.agent-card__products .tag-sep { color: var(--color-text-muted); margin-right: var(--space-2); font-size: var(--fs-xs); }

.flag-icon {
  width: 40px; height: 27px; flex-shrink: 0;
  border-radius: 4px; overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.flag-icon svg { width: 100%; height: 100%; display: block; }

.callout {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  background: var(--color-sage-light);
  border: 1px solid var(--color-sage-dark);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}
.callout svg { width: 24px; height: 24px; color: var(--color-primary-dark); flex-shrink: 0; }
.callout p { margin: 0; font-size: var(--fs-sm); color: var(--color-text); }
.callout strong { color: var(--color-primary-darker); }

.value-list { display: flex; flex-direction: column; gap: var(--space-5); margin-top: var(--space-6); }
.value-list li { display: flex; gap: var(--space-4); align-items: flex-start; }
.value-list .icon-badge { margin-bottom: 0; flex-shrink: 0; width: 44px; height: 44px; }
.value-list .icon-badge svg { width: 22px; height: 22px; }
.value-list h4 { font-size: var(--fs-base); margin-bottom: 2px; }
.value-list p { font-size: var(--fs-sm); color: var(--color-text-muted); margin: 0; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--color-primary-dark); color: #fff; padding: var(--space-3) var(--space-5);
  border-radius: 0 0 var(--radius-sm) 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

.back-to-top {
  position: fixed; right: var(--space-5); bottom: var(--space-5); z-index: 80;
  width: 48px; height: 48px; border-radius: 50%; background: var(--color-primary-dark); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all var(--dur-base) var(--ease-out);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top svg { width: 20px; height: 20px; }

.whatsapp-float {
  position: fixed; left: var(--space-5); bottom: var(--space-5); z-index: 80;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-base) var(--ease-out);
}
.whatsapp-float:hover { transform: scale(1.06); }
.whatsapp-float svg { width: 28px; height: 28px; }
@media (max-width: 640px) {
  .whatsapp-float { left: var(--space-4); bottom: var(--space-4); width: 46px; height: 46px; }
  .whatsapp-float svg { width: 24px; height: 24px; }
}
