/* ========================
   CSS Variables & Reset
   ======================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --primary-green: #4a7c59;
    --dark-green: #2d5738;
    --light-green: #6e9c7b;
    --bg-dark: #1a1a1a;
    --text-light: #ffffff;
    --text-gray: #cccccc;
    --overlay: rgba(0, 0, 0, 0.6);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    overflow-x: hidden;
    padding-top: 70px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================
   Performance Helpers
   ======================== */
.hero,
.history-main-section,
.trees-section,
.decorations-section,
.contact-section,
.about-section,
.background-section,
.vision-mission-section,
.history-section {
    content-visibility: auto;
    contain: layout paint style;
    contain-intrinsic-size: 600px;
}

/* ========================
   Navigation Menu
   ======================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(45, 87, 56, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-light);
    font-size: 1.3rem;
    font-weight: bold;
}

.nav-logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent; /* เอาพื้นหลังสีขาวออก */
    padding: 0; /* ตัดช่องว่างรอบโลโก้ */
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.35)); /* เงาบางๆ ให้เห็นบน BG เข้ม */
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1rem;
    padding: 8px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    background: var(--primary-green);
    color: white;
}

/* ========================
   Language Switcher
   ======================== */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 25px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    will-change: transform;
}

.language-switcher button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 2px solid var(--primary-green);
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.language-switcher .flag {
    font-size: 1rem;
    line-height: 1;
}

.language-switcher .lang-label {
    font-size: 0.95rem;
}

.language-switcher button.active {
    background: var(--primary-green);
    color: white;
}

.language-switcher button:hover {
    background: var(--light-green);
    transform: scale(1.05);
}

.language-switcher--hidden {
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
}

/* ========================
   Hero Section
   ======================== */
.hero {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), 
                url('cover-1.png') center/cover no-repeat;
    padding: 140px 20px 60px;
    min-height: 100vh;
}

.hero-content {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    padding-top: 20px;
}

.logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    display: block;
    border-radius: 50%;
    background: white;
    padding: 10px;
    object-fit: contain;
}

.hero-main-title {
    font-size: 3rem;
    margin-bottom: 40px;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.5;
    font-weight: 600;
    text-align: center;
}

.hero-text-content {
    max-width: 1000px;
    margin: 0 auto;
}

.hero-text-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-light);
    margin-bottom: 20px;
    text-align: left;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.hero-quote {
    margin: 40px 0 0;
    padding: 25px;
    border-left: 4px solid var(--primary-green);
}

.hero-quote p {
    font-size: 1.2rem;
    font-style: italic;
    color: #c8e6c9;
    font-weight: 500;
    margin: 0;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* History Main Section */
.history-main-section {
    padding: 80px 20px;
    background: linear-gradient(to bottom, #f5f5f5, #ffffff);
}

/* Small label above the main history heading */
.history-main-section .pre-title {
    text-align: center;
    color: var(--dark-green); /* ใช้สีเดียวกับหัวข้อใหญ่ด้านล่าง */
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 50px; /* ขนาดตามที่ตั้งไว้ */
    margin: 10px 0 20px; /* เว้นช่องว่างด้านบนเล็กน้อย และด้านล่างให้โปร่งขึ้น */
}

.history-main-section h2:first-of-type {
    font-size: 30px;
    color: var(--dark-green);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.history-main-title {
    font-size: 3rem;
    color: var(--dark-green);
    text-align: center;
    margin: 80px 0 50px;
    font-weight: 700;
}

.history-main-content {
    max-width: 1000px;
    margin: 0 auto;
}

/* English-only extra history block: basic readable formatting */
.history-extra {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
    margin: 35px 0 10px;
    white-space: pre-line; /* fallback if JS not converting \n */
}

/* When Thai (data-th="") is active and script sets textContent, keep empty hidden */
.history-extra:empty { display: none; }

.history-main-content > p:first-of-type {
    font-size: 1.6rem;
    line-height: 1.8;
    color: var(--dark-green);
    text-align: center;
    margin-bottom: 60px;
    font-weight: 600;
}

.history-main-content p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #333;
    margin-bottom: 25px;
    text-align: left;
}

.history-quote {
    margin: 35px 0;
    padding: 25px 30px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-left: 5px solid var(--dark-green);
    border-radius: 10px;
}

.history-quote p {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--dark-green);
    font-weight: 500;
    margin: 0;
    text-align: center;
    line-height: 1.6;
}

.products-subtitle {
    font-size: 1.4rem;
    color: var(--dark-green);
    margin: 50px 0 30px;
    font-weight: 600;
}

.product-category-list {
    margin-top: 40px;
}

.product-item {
    margin-bottom: 35px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--primary-green);
}

