@charset "UTF-8";

/* =========================================
   1. BASE STYLES & TYPOGRAPHY (พื้นฐาน)
   ========================================= */
body { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; margin: 0; padding: 0; color: #333; line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: color 0.3s; }
a:hover { color: #888; }
img { max-width: 100%; height: auto; display: block; box-sizing: border-box; }

/* =========================================
   2. HEADER & NAVIGATION (เมนูด้านบน)
   ========================================= */
header { display: flex; justify-content: space-between; align-items: center; padding: 20px 5%; border-bottom: 1px solid #eee; background-color: #fff; }
.logo { font-size: 24px; font-weight: bold; letter-spacing: 2px; }
nav { display: flex; gap: 30px; align-items: center; flex-wrap: wrap; }
.lang-switch a { font-size: 14px; color: #999; margin: 0 5px; }
.lang-switch a.active { color: #000; font-weight: bold; }

/* =========================================
   3. HERO SECTIONS (แบนเนอร์รูปภาพขนาดใหญ่)
   ========================================= */
.hero { 
    height: 70vh; 
    /* เปลี่ยนจาก #f4f4f4 เป็น rgba แบบโปร่งใส (เลข 0.3 คือความทึบ 30% ครับ) */
    background-color: rgba(244, 244, 244, 0.5); 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    padding: 0 20px; 
}
.hero h1 { font-size: 48px; margin-bottom: 10px; font-weight: 300; }
.hero p { font-size: 18px; color: #666; letter-spacing: 1px; }

.hero-sub { 
    height: 40vh; 
    /* ปรับให้โปร่งใสเหมือนกันสำหรับหน้าอื่นๆ เช่น หน้า About, Services */
    background-color: rgba(244, 244, 244, 0.3); 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    padding: 0 20px; 
}
.hero-sub h1 { font-size: 36px; margin-bottom: 10px; font-weight: 300; }
.hero-sub p { font-size: 16px; color: #666; letter-spacing: 1px; }

/* =========================================
   4. SECTIONS & GRIDS (การจัดวางเนื้อหา)
   ========================================= */
.section { padding: 80px 5%; max-width: 1200px; margin: 0 auto; text-align: center; }
.section h2 { font-size: 32px; font-weight: 400; margin-bottom: 30px; text-transform: uppercase; letter-spacing: 2px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 50px; text-align: left; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; text-align: left; }

/* =========================================
   5. COMPONENTS (ส่วนประกอบต่างๆ เช่น ปุ่ม, ฟอร์ม)
   ========================================= */

/* Cards (รูป Portfolio) พร้อม Hover Effect */
.portfolio-card-link { text-decoration: none; color: inherit; display: block; }
.card { text-align: left; }
.card-img-wrapper { width: 100%; height: 250px; overflow: hidden; border-radius: 0px; margin-bottom: 15px; }
.card-img { width: 100%; height: 100%; background-color: #ddd; object-fit: cover; transition: transform 0.5s ease; }
.card h3 { font-size: 18px; margin: 0 0 5px 0; font-weight: 500; transition: color 0.3s ease; }
.card p { font-size: 14px; color: #777; margin: 0; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; min-height: 7.5em; }
.portfolio-card-link:hover .card-img { transform: scale(1.08); }
.portfolio-card-link:hover .card h3 { color: #888; }

/* Swiper Slider Customization */
.portfolio-swiper { padding-bottom: 50px !important; width: 100%; }
.swiper-pagination-bullet-active { background: #333 !important; }
.swiper-button-next, .swiper-button-prev { color: #333 !important; }
.swiper-button-next:after, .swiper-button-prev:after { font-size: 24px !important; font-weight: bold; }

/* About Box */
.vm-box { background: #fff; padding: 30px; border: 1px solid #eee; border-left: 4px solid #333; }
.vm-box h3 { margin-top: 0; font-size: 20px; font-weight: 500; }
.vm-box p { margin: 0; }

/* Services List */
.service-item { display: flex; flex-direction: row; align-items: center; justify-content: space-between; padding: 60px 0; border-bottom: 1px solid #eee; gap: 40px; text-align: left; }
.service-item:last-child { border-bottom: none; }
.service-text { flex: 1; max-width: 600px; }
.service-text h2 { font-size: 24px; font-weight: 400; margin: 0 0 15px 0; letter-spacing: 1px; }
.service-text p { font-size: 16px; color: #555; margin: 0; line-height: 1.8; }
.service-image { flex: 1; text-align: right; }
.service-image img { max-width: 100%; height: auto; border-radius: 0px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }

/* Buttons */
.btn { display: inline-block; margin-top: 40px; padding: 12px 30px; border: 1px solid #333; transition: all 0.3s; cursor: pointer; }
.btn:hover { background-color: #333; color: #fff; }
.cta-section { background-color: #333; color: #fff; text-align: center; padding: 60px 20px; margin-top: 40px; }
.btn-light { display: inline-block; margin-top: 20px; padding: 12px 30px; background-color: #fff; color: #333; border: 1px solid #fff; transition: all 0.3s; font-weight: bold; }
.btn-light:hover { background-color: transparent; color: #fff; }

/* Forms & Contact */
.contact-info h2, .contact-form h2 { font-size: 24px; font-weight: 400; margin-bottom: 20px; }
.info-block { margin-bottom: 25px; }
.info-block strong { display: block; font-size: 14px; text-transform: uppercase; color: #888; margin-bottom: 5px; }
.form-group { margin-bottom: 20px; }
input[type="text"], input[type="email"], input[type="tel"], textarea { width: 100%; padding: 15px; border: 1px solid #ddd; background-color: #f9f9f9; box-sizing: border-box; font-family: inherit; font-size: 16px; transition: border 0.3s; }
input:focus, textarea:focus { border-color: #333; outline: none; }
button[type="submit"] { padding: 15px 30px; background-color: #333; color: #fff; border: none; font-size: 16px; cursor: pointer; transition: 0.3s; width: 100%; max-width: 200px; }
button[type="submit"]:hover { background-color: #000; }

/* Alerts */
.alert { padding: 15px; margin-bottom: 20px; border-radius: 0px; font-size: 14px; }
.alert.success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert.error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* =========================================
   6. FOOTER
   ========================================= */
footer { padding: 40px 5%; text-align: center; font-size: 14px; color: #888; border-top: 1px solid #eee; margin-top: 50px; }

/* =========================================
   7. MOBILE RESPONSIVE (หน้าจอมือถือ) 
   ========================================= */
/* ซ่อนปุ่ม Hamburger ไว้ก่อนตอนอยู่บนจอคอม */
.hamburger {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: #333; /* ถ้าภาพพื้นหลังเป็นสีอ่อน สีเทาเข้มจะมองเห็นชัดครับ */
    user-select: none;
    padding: 5px 10px;
    border-radius: 0px;
    background: rgba(255, 255, 255, 0.7); /* รองพื้นสีขาวจางๆ ให้ปุ่มเด่นขึ้น */
}

@media (max-width: 768px) {
    header { 
        flex-wrap: wrap; /* ยอมให้ตกบรรทัดได้ */
        padding: 15px 20px; 
    }
    
    /* บังคับย่อโลโก้ในมือถือ จะได้ประหยัดพื้นที่ */
    .logo .main-logo { height: 70px !important; } 

    /* โชว์ปุ่ม Hamburger */
    .hamburger { display: block; }

    /* ซ่อนเมนูลิงก์ทั้งหมดไว้ก่อน และจัดเรียงใหม่ */
    nav#main-nav { 
        display: none; /* ซ่อนไว้ */
        width: 100%; 
        flex-direction: column; 
        text-align: center; 
        gap: 15px;
        padding: 20px 0;
        margin-top: 15px;
        border-top: 1px solid rgba(0,0,0,0.1);
        background-color: rgba(255, 255, 255, 0.95); /* พื้นหลังขาวตอนสไลด์เมนูลงมา */
        border-radius: 0px;
    }

    /* เมื่อกดปุ่ม Hamburger จะเพิ่ม class .active เพื่อแสดงเมนู */
    nav#main-nav.active {
        display: flex;
    }

    .lang-switch { margin-top: 10px; font-weight: bold; }
    
    /* โค้ดสำหรับส่วนอื่นๆ ในมือถือ (เหมือนเดิม) */
    .hero, .hero-sub { height: auto; padding: 60px 20px; }
    .hero h1, .hero-sub h1 { font-size: 32px !important; line-height: 1.3; }
    .section { padding: 40px 20px; }
    .grid { grid-template-columns: 1fr; }
    .vm-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .vm-box { border-left: none; border-top: 4px solid #333; }
    .service-item { flex-direction: column; text-align: center; padding: 40px 0; gap: 20px; }
    .service-image { text-align: center; order: -1; }
    button[type="submit"] { max-width: 100%; } 
    .swiper-button-next, .swiper-button-prev { display: none; }
}

/* =========================================
   8. PDPA Cookie Banner
   ========================================= */
.cookie-banner { position: fixed; bottom: 0; left: 0; width: 100%; background-color: #222; color: #eee; padding: 20px 5%; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 -5px 20px rgba(0,0,0,0.15); z-index: 9999; box-sizing: border-box; transform: translateY(100%); transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.cookie-banner.show { transform: translateY(0); }
.cookie-content { flex: 1; font-size: 13px; margin-right: 30px; line-height: 1.6; }
.cookie-content p { margin: 0; }
.cookie-content a { color: #fd7e14; text-decoration: underline; font-weight: bold; }
.cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; }
.btn-accept-cookie { background-color: #fd7e14; color: #fff; border: none; padding: 10px 25px; border-radius: 0px; cursor: pointer; font-weight: bold; font-size: 14px; transition: background 0.3s; }
.btn-accept-cookie:hover { background-color: #e0690c; }
@media (max-width: 768px) {
    .cookie-banner { flex-direction: column; text-align: center; padding: 20px; gap: 15px; }
    .cookie-content { margin-right: 0; }
    .btn-accept-cookie { width: 100%; padding: 15px; }
}