:root {
  --color-primary: #016F30;
  --color-primary-dark: #014a20;
  --color-primary-light: #02a447;
  --color-primary-pale: #e6f4ec;

  --color-accent: #FE0001;
  --color-accent-dark: #c70001;

  --color-bg: #ffffff;
  --color-bg-soft: #f8faf9;
  --color-bg-section: #f4f7f5;

  --color-text: #1a2820;
  --color-text-muted: #5a6b62;
  --color-text-light: #8a9690;

  --color-border: #e5ebe7;
  --color-border-soft: #f0f3f1;

  --font-thai: 'IBM Plex Sans Thai', 'Sarabun', system-ui, -apple-system, sans-serif;
  --font-display: 'IBM Plex Sans Thai', 'Sarabun', system-ui, sans-serif;

  --container-max: 1280px;
  --container-padding: 24px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 32px rgba(1, 111, 48, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  --navbar-height: 80px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-thai);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Chat 7: กัน horizontal overflow บนมือถือให้ครอบคลุม (html + body + width 100%) */
html {
  overflow-x: hidden;
  width: 100%;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
/* Chat 7: H1 ใน section แรก (SEO) — บังคับขนาด/ระยะเท่า h2 เดิม หน้าตาไม่เปลี่ยน */
.section-h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 16px; }
/* Chat 7: ซ่อนจากสายตาแต่ screen reader + Google ยังอ่าน (สำหรับ H1 หน้า contact) */
.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;
}
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { color: var(--color-text-muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-accent {
  background: var(--color-accent);
  color: white;
}
.btn-accent:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(254, 0, 1, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
}
.btn-ghost:hover {
  background: var(--color-bg-section);
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-soft);
  z-index: 1000;
  transition: all var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.98);
}

.navbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.navbar-logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.navbar-logo-group img {
  height: 52px;
  width: auto;
  display: block;
}
.navbar-logo-divider {
  width: 1px;
  height: 32px;
  background: var(--color-border);
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.navbar-menu a {
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 15px;
  color: var(--color-text);
  position: relative;
  transition: color var(--transition);
}

.navbar-menu a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-primary-pale);
  border-radius: var(--radius-md);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: -1;
}

.navbar-menu a:hover {
  color: var(--color-primary);
}
.navbar-menu a:hover::before {
  opacity: 1;
}

.navbar-menu a.active {
  color: var(--color-primary);
  font-weight: 600;
}
.navbar-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

.navbar-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-section);
  border-radius: var(--radius-md);
  color: var(--color-text);
}

.navbar-toggle svg { width: 24px; height: 24px; }

main { padding-top: var(--navbar-height); }

.footer {
  background: #0d1f15;
  color: #b8c7be;
  padding: 80px 0 32px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer h4 {
  color: white;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-brand .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.footer-brand .logo img {
  height: 48px;
  width: auto;
  display: block;
}
.footer-brand .logo-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.15);
}
.footer-brand p {
  color: #8b9990;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  color: #8b9990;
  font-size: 14px;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--color-primary-light); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  color: #8b9990;
  line-height: 1.6;
}
.footer-contact-item svg {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  color: var(--color-primary-light);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  color: white;
  transition: all var(--transition);
}
.footer-social a:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #6a7a72;
}

.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.section-header .eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: var(--color-primary-pale);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 17px; color: var(--color-text-muted); }

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  :root { --navbar-height: 68px; --container-padding: 20px; }

  .navbar-logo-group img { height: 38px; }
  .navbar-logo-divider { height: 24px; }

  .navbar-menu { display: none; }
  .navbar-menu.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    background: white;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    gap: 4px;
    align-items: stretch;
  }
  .navbar-menu.mobile-open a {
    padding: 14px 16px;
    text-align: left;
  }
  .navbar-cta .btn { display: none; }
  .navbar-toggle { display: flex; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .section { padding: 64px 0; }
}

@media (max-width: 480px) {
  .navbar-logo-group img { height: 32px; }
  .navbar-logo-divider { display: none; }
  .navbar-logo-group { gap: 8px; }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ==========================================================================
   INDEX.HTML — Home Page Styles
   เพิ่มใน Chat 2 — ไม่แตะ design system เดิม
   ========================================================================== */

/* ---------- Button Sizes & Variants ---------- */
.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
}

.btn-outline-white {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.6);
}
.btn-outline-white:hover {
  background: white;
  color: var(--color-primary);
  border-color: white;
}

/* ==========================================================================
   HERO CAROUSEL
   ========================================================================== */
.hero-carousel {
  position: relative;
  /* Chat 7: เลิก fixed height → ใช้ min-height + ให้ content ดันความสูงได้ (responsive จริง) */
  min-height: 460px;
  overflow: hidden;
  margin-top: calc(-1 * var(--navbar-height));
  padding-top: var(--navbar-height);
}

.hero-slides {
  /* Chat 7: grid-stack — ทุก slide ซ้อนใน cell เดียว แต่ slide ที่สูงสุดดันความสูง carousel (ปุ่มไม่หาย) */
  position: relative;
  display: grid;
}
.hero-slides > .hero-slide {
  grid-area: 1 / 1;
}

