/* ==========================================================================
   YuuFarm — เว็บไซต์สาธารณะ (แอปจัดการฟาร์มสำหรับเกษตรกร)
   สไตล์ชุดเดียวใช้ทั้งหน้า landing และหน้าเอกสาร (คู่กับ doc.css)
   โครงสร้างคลาสตรงกับ yuufood-landing ทุกตัว เพื่อให้สองเว็บดูเป็นชุดเดียวกัน
   ========================================================================== */

/* ---- ชุดสี YuuFarm ----
   #2E7D32 คือเขียวแบรนด์ YuuFarm (ตัวเดียวกับ _primaryGreen ในแอป Flutter)
   ต่างจาก YuuFood ตรงที่เขียวตัวนี้ใช้ได้ทั้งสองทางโดยไม่ต้องแยกเฉด:
     ตัวอักษรขาวบนพื้น #2E7D32  = 5.1:1  (ผ่าน AA)
     #2E7D32 เป็นตัวอักษรบนพื้น --bg = 4.8:1  (ผ่าน AA)
   จึงไม่ต้องมี --brand / --primary แยกกันเหมือนฝั่ง YuuFood
   เฉดอื่นอ้างอิงจากแอปโดยตรง: 1B5E20 เข้ม, 4CAF50 รอง, 059669 สำเร็จ
*/
:root {
  --brand: #2E7D32;
  --brand-dark: #1B5E20;
  --brand-bright: #43A047;
  --primary: #2E7D32;
  --primary-light: #388E3C;
  --accent: #4CAF50;
  --accent-soft: #E8F5E9;

  /* ใช้กับหัวข้อและลิงก์บนพื้นอ่อน เข้มกว่า --primary หนึ่งขั้นเพื่อความคมชัด */
  --ink-brand: #1B5E20;
  --leaf: #4CAF50;
  --leaf-soft: #F0FDF4;

  --bg: #F6FAF6;
  --white: #ffffff;
  --text-dark: #13261A;
  --text-body: #3D4A40;
  --text-light: #64726A;

  --line: rgba(27, 94, 32, 0.10);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px rgba(27, 94, 32, 0.13);
  --shadow-soft: 0 8px 32px rgba(19, 38, 26, 0.07);
  --shadow-lift: 0 26px 60px rgba(27, 94, 32, 0.18);
  --font: 'Inter', 'Sarabun', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  /* กันหัวข้อมุดใต้ navbar ตอนกดลิงก์ #anchor */
  scroll-padding-top: 92px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-body);
  /* เกษตรกรหลายท่านอ่านบนมือถือกลางแดด — เว้นบรรทัดกว้างกว่าฝั่ง YuuFood เล็กน้อย */
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* คีย์บอร์ดโฟกัสต้องเห็นชัดทุกจุด */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(19, 38, 26, 0.05);
  z-index: 1000;
  transition: box-shadow var(--transition), background var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 4px 24px rgba(19, 38, 26, 0.07);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.42rem;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  white-space: nowrap;
}

/* โลโก้จริงของแบรนด์  /assets/yuufarm-logo.png เป็นไฟล์พื้นโปร่งใส
   วางบนพื้นขาวของ navbar ได้ตรงๆ ไม่ต้องมีกรอบสีรอง
   ระบุ width/height ในแท็ก <img> ด้วย เบราว์เซอร์จะกันที่ไว้ตั้งแต่ก่อนโหลดรูป หน้าจะได้ไม่กระตุก */
.nav-logo .logo-mark {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  transition: transform var(--transition);
}

.nav-logo .logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 3px 7px rgba(27, 94, 32, 0.22));
}

.nav-logo:hover .logo-mark {
  transform: rotate(-6deg) scale(1.06);
}

.nav-logo .logo-alt {
  color: var(--primary);
}

/* บนพื้นเข้มของ footer ใช้เขียวสว่างขึ้นให้อ่านออก */
.footer-brand .logo-alt {
  color: #8BD79A;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-body);
  font-weight: 500;
  font-size: 0.96rem;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
}

.btn-nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(46, 125, 50, 0.26);
  transition: var(--transition);
}

.btn-nav-cta:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(46, 125, 50, 0.34);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== ปุ่ม ===== */
.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(46, 125, 50, 0.30);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(46, 125, 50, 0.38);
}

.btn-outline {
  background: var(--white);
  color: var(--primary);
  border-color: rgba(46, 125, 50, 0.24);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: var(--leaf-soft);
  transform: translateY(-2px);
}