.product-item h4 {
    font-size: 1.3rem;
    color: var(--dark-green);
    margin-bottom: 15px;
    font-weight: 600;
}

.product-item p {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    margin: 0;
}

/* ========================
   Input Section
   ======================== */
.input-section {
    background: var(--dark-green);
    padding: 60px 20px;
}

.input-field,
.textarea-field {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 20px;
    display: block;
    padding: 15px;
    border: 2px solid var(--primary-green);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-family: inherit;
}

.textarea-field {
    resize: vertical;
    min-height: 150px;
}

.btn-submit {
    display: block;
    margin: 0 auto;
    padding: 15px 50px;
    background: var(--primary-green);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: var(--light-green);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* ========================
   Trees Section with Horizontal Scroll
   ======================== */
.trees-section {
    padding: 60px 20px;
    background: linear-gradient(to bottom, #f5f5f5, #e0e0e0);
}

.trees-section:nth-of-type(even) {
    background: linear-gradient(to bottom, #e0e0e0, #d0d0d0);
}

.trees-scroll-container {
    position: relative;
    margin: 0 auto;
    max-width: 100%;
    overflow: hidden;
}

.trees-scroll-wrapper {
    display: flex;
    gap: 30px;
    animation: autoScroll 40s linear infinite;
    padding: 20px 0;
    will-change: transform;
}

.trees-scroll-wrapper:hover {
    animation-play-state: paused;
}

@keyframes autoScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.tree-card {
    flex: 0 0 350px;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.tree-card:hover {
    transform: scale(1.05) translateZ(0);
}

.tree-card img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transform: translateZ(0);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--dark-green);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary-green);
}

/* ========================
   Decorations Section
   ======================== */
.decorations-section {
    padding: 60px 20px;
    background: linear-gradient(to bottom, #e0e0e0, #d0d0d0);
}

.decorations-section .section-title {
    color: var(--dark-green);
}

.section-description {
    text-align: center;
    font-size: 1rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.section-intro {
    text-align: left;
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

/* Override centering for tree & decoration subsections: align with image row */
.trees-section .section-intro,
.decorations-section .section-intro {
    max-width: 100%; /* เต็มความกว้าง container */
    margin: 0 0 30px; /* ตัด auto เพื่อไม่ให้กึ่งกลาง */
    padding: 0; /* ให้เริ่มตรงกับรูปภาพ (อิง padding ของ .container 20px) */
}

.trees-section .section-intro .subsection-title,
.decorations-section .section-intro .subsection-title {
    padding-left: 0; /* ไม่ต้องเยื้อง */
}

.trees-section .section-intro .section-description,
.decorations-section .section-intro .section-description {
    margin-top: 8px;
}

.section-intro .subsection-title {
    font-size: 1.6rem;
    color: var(--dark-green);
    margin-bottom: 15px;
    font-weight: 600;
    text-align: left;
}

.section-intro .section-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
    margin: 0;
    text-align: left;
}

.decorations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
    max-width: 100%;
    margin: 0; /* ให้ชิดซ้าย-ขวาตาม padding ของ .container เหมือนส่วนต้นไม้เล็ก */
}

.decoration-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.decoration-card:hover {
    transform: scale(1.03) translateZ(0);
}

.decoration-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transform: translateZ(0);
}

.decoration-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 30px 20px 20px;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.decoration-card:hover .decoration-overlay {
    transform: translateY(-5px);
}

.decoration-overlay h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: white;
}