.hero-slide {
  /* Chat 7: เลิก absolute → ใช้ grid-stack (grid-area 1/1) ให้ slide ดันความสูง carousel ได้ */
  position: relative;
  display: flex;
  /* Chat 6 R4: center → flex-start เพื่อให้ content เริ่มจากบน ไม่ทับ hero-controls ด้านล่าง */
  align-items: flex-start;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* รูปพื้นหลัง — รูปจริง + gradient เป็น fallback (เผื่อรูปโหลดไม่ทัน) */
.hero-bg-placeholder {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(4px);
  transform: scale(1.05); /* กลบขอบเบลอ */
}

.hero-bg-1 {
  background:
    url('../assets/images/hero-driver-stand.jpg') center center/cover no-repeat,
    linear-gradient(135deg, rgba(1, 74, 32, 0.4) 0%, rgba(1, 111, 48, 0.6) 100%),
    radial-gradient(circle at 20% 30%, #02a447 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, #014a20 0%, transparent 50%),
    linear-gradient(180deg, #016F30 0%, #014a20 100%);
}

.hero-bg-2 {
  background:
    url('../assets/images/hero-truck-street.jpg') center/cover no-repeat,
    linear-gradient(135deg, rgba(1, 111, 48, 0.5) 0%, rgba(2, 164, 71, 0.7) 100%),
    radial-gradient(circle at 70% 20%, #02a447 0%, transparent 50%),
    radial-gradient(circle at 30% 80%, #016F30 0%, transparent 50%),
    linear-gradient(135deg, #014a20 0%, #016F30 50%, #02a447 100%);
}

.hero-bg-3 {
  background:
    url('../assets/images/hero-service-mind.jpg') center/cover no-repeat,
    linear-gradient(135deg, rgba(1, 74, 32, 0.5) 0%, rgba(1, 111, 48, 0.7) 100%),
    radial-gradient(circle at 50% 50%, #02a447 0%, transparent 60%),
    linear-gradient(45deg, #014a20 0%, #016F30 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(1, 74, 32, 0.88) 0%, rgba(1, 111, 48, 0.78) 60%, rgba(1, 111, 48, 0.65) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 760px;
  /* Chat 6 R7: padding-top = navbar + 28px เป็นค่ามาตรฐานเดียวกับ page-hero ทุกหน้า (ตัวหนังสือตรงกันเป๊ะ) */
  /* padding-bottom 80px กัน hero-controls (dots + arrows อยู่ bottom 24px) */
  padding-top: calc(var(--navbar-height) + 28px);
  padding-bottom: 80px;
}

.hero-eyebrow {
  display: inline-block;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  /* Chat 6 R4: ลด margin-bottom 24→16 ให้ content แน่นขึ้น */
  margin-bottom: 16px;
  letter-spacing: 0.03em;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s ease 0.2s forwards;
}

.hero-title {
  color: white;
  /* Chat 6 R4: ลด max font 3.4rem→2.75rem, line-height 1.45→1.35, margin 24→16 ให้ content พอดี 540px */
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s ease 0.4s forwards;
  /* แก้ปัญหาสระไทยซ้อน 2 บรรทัด — เพิ่ม line-height + padding-block-start ให้สระบนไม่ถูกตัด */
  padding-block-start: 0.2em;
}

.hero-title-accent {
  color: #b5f0c6;
  display: inline-block;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.92);
  /* Chat 6 R4: ลด font + line-height 1.7→1.6 + margin 24→20 ให้ content แน่นขึ้น */
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 620px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s ease 0.6s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s ease 0.8s forwards;
}

.hero-slide:not(.active) .hero-eyebrow,
.hero-slide:not(.active) .hero-title,
.hero-slide:not(.active) .hero-subtitle,
.hero-slide:not(.active) .hero-actions {
  animation: none;
  opacity: 0;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Carousel Controls */
.hero-controls {
  position: absolute;
  /* Chat 6 R7: ขยับขึ้น 32→24 เพราะ Hero เตี้ยลงเป็น 460px */
  bottom: 24px;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-dots {
  display: flex;
  gap: 12px;
}

.hero-dot {
  width: 36px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  transition: all var(--transition);
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.hero-dot.active {
  background: white;
  width: 56px;
}

.hero-arrows {
  display: flex;
  gap: 12px;
}

.hero-arrow {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  transition: all var(--transition);
}

.hero-arrow:hover {
  background: white;
  color: var(--color-primary);
  transform: scale(1.05);
}

.hero-arrow svg {
  width: 22px;
  height: 22px;
}

/* ==========================================================================
   STATS SECTION
   ========================================================================== */
.stats-section {
  padding: 64px 0;
  background: white;
  border-bottom: 1px solid var(--color-border-soft);
  position: relative;
  margin-top: -40px;
  z-index: 5;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  background: white;
  border-radius: var(--radius-xl);
  padding: 48px 32px;
  box-shadow: 0 20px 60px rgba(1, 111, 48, 0.08), 0 8px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--color-border-soft);
}

.stat-item {
  text-align: center;
  position: relative;
  padding: 0 16px;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: var(--color-border);
}

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--color-primary-pale);
  color: var(--color-primary);
  border-radius: 16px;
  margin-bottom: 16px;
}

.stat-icon svg {
  width: 28px;
  height: 28px;
}

.stat-number {
  display: inline-block;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-suffix {
  display: inline-block;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.stat-label {
  margin-top: 8px;
  font-size: 15px;
  color: var(--color-text-muted);
  font-weight: 500;
}
/* ==========================================================================
   WHY CHOOSE US
   ========================================================================== */
.why-section {
  background: var(--color-bg-soft);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-card {
  background: white;
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-soft);
  text-align: center;
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.why-card:hover::before {
  transform: scaleX(1);
}

.why-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: var(--color-primary-pale);
  color: var(--color-primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.why-card:hover .why-icon {
  background: var(--color-primary);
  color: white;
  transform: rotate(-5deg) scale(1.05);
}

.why-icon svg {
  width: 36px;
  height: 36px;
}

.why-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.why-card p {
  font-size: 14.5px;
  line-height: 1.65;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.cta-section {
  padding: 80px 0;
  background: white;
}

.cta-box {
  background: linear-gradient(135deg, #016F30 0%, #014a20 100%);
  border-radius: var(--radius-xl);
  padding: 64px 56px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(2, 164, 71, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-box::after {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -80px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(2, 164, 71, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  color: white;
  margin-bottom: 16px;
  margin-top: 16px;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
  line-height: 1.7;
}

.cta-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}

.cta-actions .btn {
  justify-content: center;
}

/* ==========================================================================
   RESPONSIVE — Index Page
   ========================================================================== */
@media (max-width: 1024px) {
  /* Chat 6 R7: ลบ override min-height — ให้ใช้ 460px เท่า desktop (Hero ทุกหน้าเท่ากัน) */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; padding: 40px 24px; }
  .stat-item:nth-child(2)::after { display: none; }
  .stat-item:not(:last-child)::after { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .coverage-layout { grid-template-columns: 1fr; gap: 48px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-box { grid-template-columns: 1fr; gap: 32px; padding: 48px 32px; text-align: center; }
  .cta-actions { align-items: center; flex-direction: row; flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 768px) {
  .hero-carousel {
    /* Chat 7: เลิก fixed height → min-height + auto (ปุ่มไม่หาย, content ยาวยืดได้) */
    min-height: 420px;
    padding-top: var(--navbar-height);
  }
  /* Chat 6 R1: padding ซ้าย-ขวา 24px / R7: padding-top = navbar + 24 ตรงกับหน้าอื่น (ตัวหนังสือตรงกัน) */
  .hero-content {
    padding: calc(var(--navbar-height) + 24px) 24px 48px;
  }
  .hero-controls { bottom: 16px; }
  .hero-arrows { display: none; }
  .hero-actions .btn { flex: 1; min-width: 140px; }

  .stats-section { padding: 48px 0; margin-top: 0; }
  .stats-grid { padding: 32px 20px; gap: 24px; }

  .services-grid { grid-template-columns: 1fr; gap: 20px; }

  .coverage-layout { gap: 40px; }
  .coverage-map { padding: 20px; }
  .coverage-badge { top: 12px; right: 12px; padding: 14px 18px; }
  .coverage-badge-number { font-size: 28px; }

  .why-grid { grid-template-columns: 1fr; gap: 16px; }
  .why-card { padding: 28px 24px; }

  .cta-box { padding: 40px 24px; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .stat-number, .stat-suffix { font-size: 2rem; }
  .stats-grid { grid-template-columns: 1fr; }
}


/* ==========================================================================
   CHAT 2 v2 — Updates from feedback
   ========================================================================== */

/* ---------- (1) NAVBAR LOGO — logo โปร่งใส ไม่ต้องมี bg แล้ว ---------- */
/* logo ทั้ง 2 ตัวเป็น PNG โปร่งใสจริง วางบน navbar ขาวได้สวยเลย */
.navbar-logo-group {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

/* ==========================================================================
   (3) COLD CHAIN SERVICE CARD — single featured card
   ========================================================================== */
.services-section {
  background: var(--color-bg-soft);
}

.cold-chain-card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(1, 111, 48, 0.1), 0 8px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--color-border-soft);
  color: inherit;
  transition: all var(--transition-slow);
  max-width: 1100px;
  margin: 0 auto;
}

.cold-chain-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 80px rgba(1, 111, 48, 0.15), 0 12px 24px rgba(0, 0, 0, 0.06);
}

/* ---------- Cold Chain Visual (left side) — ใช้รูปจริง ---------- */
.cold-chain-visual {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  background: #014a20;
}

/* รูปจริงของฝูงรถ — cover ให้เต็มกรอบ */
.cold-chain-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  position: absolute;
  inset: 0;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.cold-chain-card:hover .cold-chain-photo {
  transform: scale(1.03);
}

/* ---------- Cold Chain Body (right side) ---------- */
.cold-chain-body {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.cold-chain-icon {
  width: 56px;
  height: 56px;
  background: var(--color-primary-pale);
  color: var(--color-primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.cold-chain-icon svg {
  width: 28px;
  height: 28px;
}

.cold-chain-body h3 {
  font-size: 1.65rem;
  margin-bottom: 16px;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.cold-chain-desc {
  font-size: 15.5px;
  line-height: 1.7;
  margin-bottom: 28px;
  color: var(--color-text-muted);
}

.cold-chain-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.feature-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  color: var(--color-text);
  font-weight: 500;
}

.feature-pill svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  background: var(--color-primary-pale);
  border-radius: 50%;
  padding: 3px;
  flex-shrink: 0;
}

.cold-chain-cta {
  display: flex;
}

.cold-chain-cta .btn {
  width: auto;
}

/* ==========================================================================
   (4) COVERAGE NETWORK MAP — Thailand real outline + hub & spoke
   ========================================================================== */
.coverage-section {
  background: white;
}

.coverage-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.coverage-info h2 {
  margin-bottom: 20px;
  line-height: 1.2;
}

.coverage-info > p {
  font-size: 17px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.coverage-list {
  list-style: none;
  margin-bottom: 36px;
}

.coverage-list li {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border-soft);
}

.coverage-list li:last-child {
  border-bottom: none;
}

.coverage-list-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}

.coverage-list-icon span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
}

.coverage-list strong {
  display: block;
  color: var(--color-text);
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 16px;
}

.coverage-list p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.coverage-map {
  position: relative;
  padding: 32px;
  background: linear-gradient(135deg, #f8faf9 0%, var(--color-primary-pale) 100%);
  border-radius: var(--radius-xl);
}

/* Thailand map — รูปภาพจริงของบริษัท พื้นหลังโปร่งใส */
.thailand-map-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.thailand-map-img {
  width: 100%;
  max-width: 460px;
  height: auto;
  max-height: 720px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 10px 30px rgba(1, 111, 48, 0.15));
  animation: mapFloatIn 1s ease-out;
}

@keyframes mapFloatIn {
  from { opacity: 0; transform: scale(0.95) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ลบ legacy CSS ของ SVG map */
.thailand-map {
  width: 100%;
  height: auto;
  max-height: 640px;
  display: block;
  margin: 0 auto;
}

/* Network lines — animated dash flow (เก็บไว้เผื่อใช้ในอนาคต) */
.net-line {
  stroke: #016F30;
  stroke-width: 2;
  stroke-dasharray: 6 4;
  stroke-linecap: round;
  opacity: 0.55;
  animation: dashFlow 1.5s linear infinite;
}

@keyframes dashFlow {
  to { stroke-dashoffset: -20; }
}

/* Regional node glow */
.node-glow {
  transform-origin: center;
  animation: nodeGlow 3s ease-in-out infinite;
}

@keyframes nodeGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.25); }
}

/* HQ pulse rings */
.hq-pulse {
  transform-origin: center;
  animation: hqPulse 2.4s ease-out infinite;
}

.hq-pulse-1 { animation-delay: 0s; }
.hq-pulse-2 { animation-delay: 1.2s; }

@keyframes hqPulse {
  0%   { transform: scale(0.4); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Coverage badge */
.coverage-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  background: white;
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--color-primary-pale);
}

.coverage-badge-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.coverage-badge-text {
  font-size: 13px;
  color: var(--color-text-muted);
  font-weight: 500;
  line-height: 1.4;
}

/* Legend */
.coverage-legend {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-soft);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 500;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-hq {
  background: #FE0001;
  border: 2px solid white;
  box-shadow: 0 0 0 1px #FE0001;
}

.legend-hub {
  background: #016F30;
  border: 2px solid white;
  box-shadow: 0 0 0 1px #016F30;
}

.legend-line {
  width: 18px;
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    var(--color-primary) 0 6px,
    transparent 6px 10px
  );
  flex-shrink: 0;
}

/* ==========================================================================
   (6) CLIENT LOGO MARQUEE
   ========================================================================== */
.clients-section {
  padding: 80px 0;
  background: var(--color-bg-soft);
  overflow: hidden;
}

.clients-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.clients-header h2 {
  margin-top: 12px;
}

.marquee-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 16px 0;
}

.marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: marqueeScroll 40s linear infinite;
}

/* หยุดเลื่อนเมื่อ hover */
.marquee-container:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.client-logo {
  flex: 0 0 auto;
  width: 180px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-soft);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all var(--transition);
  padding: 16px 20px;
}

.client-logo:hover {
  border-color: var(--color-primary-pale);
  box-shadow: 0 4px 16px rgba(1, 111, 48, 0.12);
  transform: translateY(-2px);
}

/* ภาพ logo ลูกค้า — แสดงสีสดเต็มที่ตั้งแต่แรก */
.client-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform var(--transition);
}

.client-logo:hover img {
  transform: scale(1.05);
}

.client-logo-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-light);
  letter-spacing: 0.05em;
}

/* Fade edges สำหรับ marquee */
.marquee-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  pointer-events: none;
  z-index: 2;
}

.marquee-fade-left {
  left: 0;
  background: linear-gradient(to right, var(--color-bg-soft) 0%, transparent 100%);
}

.marquee-fade-right {
  right: 0;
  background: linear-gradient(to left, var(--color-bg-soft) 0%, transparent 100%);
}

/* ==========================================================================
   (5) CTA SECTION — fix font + eyebrow background
   ========================================================================== */
.cta-section {
  padding: 80px 0;
  background: white;
}

.cta-box {
  background: linear-gradient(135deg, #016F30 0%, #014a20 100%);
  border-radius: var(--radius-xl);
  padding: 56px 56px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(2, 164, 71, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-box::after {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -80px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(2, 164, 71, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

/* CTA eyebrow — กลมกลืนกับพื้นเขียว (item 5) */
.cta-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 18px;
  letter-spacing: 0.03em;
}

/* CTA heading — เล็กลงให้จบ 1 บรรทัด (item 5) */
.cta-heading {
  color: white;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.3;
  margin-bottom: 14px;
  white-space: normal;
}

@media (min-width: 1100px) {
  .cta-heading {
    white-space: nowrap;
  }
}

.cta-content p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 15.5px;
  line-height: 1.7;
}

.cta-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.cta-actions .btn {
  justify-content: center;
}

/* ==========================================================================
   RESPONSIVE — v2 sections
   ========================================================================== */
@media (max-width: 1024px) {
  .cold-chain-card { grid-template-columns: 1fr; }
  .cold-chain-visual { min-height: 280px; }
  .cold-chain-body { padding: 36px 32px; }

  .coverage-layout { grid-template-columns: 1fr; gap: 48px; }
  .coverage-map { padding: 20px; }
  .thailand-map { max-height: 520px; }
  .coverage-legend { position: static; margin-top: 16px; flex-direction: row; flex-wrap: wrap; }

  .cta-box { grid-template-columns: 1fr; gap: 28px; padding: 44px 32px; text-align: center; }
  .cta-actions { align-items: center; flex-direction: row; flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 768px) {
  .navbar-logo-group { padding: 0; gap: 8px; }

  .cold-chain-body { padding: 28px 24px; }
  .cold-chain-body h3 { font-size: 1.35rem; }
  .temp-badge { font-size: 11px; padding: 6px 10px; }

  .coverage-badge { top: 12px; right: 12px; padding: 12px 16px; }
  .coverage-badge-number { font-size: 26px; }
  .thailand-map-img { max-width: 100%; }

  .client-logo { width: 140px; height: 70px; padding: 12px 14px; }
  .client-logo-text { font-size: 12px; }
  .marquee-fade { width: 60px; }

  .cta-box { padding: 36px 24px; }
  .cta-heading { font-size: 1.3rem; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; }
}

@media (max-width: 480px) {
  .navbar-logo-group { padding: 0; gap: 6px; }
  .navbar-logo-group img { height: 30px; }
}


/* ==========================================================================
   ABOUT SECTION — Split Layout (NEW Chat 2 final)
   Content ซ้าย, รูปขวา (mirror กับ Service section ที่รูปอยู่ซ้าย)
   ========================================================================== */
.about-section {
  background: white;
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(2, 164, 71, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.about-content h2 {
  margin: 16px 0 24px;
  line-height: 1.3;
}

.about-lead {
  font-size: 17px;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-bottom: 36px;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.about-highlight {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.about-highlight-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--color-primary-pale);
  color: var(--color-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-highlight-icon svg {
  width: 24px;
  height: 24px;
}

.about-highlight strong {
  display: block;
  color: var(--color-text);
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 16px;
}

.about-highlight p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* About link — text link แบบ subtle (ไม่ใช่ปุ่มเต็ม เพื่อไม่ชนกับ Service CTA) */
.about-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 16px;
  padding: 12px 0;
  border-bottom: 2px solid var(--color-primary);
  transition: all var(--transition);
}

.about-link svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition);
}

.about-link:hover {
  color: var(--color-primary-dark);
  gap: 14px;
}

.about-link:hover svg {
  transform: translateX(4px);
}

/* About Visual — รูปขวา + Badge ลอย */
.about-visual {
  position: relative;
}

.about-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(1, 111, 48, 0.15), 0 8px 20px rgba(0, 0, 0, 0.06);
  aspect-ratio: 4 / 3;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.about-visual:hover .about-image img {
  transform: scale(1.04);
}

/* Floating badge บนรูป */
.about-image-badge {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: white;
  padding: 20px 28px;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(1, 111, 48, 0.18);
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--color-primary-pale);
}

.about-badge-number {
  font-size: 40px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.about-badge-label {
  font-size: 13px;
  color: var(--color-text-muted);
  font-weight: 500;
  line-height: 1.4;
}

/* Responsive About */
@media (max-width: 1024px) {
  .about-layout { grid-template-columns: 1fr; gap: 56px; }
  .about-image-badge { bottom: -16px; left: 16px; padding: 16px 22px; }
  .about-badge-number { font-size: 32px; }
}

@media (max-width: 768px) {
  .about-content h2 { font-size: 1.6rem; }
  .about-lead { font-size: 15.5px; }
  .about-image-badge { padding: 14px 18px; gap: 10px; }
  .about-badge-number { font-size: 28px; }
  .about-badge-label { font-size: 12px; }
}

/* ==========================================================================
   NAVBAR ACTIVE STATE — Scroll Spy
   ใช้กับ class .scroll-active (เพิ่มจาก JS เมื่อ scroll ถึง section)
   ========================================================================== */
.navbar-menu a.scroll-active {
  color: var(--color-primary);
  font-weight: 600;
}

.navbar-menu a.scroll-active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

/* Smooth scroll สำหรับ anchor links */
html {
  scroll-padding-top: var(--navbar-height);
}

/* ==========================================================================
   PAGE HERO (compact hero สำหรับหน้าใน เช่น services / about / careers)
   ========================================================================== */
.page-hero {
  position: relative;
  /* Chat 6 R8: ลบ min-height: 42vh ออก — ทุกหน้าใช้ .page-hero--photo ที่ set height: 540px แล้ว */
  /* (42vh ที่จอสูงๆ จะ > 540 ทำให้ Hero สูงเกิน → conflict) */
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(1, 74, 32, 0.92) 0%, rgba(1, 111, 48, 0.88) 100%),
    radial-gradient(circle at 80% 30%, rgba(2, 164, 71, 0.4) 0%, transparent 50%);
  background-color: var(--color-primary-dark);
  padding: calc(var(--navbar-height) + 48px) 0 64px;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0,
      transparent 80px,
      rgba(255, 255, 255, 0.025) 80px,
      rgba(255, 255, 255, 0.025) 81px
    );
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.page-hero-eyebrow {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  /* Chat 6 R6: ลด margin-bottom 20→14 ให้ compact */
  margin-bottom: 14px;
  backdrop-filter: blur(8px);
}

.page-hero-title {
  color: white;
  /* Chat 6 R6: ลด font 3.25rem→2.5rem, line-height 1.45→1.35, margin 20→14 ให้พอดี Hero เล็กลง */
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.35;
  padding-block-start: 0.2em;
  margin-bottom: 14px;
}

.page-hero-title .accent {
  color: #7df0a8;
}

.page-hero-subtitle {
  color: rgba(255, 255, 255, 0.92);
  /* Chat 6 R6: ลด font 18→16, line-height 1.75→1.6 ให้แน่นขึ้น */
  font-size: 16px;
  line-height: 1.6;
  max-width: 640px;
}

.page-hero-breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  /* Chat 6 R6: ลด margin-top 28→20 ให้พอดี Hero เล็กลง */
  margin-top: 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.page-hero-breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition);
}

.page-hero-breadcrumb a:hover {
  color: white;
}

.page-hero-breadcrumb svg {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

@media (max-width: 768px) {
  .page-hero--photo {
    /* Chat 7: เลิก fixed height → min-height + auto (ปุ่ม/ข้อความยาวไม่ถูกตัดบน mobile) */
    min-height: 420px;
    padding: calc(var(--navbar-height) + 24px) 0 48px;
  }
  /* Chat 6 R1: เพิ่ม padding ซ้าย-ขวา 24px ป้องกัน text ชิดขอบมือถือ */
  .page-hero-content { padding-inline: 24px; }
}

/* --------------------------------------------------------------------------
   .page-hero--photo : modifier ที่เพิ่มรูปพื้นหลัง + green overlay
   ใช้คู่กับ <div class="page-hero-bg" style="background-image: url(...)"></div>
   -------------------------------------------------------------------------- */
.page-hero--photo {
  /* Chat 7: เลิก fixed height → min-height + auto (responsive, content ยาวไม่ถูกตัด) */
  min-height: 460px;
  align-items: flex-start;
  padding: calc(var(--navbar-height) + 28px) 0 48px;
  /* override gradient พื้นเดิมของ .page-hero ให้เหลือแค่สีเข้มเป็น fallback */
  background: var(--color-primary-dark);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(4px);
  transform: scale(1.05); /* กลบขอบเบลอ */
  z-index: 0;
}

.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(1, 74, 32, 0.88) 0%, rgba(1, 111, 48, 0.78) 60%, rgba(1, 111, 48, 0.65) 100%);
}

.page-hero--photo .page-hero-content {
  z-index: 2;
}

/* Chat 6 R6: mobile rule moved to earlier @media (max-width: 768px) block — removed redundant rule */

/* ==========================================================================
   SERVICES PAGE — Overview (3 key points)
   ========================================================================== */
.service-overview {
  padding: 80px 0;
  background: var(--color-bg);
}

.service-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}

.service-overview-card {
  text-align: center;
  padding: 32px 24px;
}

.service-overview-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 18px;
  background: var(--color-primary-pale);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
}

.service-overview-card:hover .service-overview-icon {
  transform: scale(1.05);
  background: var(--color-primary);
  color: white;
}

.service-overview-icon svg {
  width: 36px;
  height: 36px;
}

.service-overview-card h3 {
  font-size: 19px;
  margin-bottom: 12px;
  line-height: 1.45;
  padding-block-start: 0.15em;
}

.service-overview-card p {
  font-size: 15px;
  line-height: 1.75;
}

@media (max-width: 900px) {
  .service-overview-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 40px;
  }
  .service-overview-card {
    padding: 24px 16px;
  }
}

/* ==========================================================================
   FLEET — Quick Compare grid + Detail showcase
   ========================================================================== */
.fleet-section {
  padding: 96px 0;
  background: var(--color-bg-soft);
}

.fleet-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 56px;
  margin-bottom: 96px;
}

.fleet-quick-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 20px 32px;
  text-align: center;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.fleet-quick-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.fleet-quick-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.fleet-quick-card:hover::before {
  transform: scaleX(1);
}

.fleet-quick-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-primary-pale);
  color: var(--color-primary-dark);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  align-self: center;
}

.fleet-quick-badge.frozen {
  background: #e0f2fe;
  color: #0369a1;
}

.fleet-quick-image {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0 8px;
}

.fleet-quick-image img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform var(--transition);
}

.fleet-quick-card:hover .fleet-quick-image img {
  transform: scale(1.05);
}

.fleet-quick-card h3 {
  font-size: 23px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.4;
  padding-block-start: 0.15em;
  margin-bottom: 4px;
}

.fleet-quick-subtitle {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.fleet-quick-stats {
  display: flex;
  justify-content: space-around;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}

.fleet-quick-stat {
  text-align: center;
}

.fleet-quick-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

.fleet-quick-stat-label {
  font-size: 11px;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

@media (max-width: 1024px) {
  .fleet-quick-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 500px) {
  .fleet-quick-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Fleet Detail Showcase (alternating left-right) ---------- */
.fleet-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 80px;
  padding: 32px 0;
}

.fleet-detail:last-child {
  margin-bottom: 0;
}

.fleet-detail.reverse {
  direction: rtl;
}

.fleet-detail.reverse > * {
  direction: ltr;
}

.fleet-detail-visual {
  position: relative;
}

.fleet-detail-mainimg {
  width: 100%;
  background: linear-gradient(135deg, var(--color-primary-pale) 0%, #f4faf6 100%);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  position: relative;
  overflow: hidden;
}

.fleet-detail-mainimg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(1, 111, 48, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(2, 164, 71, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.fleet-detail-mainimg img {
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.12));
  position: relative;
  z-index: 1;
}

.fleet-detail-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.fleet-detail-thumb {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
}

.fleet-detail-thumb:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.fleet-detail-thumb img {
  max-height: 80px;
  max-width: 100%;
  object-fit: contain;
}

.fleet-detail-thumb-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
}

/* Content side */
.fleet-detail-body {
  padding: 0 8px;
}

.fleet-detail-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.fleet-detail-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
}

.fleet-detail-eyebrow.frozen .dot {
  background: #0ea5e9;
}

.fleet-detail-body h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 8px;
  line-height: 1.45;
  padding-block-start: 0.15em;
}

.fleet-detail-tagline {
  font-size: 17px;
  color: var(--color-text-muted);
  margin-bottom: 28px;
  line-height: 1.7;
}

.fleet-spec-table {
  border-top: 1px solid var(--color-border);
}

.fleet-spec-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  align-items: center;
}