/* ===== SECTION ทั่วไป ===== */
.section {
  padding: 88px 24px;
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section-alt {
  background: var(--white);
}

.section-eyebrow {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--ink-brand);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* line-height ของหัวข้อทุกตัวในไฟล์นี้ตั้งไว้กว้างกว่าฝั่ง YuuFood
   เพราะภาษาไทยมีสระบน+วรรณยุกต์ซ้อนกันสองชั้น (เช่น "รู้ต้นทุน")
   ถ้าใช้ 1.2–1.35 แบบข้อความละติน วรรณยุกต์จะไปชนสระล่างของบรรทัดบน */
.section-title {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.45;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.section-lead {
  font-size: 1.06rem;
  color: var(--text-light);
  max-width: 640px;
  margin-bottom: 44px;
}

.center {
  text-align: center;
}

.center .section-lead {
  margin-left: auto;
  margin-right: auto;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 150px 24px 90px;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(76, 175, 80, 0.20), transparent 62%),
    radial-gradient(760px 420px at 6% 105%, rgba(46, 125, 50, 0.12), transparent 60%),
    var(--bg);
}

/* เส้นขอบล่างจาง ๆ ให้ hero มีความลึกโดยไม่เพิ่มข้อมูลบนหน้า */
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46, 125, 50, 0.18), transparent);
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid rgba(46, 125, 50, 0.18);
  color: var(--primary);
  font-size: 0.89rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-soft);
}

.hero-title {
  font-size: clamp(2.1rem, 5vw, 3.35rem);
  font-weight: 900;
  line-height: 1.42;
  color: var(--text-dark);
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.hero-title .hl {
  color: var(--primary);
}

.hero-sub {
  font-size: 1.12rem;
  color: var(--text-light);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 0.94rem;
  color: var(--text-light);
}

.hero-notes span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-notes i {
  color: var(--primary);
}

/* ---- การ์ดตัวอย่างในฝั่งขวาของ hero ---- */
.hero-card {
  position: relative;
  background: var(--white);
  border-radius: 26px;
  padding: 26px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(46, 125, 50, 0.08);
}

/* แสงเรือง ๆ หลังการ์ด — ให้ความลึกแบบไม่รบกวนสายตา */
.hero-card::before {
  content: '';
  position: absolute;
  inset: 14px 14px -18px 14px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.30), rgba(46, 125, 50, 0.14));
  filter: blur(26px);
  z-index: -1;
}

.hero-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(19, 38, 26, 0.08);
  margin-bottom: 16px;
}

.hero-card-title {
  font-weight: 800;
  color: var(--text-dark);
  font-size: 1.04rem;
}

.pill {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--ink-brand);
}

.pill-leaf {
  background: var(--leaf-soft);
  color: #059669;
}

.hero-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 0;
}

.hero-row + .hero-row {
  border-top: 1px dashed rgba(19, 38, 26, 0.10);
}

.hero-row-name {
  flex: 1;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.96rem;
}

.hero-row-meta {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 400;
  display: block;
}

.hero-row-price {
  font-weight: 800;
  color: var(--text-dark);
  white-space: nowrap;
}

.hero-row-price.minus {
  color: var(--text-light);
}

.hero-row.total .hero-row-price {
  color: var(--primary);
  font-size: 1.12rem;
}

.hero-card-foot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(19, 38, 26, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.92rem;
}

.hero-card-foot strong {
  color: var(--primary);
  font-size: 1.15rem;
}

/* ===== การ์ดจุดเด่น ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.feature {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 28px;
  border: 1px solid rgba(19, 38, 26, 0.06);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: var(--transition);
}

/* แถบสีบางด้านบน ค่อย ๆ ยืดออกตอน hover — micro-interaction ที่ไม่เพิ่มข้อมูลบนหน้า */
.feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--brand-dark), var(--accent));
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature:hover::before {
  width: 100%;
}

.section-alt .feature {
  background: var(--bg);
}

.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 125, 50, 0.18);
  box-shadow: var(--shadow-lift);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  background: var(--accent-soft);
  color: var(--primary);
  margin-bottom: 18px;
  transition: var(--transition);
}

.feature:hover .feature-icon {
  transform: scale(1.08);
  background: var(--primary);
  color: var(--white);
}

.feature-icon.leaf {
  background: var(--leaf-soft);
  color: #059669;
}

.feature h3 {
  font-size: 1.14rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 9px;
}

.feature p {
  font-size: 0.98rem;
  color: var(--text-light);
}

/* ===== ขั้นตอน ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
}

.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 22px;
  border: 1px solid rgba(19, 38, 26, 0.06);
  position: relative;
  transition: var(--transition);
}

.section-alt .step {
  background: var(--bg);
}

.step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(46, 125, 50, 0.18);
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-dark), var(--primary));
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 14px;
  box-shadow: 0 6px 16px rgba(27, 94, 32, 0.26);
}

.step h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 7px;
}

.step p {
  font-size: 0.93rem;
  color: var(--text-light);
}

/* ===== ตาราง (ใช้ในหน้า landing ด้วย) ===== */
.table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  background: var(--white);
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
  font-size: 0.98rem;
}

.table thead th {
  background: var(--primary);
  color: var(--white);
  text-align: left;
  font-weight: 600;
  padding: 14px 18px;
  white-space: nowrap;
}