.decoration-overlay p {
    font-size: 1rem;
    color: #ddd;
    margin: 0;
}

.decoration-group {
    text-align: center;
}

.subsection-title {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--text-light);
}

.decoration-group img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ========================
   VDO Section
   ======================== */
.vdo-section {
    padding: 80px 20px;
    background: linear-gradient(to bottom, #d0d0d0, #c0c0c0);
}

.vdo-placeholder {
    max-width: 900px;
    margin: 0 auto;
    height: 500px;
    background: #888;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.vdo-text {
    font-size: 5rem;
    color: #666;
    font-weight: bold;
}

/* VDO in Contact Section */
.vdo-container {
    max-width: 900px;
    margin: 0 auto 50px;
}

.vdo-container .subsection-title {
    font-size: 1.6rem;
    color: var(--text-light);
    margin-bottom: 25px;
    text-align: center;
}

.video-wrapper {
    max-width: 100%;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: #000;
}

.video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 500px;
}

.contact-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin: 30px 0;
}

/* ========================
   Clients (Our Clients)
   ======================== */
.clients-section {
    max-width: 1000px;
    margin: 10px auto 0;
}

/* Our Clients two-row layout */
.clients-section .subsection-title {
    text-align: center;
    margin-bottom: 28px;
    color: var(--text-light);
}

.clients-rows { display: flex; flex-direction: column; gap: 34px; }

.clients-row {
    display: flex;
    justify-content: center; /* center row content */
    gap: 42px;
    flex-wrap: nowrap;
}

.clients-row.row-2 { gap: 60px; }

.client-card {
    background: #ffffff;
    border-radius: 10px;
    width: 180px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.22);
    transition: transform .25s ease, box-shadow .25s ease;
}

.client-card:hover { transform: translateY(-4px); box-shadow:0 10px 24px rgba(0,0,0,0.28); }

.client-card img {
    max-width: 88%;
    max-height: 52px;
    object-fit: contain;
    filter: brightness(1) contrast(1.05);
}

@media (max-width: 860px) {
  .clients-row { flex-wrap: wrap; gap: 28px; }
  .client-card { width: 160px; height: 80px; }
  .clients-row.row-2 { gap: 28px; }
}

@media (max-width: 520px) {
  .clients-rows { gap: 26px; }
  .clients-row { justify-content: center; }
  .client-card { width: 46%; min-width: 140px; }
}

/* Simplified 3-column layout automatically wraps */

/* ========================
   Footer
   ======================== */
.footer {
  position: relative;
  background: #0e2418; /* สีสำรองตอนโหลดรูปไม่ทัน */
  color: #fff;
  overflow: hidden;
}

/* รูปพื้นหลัง + overlay มืดให้อ่านง่าย */
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  /* เปลี่ยน URL ตรงนี้ */
  background: linear-gradient(0deg, rgba(0,0,0,.45), rgba(0,0,0,.45)),
              url("images/Food/foodter.png") center/cover no-repeat;
  z-index: 0;
}

/* ยกคอนเทนต์ขึ้นเหนือรูปพื้นหลัง */
.footer-container, .footer-content, .footer-bottom { 
  position: relative; 
  z-index: 0; 
}


.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: auto auto; /* shrink columns to content */
    justify-content: center;         /* center both blocks together */
    align-items: center;
    gap: 30px 60px;                  /* tighter and balanced spacing */
}

.footer-left {
  display: flex;
  justify-content: center; /* กึ่งกลางในครึ่งซ้าย */
}

.footer-left .footer-logo {
  transform: none;
}

@media (max-width: 900px) {
  .footer-content {
    display: flex;
    flex-direction: column;
  }
  .footer-left {
    justify-content: center;
  }
}