.fleet-spec-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.fleet-spec-label svg {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.fleet-spec-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
}

.fleet-spec-value .highlight {
  color: var(--color-primary);
}

.fleet-spec-value .badge {
  display: inline-block;
  padding: 2px 10px;
  background: var(--color-primary-pale);
  color: var(--color-primary-dark);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 8px;
}

.fleet-spec-value .badge.no {
  background: #fef2f2;
  color: #b91c1c;
}

@media (max-width: 900px) {
  .fleet-detail {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 64px;
  }
  .fleet-detail.reverse {
    direction: ltr;
  }
  .fleet-detail-visual {
    order: 1;
  }
  .fleet-detail-body {
    order: 2;
  }
  .fleet-detail-mainimg {
    min-height: 280px;
    padding: 24px;
  }
  .fleet-spec-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 0;
  }
  .fleet-spec-value {
    padding-left: 26px;
  }
}

/* ==========================================================================
   CERTIFICATIONS
   ========================================================================== */
.certifications-section {
  padding: 96px 0;
  background: var(--color-bg);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  align-items: stretch;
}

.cert-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cert-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-primary-pale) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.cert-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.cert-card:hover::before {
  opacity: 0.6;
}

/* รูปใบรับรอง (logo + cert ติดกัน เหมือนในสไลด์) */
.cert-image {
  width: 100%;
  height: 160px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.cert-image img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform var(--transition);
}

