/* =========================================================
   Green World Service — สไตล์หลัก
   ธีมเริ่มต้น: เขียว + ขาว
   เปลี่ยนสีทั้งเว็บได้ที่ตัวแปรใน :root ด้านล่าง
   (ธีมทางเลือกอยู่ใน css/theme-ocean.css)
   ========================================================= */

:root {
  /* สีหลัก */
  --primary: #1b7a43;        /* เขียวหลัก */
  --primary-dark: #125a31;   /* เขียวเข้ม (hover, หัวข้อ) */
  --primary-soft: #e8f5ec;   /* เขียวอ่อน (พื้นหลังไอคอน, แท็ก) */
  --accent: #7cc242;         /* เขียวใบไม้ (จุดเน้น) */

  /* สีพื้นและตัวอักษร */
  --bg: #ffffff;
  --bg-alt: #f5f9f6;
  --surface: #ffffff;
  --text: #1f2a24;
  --muted: #5b6b62;
  --border: #dbe6df;

  /* Hero */
  --hero-bg: linear-gradient(135deg, #125a31 0%, #1b7a43 55%, #2f9a55 100%);
  --hero-text: #ffffff;

  /* Footer */
  --footer-bg: #0f3d23;
  --footer-text: #d6e8dc;

  /* สถานะฟอร์ม */
  --success-bg: #e7f6ec;  --success-text: #136c36;
  --error-bg: #fdecec;    --error-text: #b42318;
  --info-bg: #eef4ff;     --info-text: #1d4ed8;

  /* อื่น ๆ */
  --radius: 14px;
  --shadow: 0 6px 24px rgba(16, 48, 30, 0.08);
  --container: 1140px;
  --font: "IBM Plex Sans Thai", "Sarabun", "Noto Sans Thai", system-ui, sans-serif;
}

/* ---------- พื้นฐาน ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); }
a:hover { color: var(--primary-dark); }

h1, h2, h3 { line-height: 1.35; margin: 0 0 .6em; color: var(--text); }
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p  { margin: 0 0 1em; }

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

.eyebrow {
  display: inline-block;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- ปุ่ม ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: 10px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .1s;
}
.btn:active { transform: translateY(1px); }

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

.btn-ghost { background: transparent; color: var(--hero-text); border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: var(--hero-text); }

.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: not-allowed; }

/* ---------- 1. ส่วนหัว ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.brand-logo { height: 40px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 1.05rem; color: var(--primary-dark); }
.brand-text small { font-size: .78rem; color: var(--muted); }

.main-nav ul {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}
.main-nav a:hover { background: var(--primary-soft); color: var(--primary-dark); }

/* ปุ่มเมนูมือถือ */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 2. Hero ---------- */
.hero {
  background: var(--hero-bg);
  color: var(--hero-text);
  padding: 88px 0 72px;
}
.hero h1 { color: var(--hero-text); }
.hero .eyebrow { background: rgba(255,255,255,.15); color: var(--hero-text); }
.hero .lead { font-size: 1.12rem; max-width: 640px; opacity: .95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .btn-primary { background: #fff; color: var(--primary-dark); }
.hero .btn-primary:hover { background: var(--primary-soft); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 56px 0 0;
}
.hero-stats li {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.hero-stats strong { display: block; font-size: 2rem; line-height: 1.2; }
.hero-stats span { font-size: .92rem; opacity: .9; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head p:last-child { color: var(--muted); }

/* ---------- 3. เกี่ยวกับเรา ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-grid > div:first-child p { color: var(--muted); }

.value-cards { display: grid; gap: 16px; }
.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.value-card h3 { color: var(--primary-dark); margin-bottom: .3em; }
.value-card p { margin: 0; color: var(--muted); }

/* ---------- 4. บริการ ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(16,48,30,.12); }
.service-card p { color: var(--muted); margin: 0; }

.service-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--primary-soft);
  margin-bottom: 18px;
}
.service-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 5. ติดต่อ ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: start;
}
.contact-info > p { color: var(--muted); }

.info-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.info-list li {
  padding: 16px 18px;
  background: var(--bg-alt);
  border-radius: 12px;
  border: 1px solid var(--border);
}
.info-label { display: block; font-weight: 600; color: var(--primary-dark); margin-bottom: 2px; }
.info-list a { text-decoration: none; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.req { color: var(--error-text); }

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.field.invalid input,
.field.invalid textarea { border-color: var(--error-text); }
.field-error { min-height: 1.2em; margin: 4px 0 0; font-size: .88rem; color: var(--error-text); }

/* ช่องล่อบอท: ซ่อนแบบที่บอทยังเห็น แต่คนไม่เห็น */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* spinner ขณะส่ง */
.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255,255,255,.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  font-weight: 500;
}
.form-status.is-sending { background: var(--info-bg); color: var(--info-text); }
.form-status.is-success { background: var(--success-bg); color: var(--success-text); }
.form-status.is-error   { background: var(--error-bg); color: var(--error-text); }

/* ---------- 7. แผนที่ ---------- */
.map-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.map-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map-card iframe { display: block; width: 100%; height: 340px; border: 0; }
.map-card figcaption { padding: 14px 18px; color: var(--muted); }
.map-card figcaption strong { color: var(--text); }

/* ---------- 6. ส่วนท้าย ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 48px 0 0; }
.site-footer strong { color: #fff; font-size: 1.05rem; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 28px;
}
.footer-inner p { margin: 6px 0 0; opacity: .85; }
.footer-inner nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-inner nav a { color: var(--footer-text); text-decoration: none; }
.footer-inner nav a:hover { color: #fff; text-decoration: underline; }
.copyright { border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; padding-bottom: 18px; }
.copyright p { margin: 0; font-size: .9rem; opacity: .8; }

/* ---------- Hero: ภาพพื้นหลังอาคารล้างถัง ---------- */
.hero {
  background:
    var(--hero-overlay, linear-gradient(135deg, rgba(18,90,49,.94), rgba(27,122,67,.86))),
    url("../images/food-grade-facility.jpg") center / cover no-repeat;
}
.hero-badge {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  max-width: 560px;
  margin: 6px 0 0;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.28);
  color: var(--hero-text);
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.hero-badge:hover { background: rgba(255,255,255,.16); border-color: var(--accent); color: var(--hero-text); }
.badge-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.badge-new, .badge-first {
  font-size: .8rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
}
.badge-new { background: var(--accent); color: #1a1a1a; }
.badge-first { background: #fff; color: var(--primary-dark); }
.badge-text { font-size: 1rem; line-height: 1.6; }
.badge-link { font-weight: 600; font-size: .92rem; text-decoration: underline; text-underline-offset: 3px; }

.eyebrow-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.eyebrow-row .eyebrow { margin: 0; }
.eyebrow-first { background: var(--primary-dark); color: #fff; }
.first-claim {
  font-size: 1.08rem;
  color: var(--text) !important;
  padding: 12px 16px;
  border-left: 4px solid var(--accent);
  background: var(--primary-soft);
  border-radius: 0 10px 10px 0;
}
.first-claim strong { color: var(--primary-dark); }

/* เมนู "ใหม่" */
.nav-new { position: relative; }
.nav-new::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- 4.1 Food Grade ---------- */
.eyebrow-new { background: var(--accent); color: #1a1a1a; }

.food-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 48px;
  align-items: center;
}
.food-text > p { color: var(--muted); }

.check-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 32px; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}
.gallery .gallery-main { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.gallery a:hover img { transform: scale(1.04); }

/* ตัวเลข Food Grade */
.food-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.food-stats li {
  background: var(--primary-soft);
  border-radius: 12px;
  padding: 14px 16px;
}
.food-stats strong { display: block; font-size: 1.6rem; line-height: 1.2; color: var(--primary-dark); }
.food-stats span { font-size: .88rem; color: var(--muted); }

/* จุดเด่น 4 ด้าน */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow);
}
.feature-card > p { color: var(--muted); margin-bottom: .6em; }
.mini-list { margin: 0; padding-left: 18px; color: var(--muted); font-size: .95rem; }
.mini-list li { margin-bottom: 6px; }
.mini-list strong { color: var(--text); }

/* วิดีโอการล้าง */
.video-feature {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 36px;
  align-items: center;
  margin-top: 56px;
  padding: 26px;
  border-radius: 20px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}
.video-frame {
  border-radius: 14px;
  overflow: hidden;
  background: #0b1a2c;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}
.video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-text > p:not(.eyebrow) { color: var(--muted); }
.video-steps { margin: 0; padding: 0; list-style: none; counter-reset: vs; display: grid; gap: 10px; }
.video-steps li { counter-increment: vs; position: relative; padding-left: 38px; }
.video-steps li::before {
  content: counter(vs);
  position: absolute;
  left: 0;
  top: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .8rem;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
}

/* ขั้นตอนการทำงาน (timeline) */
.process { margin-top: 64px; }
.process-title { text-align: center; font-size: 1.35rem; margin-bottom: 28px; }
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}
.timeline::before {             /* เส้นเชื่อมระหว่างขั้นตอน */
  content: "";
  position: absolute;
  top: 22px;
  left: 12.5%;
  right: 12.5%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 3px;
}
.timeline li { position: relative; text-align: center; padding: 0 6px; }
.step {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary-dark);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  border: 4px solid var(--bg);
  box-shadow: 0 0 0 2px var(--primary);
  margin-bottom: 14px;
}
.timeline h4 { margin: 0 0 6px; font-size: 1.02rem; line-height: 1.4; }
.timeline p { margin: 0; color: var(--muted); font-size: .93rem; }

.map-text small { display: block; margin-top: 4px; font-size: .88rem; line-height: 1.6; }

/* ลิงก์เปิด Google Maps */
.map-card figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.map-link {
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.map-link::after { content: " ↗"; }

/* ---------- สลับภาษา ---------- */
.lang-switch {
  display: inline-flex;
  margin-left: 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
}
.lang-switch a {
  padding: 5px 12px;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
  line-height: 1.5;
}
.lang-switch a[aria-current="page"] { background: var(--primary-dark); color: #fff; }
.lang-switch a:not([aria-current]):hover { background: var(--primary-soft); color: var(--primary-dark); }

/* ---------- แถบเน้นมาตรฐาน (ใต้ Hero) ---------- */
.cert-strip { background: var(--accent); color: #1a1a1a; }
.cert-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
  padding-top: 14px;
  padding-bottom: 14px;
  text-align: center;
}
.cert-strip strong { font-size: 1.02rem; }
.cert-strip a { color: #1a1a1a; font-weight: 700; }
.cert-strip-sep { opacity: .45; }
.cert-strip .pulse { background: #1a1a1a; }
.cert-strip .pulse::after { border-color: #1a1a1a; }

/* จุดกะพริบ = กำลังดำเนินการ */
.pulse {
  position: relative;
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- 4.2 มาตรฐานและการรับรอง ---------- */
.section-standards {
  background:
    radial-gradient(circle at 15% 0%, rgba(255,255,255,.07), transparent 45%),
    linear-gradient(160deg, var(--primary-dark) 0%, #0d3a5c 60%, var(--primary) 140%);
  color: #e8eef5;
}
.section-standards h2,
.section-standards h3 { color: #fff; }
.section-standards .section-head p:last-child { color: #d3deea; }
.section-standards .section-head strong { color: var(--accent); }
.section-standards .eyebrow { background: rgba(255,255,255,.14); color: #fff; }

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.cert-card {
  position: relative;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  padding: 30px 26px 28px;
  text-align: center;
  backdrop-filter: blur(4px);
  transition: transform .2s, border-color .2s;
}
.cert-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.cert-card p { color: #cfdbe8; margin: 0; font-size: .96rem; }
.cert-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 14px 4px 12px;
  border-radius: 999px;
  background: rgba(242,169,0,.16);
  border: 1px solid rgba(242,169,0,.55);
  color: #ffd36b;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.cert-mark {
  width: 118px;
  height: 118px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 3px dashed rgba(255,255,255,.55);   /* เส้นประ = ยังไม่ได้รับการรับรอง */
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: .06em;
  color: #fff;
  background: rgba(255,255,255,.05);
}

.member-row {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 16px 22px;
  align-items: center;
  margin-top: 34px;
  padding: 22px 26px;
  border-radius: 16px;
  background: rgba(255,255,255,.95);
  color: var(--text);
}
.member { display: flex; align-items: center; gap: 12px; }
.member-mark {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--primary-dark);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .04em;
  flex-shrink: 0;
}
.member-logo { height: 52px; width: auto; border-radius: 8px; flex-shrink: 0; }
.member strong { display: block; font-size: .92rem; line-height: 1.35; max-width: 190px; }
.member-status {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  color: #127a3b;
  background: #e7f6ec;
  padding: 1px 10px;
  border-radius: 999px;
  margin-bottom: 3px;
}
.member-row .member-text { margin: 0; color: var(--muted); font-size: .93rem; }
.cert-note { text-align: center; margin: 26px 0 0; font-size: .9rem; color: #b9c8d8; }
.cert-note a { color: #fff; font-weight: 600; }

/* =========================================================
   Responsive
   ========================================================= */

/* แท็บเล็ต */
@media (max-width: 1024px) {
  .service-grid,
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { gap: 36px; }
}

/* แท็บเล็ตแนวตั้ง / มือถือ */
@media (max-width: 960px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; padding: 10px 20px 16px; gap: 2px; }
  .main-nav a { padding: 12px 14px; }
  .nav-new::after { position: static; display: inline-block; margin-left: 8px; vertical-align: middle; }
  .lang-switch { margin-left: auto; margin-right: 10px; }
}

@media (max-width: 820px) {
  .video-feature { grid-template-columns: 1fr; gap: 22px; padding: 16px; }
  .cert-grid { grid-template-columns: 1fr; gap: 14px; }
  .cert-card { display: grid; grid-template-columns: 84px 1fr; column-gap: 18px; text-align: left; padding: 22px; }
  .cert-card .cert-mark { grid-row: 1 / span 3; width: 84px; height: 84px; font-size: .95rem; margin: 0; align-self: center; }
  .cert-card .cert-status { justify-self: start; margin-bottom: 8px; }
  .cert-card h3 { margin-bottom: .3em; }
  .member-row { grid-template-columns: 1fr 1fr; }
  .member-row .member-text { grid-column: 1 / -1; }
  .about-grid,
  .contact-grid,
  .food-grid,
  .map-grid { grid-template-columns: 1fr; }
  .food-grid { gap: 32px; }
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline::before { top: 22px; bottom: 22px; left: 22px; right: auto; width: 3px; height: auto; }
  .timeline li { display: grid; grid-template-columns: 46px 1fr; column-gap: 16px; text-align: left; padding: 0 0 22px; }
  .timeline .step { grid-row: span 2; margin: 0; }
  .timeline li:last-child { padding-bottom: 0; }
  .timeline::before { bottom: 40px; }
  .standards { flex-direction: column; align-items: flex-start; padding: 24px; }

  .hero { padding: 64px 0 56px; }
  .section { padding: 64px 0; }
}

/* มือถือ */
@media (max-width: 560px) {
  .service-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; gap: 10px; margin-top: 40px; }
  .hero-stats li { display: flex; align-items: center; gap: 14px; padding: 14px 18px; }
  .hero-stats strong { font-size: 1.6rem; min-width: 64px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .contact-form { padding: 22px; }
  .map-card iframe { height: 280px; }
  .brand-text small { display: none; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
  .feature-grid { grid-template-columns: 1fr; }
  .food-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .food-stats li { padding: 10px; }
  .food-stats strong { font-size: 1.3rem; }
  .brand-logo { height: 34px; }
  .brand-text { display: none; }
  .cert-strip-sep { display: none; }
  .cert-strip strong { flex-basis: 100%; }
  .cert-card { grid-template-columns: 64px 1fr; column-gap: 14px; }
  .cert-card .cert-mark { width: 64px; height: 64px; font-size: .72rem; border-width: 2px; }
  .member-row { grid-template-columns: 1fr; padding: 18px; }
  .gallery a:last-child { display: none; } /* มือถือแสดง 3 รูป ให้ลงตัว */
}

/* ลดการเคลื่อนไหวสำหรับผู้ที่ตั้งค่าไว้ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