.footer-logo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: transparent; /* เอาพื้นหลังสีขาวออก */
    padding: 0; /* เอาช่องว่างรอบโลโก้ออก */
    object-fit: contain;
    /* เพิ่มเงาบางๆ ให้เห็นโลโก้ชัดบน BG รูปภาพ */
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.45));
}

.footer-right {
    text-align: left;      /* ตัวอักษรชิดซ้ายภายในกล่อง */
    justify-self: start;   /* จัดตำแหน่งกล่องให้เริ่มจากซ้ายของคอลัมน์ */
}

.footer-title {
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-align: left;           /* หัวข้อชิดซ้ายภายในกล่องขวา */
    max-width: 520px;           /* กว้างเท่ากับรายการด้านล่าง */
    margin-left: auto;          /* ดันทั้งบล็อกไปชิดขวา แต่ตัวอักษรชิดซ้าย */
}

.footer-contact-list {
    display: grid;                  /* two-column grid for pairs */
    grid-template-columns: 1fr 1fr; /* left | right */
    gap: 12px 28px;                 /* row | column */
    width: 100%;
    max-width: 640px;               /* a bit wider to fit pairs */
    margin-left: auto;
}

.footer-contact-row {
    display: grid; /* ใช้ grid เพื่อให้ layout ของแต่ละบรรทัดเท่ากัน */
    grid-template-columns: 22px 10px 1fr; /* ไอคอน | เว้นวรรค | เนื้อหา */
    align-items: center;
    font-size: 0.95rem;
}

/* Make each contact row behave as a grid item that can sit left or right */
.footer-contact-row:nth-child(1) { grid-column: 1; } /* Phone */
.footer-contact-row:nth-child(2) { grid-column: 1; } /* Email 1 (left row 2) */
.footer-contact-row:nth-child(3) { grid-column: 2; } /* Email 2 (right row 2) */
.footer-contact-row:nth-child(4) { grid-column: 1; } /* Facebook (left row 3) */
.footer-contact-row:nth-child(5) { grid-column: 2; } /* Instagram (right row 3) */
.footer-contact-row:nth-child(6) { grid-column: 2; } /* Map (right row 1) */

/* Order rows explicitly to form: 
   Row1: Phone | Map
   Row2: Email1 | Email2
   Row3: Facebook | Instagram */
.footer-contact-row:nth-child(1) { grid-row: 1; }
.footer-contact-row:nth-child(6) { grid-row: 1; }
.footer-contact-row:nth-child(2) { grid-row: 2; }
.footer-contact-row:nth-child(3) { grid-row: 2; }
.footer-contact-row:nth-child(4) { grid-row: 3; }
.footer-contact-row:nth-child(5) { grid-row: 3; }

/* ไอคอนอยู่คอลัมน์แรก (ถ้า img โหลดไม่ได้จะใช้ fallback) */
.footer-contact-row .footer-icon-img,
.footer-contact-row .footer-icon-fallback {
    grid-column: 1;
}

/* กล่องข้อความอยู่คอลัมน์ที่สามและชิดขวาให้เสมอกันทุกบรรทัด */
.footer-text,
.footer-emails {
    grid-column: 3;
    text-align: left; /* ตัวหนังสือชิดซ้ายภายในกล่องที่อยู่ขวา */
}

.footer-text .footer-label {
    margin-left: 8px;
    color: var(--text-light);
    opacity: 0.9;
}