.cert-card:hover .cert-image img {
  transform: scale(1.04);
}

/* fallback icon (ใช้ก่อนมีรูปจริง) */
.cert-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 24px rgba(1, 111, 48, 0.25);
}

.cert-icon svg {
  width: 48px;
  height: 48px;
}

.cert-card h3 {
  font-size: 22px;
  margin-bottom: 4px;
  line-height: 1.4;
  padding-block-start: 0.15em;
  position: relative;
  z-index: 1;
}

.cert-fullname {
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
}

.cert-card p {
  font-size: 14px;
  line-height: 1.75;
  position: relative;
  z-index: 1;
}

/* issuer = bottom of card (flex: 1 push to bottom) — ทำให้ทั้ง 3 cards ขนานกัน */
.cert-issuer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  font-size: 12px;
  color: var(--color-text-light);
  position: relative;
  z-index: 1;
}

.cert-issuer strong {
  color: var(--color-text-muted);
  font-weight: 600;
}

/* ขยายระยะห่างเหนือ issuer ให้ description ลอย — แต่ issuer ยังอยู่ล่างสุด */
.cert-card > p {
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .cert-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cert-card {
    padding: 28px 24px;
  }
  .cert-image {
    height: 140px;
  }
}


/* ==========================================================================
   ABOUT PAGE — Hero with photo background
   ========================================================================== */