.table tbody td {
  padding: 13px 18px;
  border-bottom: 1px solid rgba(19, 38, 26, 0.07);
  vertical-align: top;
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table tbody tr:nth-child(even) {
  background: rgba(246, 250, 246, 0.9);
}

.price {
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

/* ===== FAQ ===== */
.faq-item {
  background: var(--white);
  border: 1px solid rgba(19, 38, 26, 0.07);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 12px;
  transition: var(--transition);
}

.section-alt .faq-item {
  background: var(--bg);
}

.faq-item:hover {
  border-color: rgba(46, 125, 50, 0.22);
  box-shadow: var(--shadow-soft);
}

.faq-item h3 {
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  display: flex;
  gap: 10px;
}

.faq-item h3 i {
  color: var(--primary);
  margin-top: 5px;
}

.faq-item p {
  font-size: 0.98rem;
  color: var(--text-light);
  padding-left: 26px;
}

/* ===== ดาวน์โหลดแอป ===== */
.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 8px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 26px;
  border-radius: 16px;
  background: var(--text-dark);
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

/* สถานะ "ยังไม่เปิดให้ดาวน์โหลด" — ใช้ <span> แทน <a> จะได้ไม่มีลิงก์ตาย
   ลิงก์ที่กดแล้ว 404 เป็นจุดที่ผู้ตรวจของสโตร์และ payment gateway จับได้ง่ายที่สุด */
.store-btn.soon {
  background: var(--white);
  color: var(--text-light);
  border: 1px dashed rgba(46, 125, 50, 0.35);
  cursor: default;
}

.store-btn.soon:hover {
  transform: none;
  box-shadow: none;
}

.store-btn.soon strong {
  color: var(--text-dark);
}

.store-btn i {
  font-size: 1.6rem;
}

.store-btn small {
  display: block;
  font-size: 0.72rem;
  opacity: 0.75;
  line-height: 1.4;
}

.store-btn strong {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
}

.store-note {
  margin-top: 16px;
  font-size: 0.92rem;
  color: var(--text-light);
}

/* ===== CTA แถบท้าย ===== */
.cta {
  position: relative;
  background: linear-gradient(135deg, var(--brand-dark), var(--primary) 55%, var(--brand-bright));
  color: var(--white);
  border-radius: 28px;
  padding: 56px 40px;
  text-align: center;
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* วงแสงจาง ๆ ให้แถบ CTA ดูมีมิติ */
.cta::before {
  content: '';
  position: absolute;
  width: 460px;
  height: 460px;
  top: -220px;
  right: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 68%);
  pointer-events: none;
}

.cta h2 {
  position: relative;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 12px;
}

.cta p {
  position: relative;
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
  margin: 0 auto 28px;
}

.cta .btn-primary {
  position: relative;
  background: var(--white);
  color: var(--ink-brand);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.20);
}

.cta .btn-primary:hover {
  background: var(--leaf-soft);
}

/* ===== ติดต่อ ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  border: 1px solid rgba(19, 38, 26, 0.06);
  text-align: center;
  transition: var(--transition);
}

.section-alt .contact-card {
  background: var(--bg);
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(46, 125, 50, 0.2);
  box-shadow: var(--shadow-soft);
}

.contact-card i {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 12px;
  display: block;
}

.contact-card .label {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 4px;
}

.contact-card a,
.contact-card .value {
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
  word-break: break-word;
}

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

/* ===== FOOTER ===== */
.footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.74);
  padding: 64px 24px 0;
}

.footer-container {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand .nav-logo {
  color: var(--white);
  margin-bottom: 14px;
}

/* พื้น footer เป็นเขียวเข้ม วงแหวนเขียวของโลโก้จะจมหายไปกับพื้น
   จึงรองด้วยวงกลมขาวให้ตัวโลโก้ลอยขึ้นมา */
.footer-brand .nav-logo .logo-mark {
  background: var(--white);
  border-radius: 50%;
  padding: 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.footer-brand .nav-logo .logo-mark img {
  filter: none;
}

.footer-brand p {
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-col-title {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 14px;
  font-size: 0.99rem;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.94rem;
  margin-bottom: 10px;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 0 26px;
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.42);
}

/* ===== เผยเนื้อหาตอนเลื่อนถึง (script.js เติมคลาส .in ให้) ===== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-sub {
    max-width: none;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 0;
    border-bottom: 1px solid rgba(19, 38, 26, 0.07);
    box-shadow: 0 12px 28px rgba(19, 38, 26, 0.09);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li a {
    display: block;
    padding: 14px 24px;
  }

  .btn-nav-cta {
    margin: 8px 24px;
    text-align: center;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding: 124px 20px 70px;
  }

  .section {
    padding: 64px 20px;
  }

  .cta {
    padding: 42px 24px;
    border-radius: 22px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* เคารพการตั้งค่าลดการเคลื่อนไหวของระบบ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