.footer-icon-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-icon-fallback {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.footer-contact-row a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-row a:hover {
    color: #a8d5ba;
}

.footer-label {
    color: var(--text-light);
    margin-left: 5px;
}

.footer-emails {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    justify-content: flex-start; /* เปลี่ยนให้ข้อความอีเมลชิดซ้าย */
}

.footer-emails span {
    color: var(--text-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 14px;
}

.footer-copyright {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin: 0;
}

/* ========================
   Animations
   ======================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================
   About Hero Section
   ======================== */
.about-hero {
  position: relative;
  min-height: 320px;              /* ปรับความสูงได้ */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  color: #fff;
  background: linear-gradient(0deg, rgba(0,0,0,.45), rgba(0,0,0,.45)),
              url("images/Food/foodter.png") center/cover no-repeat;
  overflow: hidden;
}

.about-hero-content { position: relative; z-index: 1; }

.about-hero::before {
  /* ถ้าอยากเพิ่มชั้น overlay เพิ่มเติม ใช้ pseudo element ได้ */
  content:"";
  position:absolute;
  inset:0;
  /* ตัวอย่างเพิ่มไล่สีด้านล่าง
  background: linear-gradient(to top, rgba(0,0,0,.4), rgba(0,0,0,.1)); */
  pointer-events:none;
}

.about-logo {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: transparent;
    border: none;            
    padding: 0;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}


.about-hero-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.about-hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
}

/* ========================
   About/Our Story Section
   ======================== */
.about-section {
    padding: 60px 20px;
    background: linear-gradient(to bottom, #f9f9f9, #ffffff);
}

/* ========================
   Contact Page (Card) Styles
   ======================== */
.contact-page {
    background: linear-gradient(to bottom, #f5f5f5, #ffffff);
    padding: 60px 20px 80px;
    color: #333;
}

.contact-card {
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.contact-card-header {
    background: #6b5b2a; /* olive-ish like ref */
    color: #fff;
    padding: 14px 20px;
}

.contact-card-header h2 {
    font-size: 1.4rem;
    letter-spacing: 2px;
}

.contact-card-body {
    padding: 28px 24px 36px;
}

.company-name {
    text-align: center;
    font-size: 2.2rem;
    color: #1f1f1f;
    margin: 10px 0 28px;
}

.contact-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px 24px;
    max-width: 900px;
    margin: 0 auto 24px;
}

.contact-item-mini {
    display: grid;
    grid-template-columns: 36px 1fr; /* room for icon + padding */
    gap: 10px;
    align-items: center;
}

.ci-icon { 
    width: 28px; 
    height: 28px; 
    object-fit: contain; 
    padding: 6px;                 /* breathing space inside circle */
    border-radius: 50%;
    background: rgba(74,124,89,0.18); /* slightly darker for contrast */
    border: 1px solid rgba(74,124,89,0.28);
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    display: block;
    filter: brightness(0) saturate(100%); /* force icon to dark for visibility */
}
.ci-text { display: flex; flex-direction: column; gap: 4px; }
.ci-title { font-size: 0.9rem; color: #666; }
.ci-link { color: #2d5738; text-decoration: none; }
.ci-link:hover { text-decoration: underline; }

.ci-links { display: flex; flex-direction: column; gap: 2px; }

.address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
    max-width: 940px;
    margin: 10px auto 0;
}

.address-card {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 16px 18px;
    background: #fafafa;
}

.address-title {
    font-weight: 700;
    color: #2d5738;
    margin-bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.address-line { color: #333; margin: 4px 0; }

.map-link { display: inline-block; margin-top: 8px; color: #20603d; text-decoration: none; font-weight: 600; }
.map-link:hover { text-decoration: underline; }

.address-title img { 
    width: 22px; height: 22px; object-fit: contain; 
    padding: 4px; 
    border-radius: 50%;
    background: rgba(74,124,89,0.18);
    border: 1px solid rgba(74,124,89,0.28);
    filter: brightness(0) saturate(100%);
}

.map-embed { margin-top: 10px; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.map-embed iframe { width: 100%; height: 260px; border: 0; }

.about-main-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-intro-text {
    font-size: 1.3rem;
    line-height: 1.9;
    color: #333;
    margin-bottom: 40px;
    font-weight: 300;
}

.about-experience {
    margin-bottom: 30px;
}

.about-experience p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

.about-variety-intro {
    font-weight: 500;
    color: var(--dark-green);
}

.about-plant-list {
    list-style: none;
    padding-left: 0;
    margin: 20px 0 40px;
}

.about-plant-list li {
    font-size: 1rem;
    padding: 12px 20px;
    margin-bottom: 10px;
    background: #f0f8f4;
    border-left: 4px solid var(--primary-green);
    color: #333;
    transition: all 0.3s ease;
}

.about-plant-list li:hover {
    background: #e8f5e9;
    padding-left: 25px;
}

.about-export {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 40px;
}

.about-quote {
    margin: 50px 0;
    padding: 35px 30px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-left: 5px solid var(--dark-green);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.about-quote p {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--dark-green);
    font-weight: 500;
    margin: 0;
    line-height: 1.7;
    text-align: center;
}

/* Vision & Mission Grid */
.vision-mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.vm-card {
    background: white;
    padding: 30px 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vm-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.vm-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.vm-card h3 {
    font-size: 1.4rem;
    color: var(--dark-green);
    margin-bottom: 15px;
}

.vm-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

.vision-card {
    border-top: 4px solid #e8b923;
}

.mission-card {
    border-top: 4px solid var(--primary-green);
}

/* History Section */
.history-section {
    max-width: 800px;
    margin: 0 auto 50px;
    background: white;
    padding: 35px 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

.history-section .subsection-title {
    font-size: 1.6rem;
    color: var(--dark-green);
    margin-bottom: 20px;
    text-align: center;
}

.history-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 20px;
}

.history-content h4 {
    font-size: 1.1rem;
    color: var(--primary-green);
    margin: 20px 0 12px;
}

.plant-types {
    list-style: none;
    padding-left: 0;
    margin: 15px 0;
}

.plant-types li {
    font-size: 0.95rem;
    padding: 10px 18px;
    margin-bottom: 8px;
    background: #f0f8f4;
    border-left: 3px solid var(--primary-green);
    color: #333;
}

.company-quote {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-left: 4px solid var(--dark-green);
    border-radius: 8px;
}

.company-quote p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--dark-green);
    font-weight: 500;
    margin: 0;
}

/* Background Section */
.background-section {
    max-width: 800px;
    margin: 0 auto 50px;
    background: white;
    padding: 35px 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

.background-section .subsection-title {
    font-size: 1.6rem;
    color: var(--dark-green);
    margin-bottom: 20px;
    text-align: center;
}

.background-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 20px;
}

/* Product Categories */
.products-categories {
    max-width: 1000px;
    margin: 0 auto;
}

.products-categories .subsection-title {
    font-size: 1.8rem;
    color: var(--dark-green);
    margin-bottom: 35px;
    text-align: center;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.category-card {
    background: white;
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-3px);
}

.category-number {
    position: absolute;
    top: -12px;
    left: 25px;
    width: 45px;
    height: 45px;
    background: var(--primary-green);
    color: white;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.category-card h4 {
    font-size: 1.1rem;
    color: var(--dark-green);
    margin: 15px 0 12px;
}

.category-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
}

/* Contact Section */
.contact-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #2d5738, #1a3322);
}

.contact-section .section-title {
    color: var(--text-light);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 15px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.15);
}

.contact-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.contact-details h3 {
    color: var(--text-light);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.contact-details a {
    color: #a8d5ba;
    text-decoration: none;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #c8e6c9;
    text-decoration: underline;
}

.contact-note {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-top: 5px;
}

.contact-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.contact-form h3 {
    color: var(--dark-green);
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-align: center;
}

.contact-form .input-field,
.contact-form .textarea-field {
    background: white;
    color: #333;
    margin-bottom: 20px;
}

.contact-form .btn-submit {
    width: 100%;
}

/* Decorations Section Update */
.decorations-section {
    padding: 80px 20px;
    background: linear-gradient(to bottom, #e0e0e0, #d0d0d0);
}

.decorations-section .section-title {
    color: var(--dark-green);
}

.section-description {
    text-align: center;
    font-size: 1.2rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ========================
   Responsive Design
   ======================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
    .footer-contact-list {
        grid-template-columns: 1fr; /* stack on small screens */
        max-width: 520px;
    }

    .section-title {
        font-size: 2rem;
    }

    .trees-scroll-wrapper {
        gap: 20px;
    }

    .tree-card {
        flex: 0 0 280px;
    }

    .tree-card img {
        height: 350px;
    }

    .decorations-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0; /* ใช้ padding ของ .container เพื่อให้ขอบตรงกับส่วนอื่น ๆ */
    }

    .video-wrapper video {
        max-height: 350px;
    }

    .vdo-container {
        margin: 0 auto 40px;
    }

    .language-switcher {
        top: 80px;
        right: 10px;
        padding: 5px;
    }

    .language-switcher button {
        padding: 6px 15px;
        font-size: 0.9rem;
    }

    .nav-menu {
        gap: 15px;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 6px 10px;
    }

    .vision-mission-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .history-section,
    .background-section {
        padding: 30px 20px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .about-hero {
        min-height: 35vh;
        padding: 80px 20px 30px;
    }

    .about-hero-title {
        font-size: 1.8rem;
    }

    .about-hero-subtitle {
        font-size: 1rem;
    }

    .about-logo {
        width: 75px;
        height: 75px;
    }

    .about-section {
        padding: 40px 20px;
    }

    .history-section,
    .background-section {
        padding: 25px 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-right {
        text-align: center; /* มือถือให้อยู่กึ่งกลาง */
    }

    .footer-logo {
        width: 100px;
        height: 100px;
    }

    .footer-title {
        font-size: 1.3rem;
    }

    .footer-contact-list {
        margin: 0 auto; /* กึ่งกลางทั้งกล่องในจอเล็ก */
    }

    .footer-contact-row {
        font-size: 0.95rem;
        grid-template-columns: 22px 8px 1fr;
    }

    .footer-text,
    .footer-emails {
        text-align: left; /* มือถือยังคงชิดซ้ายตามที่ต้องการ */
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 60px;
    }

    .nav-container {
        padding: 10px 15px;
    }

    .nav-logo {
        font-size: 1rem;
    }

    .nav-logo img {
        width: 32px;
        height: 32px;
    }

    .nav-menu {
        gap: 8px;
    }

    .nav-link {
        font-size: 0.8rem;
        padding: 5px 8px;
    }

    .hero {
        padding: 70px 15px 30px;
        min-height: 75vh;
    }

    .logo {
        width: 90px;
        height: 90px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-subtext {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .tree-card {
        flex: 0 0 250px;
    }

    .tree-card img {
        height: 300px;
    }

    .decorations-grid {
        padding: 0; /* ให้ขอบซ้ายขวาเท่ากับส่วนต้นไม้เล็ก */
    }

    .decoration-card img {
        height: 300px;
    }

    .video-wrapper video {
        max-height: 250px;
    }

    /* Clients mobile: simple grid */
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .clients-grid .client-card { grid-column: auto; }
    .client-card { width: 140px; height: 64px; }

    .about-logo {
        width: 70px;
        height: 70px;
    }

    .about-hero-title {
        font-size: 1.5rem;
    }

    .about-hero-subtitle {
        font-size: 0.9rem;
    }

    .about-hero {
        min-height: 30vh;
    }

    .vm-icon {
        font-size: 2.5rem;
    }

    .vm-card h3 {
        font-size: 1.2rem;
    }

    .vm-card p {
        font-size: 0.85rem;
    }

    .history-section,
    .background-section {
        padding: 20px 15px;
    }

    .footer-logo {
        width: 90px;
        height: 90px;
    }

    .footer-title {
        font-size: 1.2rem;
    }

    .footer-contact-row {
        font-size: 0.9rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-icon-img {
        width: 20px;
        height: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .trees-scroll-wrapper {
        animation: none !important;
    }

    .language-switcher,
    .nav-link,
    .tree-card,
    .btn-submit {
        transition: none !important;
    }
}