.about-hero {
  position: relative;
  /* Chat 7: เลิก fixed height → min-height + auto (ตรงกับ Hero ทุกหน้า, responsive) */
  /* padding-top = navbar + 28px (ตรงกับ index hero-content เป๊ะ → title แนวเดียวกัน) */
  min-height: 460px;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  padding: calc(var(--navbar-height) + 28px) 0 48px;
  background-color: var(--color-primary-dark);
}

.about-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/aboutus-bg-hero.png');
  background-size: cover;
  background-position: center;
  filter: blur(4px);
  transform: scale(1.05); /* กลบขอบเบลอ */
  z-index: 0;
}

.about-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(1, 74, 32, 0.88) 0%, rgba(1, 111, 48, 0.78) 60%, rgba(1, 111, 48, 0.65) 100%);
}

.about-hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.about-hero-eyebrow {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  /* Chat 6 R6: ลด margin-bottom 20→14 ให้ compact */
  margin-bottom: 14px;
  backdrop-filter: blur(8px);
}

.about-hero-title {
  color: white;
  /* Chat 6 R6: ลด font 3.25rem→2.5rem, line-height 1.45→1.35, margin 20→14 ให้พอดี Hero เล็กลง */
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.35;
  padding-block-start: 0.2em;
  margin-bottom: 14px;
}

.about-hero-title .accent {
  color: #7df0a8;
}

.about-hero-subtitle {
  color: rgba(255, 255, 255, 0.92);
  /* Chat 6 R6: ลด font 18→16, line-height 1.75→1.6 ให้แน่นขึ้น */
  font-size: 16px;
  line-height: 1.6;
  max-width: 640px;
}

.about-hero-breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  /* Chat 6 R6: ลด margin-top 28→20 ให้พอดี Hero เล็กลง */
  margin-top: 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.about-hero-breadcrumb a {
  color: rgba(255, 255, 255, 0.88);
  transition: color var(--transition);
}

.about-hero-breadcrumb a:hover { color: white; }

.about-hero-breadcrumb svg {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

@media (max-width: 768px) {
  /* Chat 7: เลิก fixed height → min-height + auto */
  .about-hero {
    min-height: 420px;
    padding: calc(var(--navbar-height) + 24px) 0 48px;
  }
  /* Chat 6 R1: เพิ่ม padding ซ้าย-ขวา 24px ป้องกัน text ชิดขอบมือถือ */
  .about-hero-content { padding-inline: 24px; }
}

/* ==========================================================================
   OUR STORY (2-column)
   ========================================================================== */
.story-section {
  padding: 96px 0;
  background: var(--color-bg);
}

.story-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

.story-content .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.story-content h2 {
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  margin-bottom: 24px;
  line-height: 1.45;
  padding-block-start: 0.15em;
}

.story-lead {
  font-size: 18px;
  color: var(--color-text);
  font-weight: 500;
  margin-bottom: 20px;
  line-height: 1.75;
}

.story-content p {
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 16px;
  color: var(--color-text-muted);
}

.story-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
}

.story-stat-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.story-stat-label {
  font-size: 13px;
  color: var(--color-text-muted);
  font-weight: 500;
}

.story-visual {
  position: relative;
}

.story-image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.story-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.story-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: white;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
}

.story-badge-icon {
  width: 40px;
  height: 40px;
  background: var(--color-primary-pale);
  color: var(--color-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-badge-icon svg {
  width: 22px;
  height: 22px;
}

.story-badge-text strong {
  display: block;
  font-size: 15px;
  color: var(--color-text);
  font-weight: 700;
}

.story-badge-text span {
  font-size: 12px;
  color: var(--color-text-muted);
}

@media (max-width: 900px) {
  .story-layout { grid-template-columns: 1fr; gap: 40px; }
  .story-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .story-stat-num { font-size: 26px; }
}

/* ==========================================================================
   JOURNEY / TIMELINE — เส้นโค้งเติบโต + 3 milestone cards
   ========================================================================== */
.journey-section {
  padding: 96px 0;
  background: var(--color-bg-soft);
  position: relative;
  overflow: hidden;
}

.journey-timeline {
  position: relative;
  margin-top: 80px;
  padding-top: 40px;
}

/* SVG curve absolutely positioned above cards */
.journey-curve {
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 100px;
  pointer-events: none;
  z-index: 1;
}

.journey-curve svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.journey-curve-path {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 2.5;
  stroke-dasharray: 6 6;
  stroke-linecap: round;
  opacity: 0.45;
}

.journey-curve-end {
  fill: var(--color-primary);
  opacity: 0.6;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
  z-index: 2;
}

.journey-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.journey-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.journey-card.affiliate {
  border-style: dashed;
  background: linear-gradient(180deg, white 0%, var(--color-bg-soft) 100%);
}

.journey-year-pill {
  display: inline-block;
  align-self: center;
  padding: 6px 18px;
  background: var(--color-primary);
  color: white;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(1, 111, 48, 0.25);
}

.journey-card.affiliate .journey-year-pill {
  background: white;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  box-shadow: none;
}

.journey-logo {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.journey-logo img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.journey-card h3 {
  font-size: 19px;
  margin-bottom: 12px;
  line-height: 1.45;
  padding-block-start: 0.15em;
  color: var(--color-primary-dark);
}

.journey-card p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.journey-tag {
  margin-top: auto;
  display: inline-block;
  align-self: center;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.journey-tag.core {
  background: var(--color-primary-pale);
  color: var(--color-primary-dark);
}

.journey-tag.affiliate {
  background: #fef3c7;
  color: #92400e;
}

@media (max-width: 900px) {
  .journey-curve { display: none; }
  .journey-grid { grid-template-columns: 1fr; gap: 20px; }
  .journey-timeline { margin-top: 32px; padding-top: 0; }
}

/* ==========================================================================
   VISION / MISSION / GOAL — 3 cards
   ========================================================================== */
.vmg-section {
  padding: 96px 0;
  background: var(--color-bg);
}

.vmg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  align-items: stretch;
}

.vmg-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.vmg-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}

.vmg-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.vmg-card:hover::before {
  transform: scaleX(1);
}

.vmg-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(1, 111, 48, 0.2);
}

.vmg-icon svg {
  width: 30px;
  height: 30px;
}

.vmg-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.vmg-card h3 {
  font-size: 24px;
  margin-bottom: 16px;
  line-height: 1.45;
  padding-block-start: 0.15em;
  color: var(--color-text);
}

.vmg-card p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--color-text-muted);
  flex: 1;
}

.vmg-card .highlight {
  color: var(--color-primary);
  font-weight: 600;
}

@media (max-width: 900px) {
  .vmg-grid { grid-template-columns: 1fr; gap: 16px; }
  .vmg-card { padding: 32px 24px; }
}

/* ============================================================
   CONTACT PAGE — Contact Section + Form
   ============================================================ */

.contact-section {
  padding: 80px 0 60px;
  background: var(--color-bg-soft);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}
/* Chat 7: grid/flex item ต้อง min-width:0 ไม่งั้น iframe/content ดันคอลัมน์เกินจอ (มือถือ overflow) */
.contact-grid > * {
  min-width: 0;
}

/* --- Left column: map + info --- */
.contact-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.contact-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  aspect-ratio: 16 / 10;
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-map {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  flex: 1;
  min-height: 360px;
  min-width: 0;
  max-width: 100%;
}

.contact-map iframe {
  width: 100%;
  max-width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.contact-map-open {
  position: absolute;
  top: 12px;
  left: 12px;
  background: white;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.contact-map-open:hover {
  background: var(--color-primary);
  color: white;
}

.contact-map-open svg {
  width: 14px;
  height: 14px;
}

.contact-info-block {
  background: white;
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.65;
}

.contact-info-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: 2px;
}

.contact-info-item a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-info-item a:hover {
  color: var(--color-primary);
}

.contact-info-item strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 2px;
  letter-spacing: 0.02em;
}

/* --- Right column: form --- */
.contact-form-wrap {
  background: white;
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
}

.contact-form-intro {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 6px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--color-text);
  background: white;
  border: 1.5px solid #e1e6e3;
  border-radius: 10px;
  padding: 14px 16px;
  transition: all 0.2s ease;
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #a5b0aa;
}

.contact-form input:hover,
.contact-form select:hover,
.contact-form textarea:hover {
  border-color: #c4ccc8;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(1, 111, 48, 0.1);
}

.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%235a6b62' stroke-width='2'%3e%3cpath d='M1 1l5 5 5-5'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
  cursor: pointer;
}

.contact-form textarea {
  resize: none;
  height: 140px;
  line-height: 1.6;
  overflow-y: auto;
}

.contact-form-submit {
  margin-top: 8px;
  align-self: stretch;
  border-radius: 999px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: var(--color-primary);
  color: white;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.contact-form-submit:hover:not(:disabled) {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(1, 111, 48, 0.25);
}

.contact-form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.contact-form-submit svg {
  width: 18px;
  height: 18px;
}

/* Form status message */
.contact-form-status {
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  margin-top: 8px;
  display: none;
}

.contact-form-status.success {
  display: block;
  background: #e6f4ec;
  color: var(--color-primary-dark);
  border: 1px solid var(--color-primary-pale);
}

.contact-form-status.error {
  display: block;
  background: #fdecec;
  color: #b00000;
  border: 1px solid #fcc;
}

/* Required asterisk */
.contact-form .required {
  color: var(--color-accent);
  margin-left: 2px;
}

/* --- Responsive --- */
@media (max-width: 980px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .contact-form-wrap {
    padding: 28px 24px;
  }
}

@media (max-width: 600px) {
  .contact-section {
    padding: 60px 0 40px;
  }
  
  .contact-form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .contact-map {
    min-height: 280px;
    aspect-ratio: 16 / 11;
  }
  
  .contact-info-block {
    padding: 20px 22px;
  }
  
  .contact-form-wrap {
    padding: 24px 20px;
  }
}

/* ============================================================
   CAREERS PAGE — Job listings + Apply channels
   ============================================================ */

/* --- Section: Why join us (reuse .vmg-grid pattern but make 3-col) --- */
.why-join-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .why-join-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* --- Section: Open positions --- */
.positions-section {
  background: var(--color-bg-soft);
}

.positions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.position-card {
  background: white;
  border: 1.5px solid #e6ebe8;
  border-radius: 16px;
  padding: 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.position-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.position-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 10px 30px rgba(1, 111, 48, 0.1);
  transform: translateY(-3px);
}

.position-card:hover::before {
  transform: scaleX(1);
}

.position-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.position-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.45;
  padding-block-start: 0.15em;
  margin: 0;
  flex: 1;
}

.position-department {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-primary-pale);
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.position-card p {
  font-size: 14.5px;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
  flex: 1;
}

.position-apply-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  margin-top: auto;
  padding-top: 4px;
  transition: gap 0.2s ease;
}

.position-apply-link:hover {
  gap: 10px;
}

.position-apply-link svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 800px) {
  .positions-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .position-card {
    padding: 24px 22px;
  }
  .position-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- Section: Apply channels --- */
.apply-channels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.apply-channel-card {
  background: white;
  border: 1.5px solid #e6ebe8;
  border-radius: 16px;
  padding: 36px 32px;
  text-align: center;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.apply-channel-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 10px 30px rgba(1, 111, 48, 0.1);
  transform: translateY(-3px);
}

.apply-channel-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(1, 111, 48, 0.2);
}

.apply-channel-icon svg {
  width: 30px;
  height: 30px;
}

.apply-channel-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.45;
  padding-block-start: 0.15em;
  margin: 0;
}

.apply-channel-card .channel-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary);
  word-break: break-all;
}

.apply-channel-card .channel-value a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.apply-channel-card .channel-value a:hover {
  color: var(--color-primary-dark);
}

.apply-channel-card .channel-hint {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

@media (max-width: 700px) {
  .apply-channels-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .apply-channel-card {
    padding: 28px 24px;
  }
  .apply-channel-card .channel-value {
    font-size: 16px;
  }
}
