:root {
    --primary-green: #2C5E3B;
    --primary-dark: #1A3A23;
    --accent-gold: #D4AF37;
    --accent-gold-light: #F4D03F;
    --bg-white: #FFFFFF;
    --bg-light: #F9F9F9;
    --text-dark: #222222;
    --text-gray: #666666;
}

* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Kanit', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-white);
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding { padding: 80px 0; }
.bg-light { background-color: var(--bg-light); }

/* ----- Scroll Reveal Animations ----- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ----- Header & Nav ----- */
header {
    background-color: var(--primary-dark);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.4s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: relative;
    transition: all 0.3s ease;
}

.logo {
    height: 85px; 
    width: auto;
    transition: all 0.4s ease;
    filter: drop-shadow(0px 0px 5px rgba(255, 255, 255, 0.2)) brightness(1.2) contrast(1.1);
}

header.scrolled .logo { 
    height: 60px; 
}
header.scrolled .header-content { padding: 5px 20px; }

.main-nav {
    display: flex;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--bg-white);
    margin-left: 30px;
    font-weight: 400;
    font-size: 1.1em;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-gold);
    transition: width 0.3s ease;
}

.main-nav a:hover { color: var(--accent-gold); }
.main-nav a:hover::after { width: 100%; }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--accent-gold);
    font-size: 2em;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* ----- Hero Banner ----- */
.hero {
    margin-top: 105px; /* ระยะห่างสำหรับจอคอม */
    width: 100%;
    border-bottom: 5px solid var(--accent-gold);
    overflow: hidden;
}

.hero-link {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

.banner-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.hero-link:hover .banner-img {
    transform: scale(1.02);
}

/* ----- Titles ----- */
.section-title {
    text-align: center;
    color: var(--primary-green);
    font-size: 2.2em;
    margin: 0;
    letter-spacing: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--accent-gold);
    font-size: 1.2em;
    margin-bottom: 50px;
}

/* ----- Services ----- */
.service-list { max-width: 800px; margin: 0 auto; }
.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed #ccc;
    padding: 25px 15px;
    transition: background-color 0.3s ease;
    border-radius: 8px;
}

.service-item:hover {
    background-color: rgba(44, 94, 59, 0.05); 
}

.service-info h4 { margin: 0 0 5px 0; color: var(--primary-green); font-size: 1.4em; }
.service-info p { margin: 0; color: var(--text-gray); font-size: 0.9em; }

/* ----- Service Location & Taxi Fee ----- */
.location-content {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-top: 4px solid var(--accent-gold);
}

.location-desc {
    text-align: center;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.fee-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.fee-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px;
    border-bottom: 1px solid #eee;
    color: var(--primary-dark);
    font-weight: 500;
    font-size: 1.1em;
}

.fee-list li i {
    color: var(--accent-gold);
    margin-right: 15px;
    width: 25px;
    text-align: center;
}

.fee-list li span:last-child {
    color: var(--primary-green);
    font-weight: 600;
}

.location-note {
    text-align: center;
    font-size: 0.95em;
    color: var(--accent-gold);
    font-weight: 500;
    font-style: italic;
    margin: 0;
}

/* ----- Gallery ----- */
.gallery {
    background-color: #FCFAF5; /* พื้นหลังสีครีมอ่อนๆ ให้คุมโทนกับรูป */
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* จัดเรียงแบบ 4 คอลัมน์ */
    gap: 30px; /* ระยะห่างระหว่างรูป */
    padding: 20px; /* เพิ่มพื้นที่รอบๆ เผื่อไว้ให้เงาของรูป */
}

.gallery-grid img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4; /* บังคับให้เป็นรูปแนวตั้ง (Portrait) สัดส่วนเป๊ะๆ ทุกรูป */
    object-fit: cover; /* จัดการไม่ให้รูปเบี้ยวเวลาโดนครอป */
    border-radius: 12px; /* มุมโค้งมน */
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); /* เหลือแค่เงาบางๆ ไม่มีขอบสี */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

.gallery-grid img:hover { 
    transform: scale(1.05) translateY(-5px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.15); /* เงาเข้มขึ้นตอนเอาเมาส์ชี้ */
}

/* ----- Footer ----- */
footer {
    background-color: var(--primary-dark);
    color: var(--bg-white);
    text-align: center;
    padding: 60px 20px 30px;
}
footer .gold-text { color: var(--accent-gold); font-size: 1.8em; letter-spacing: 2px; margin-bottom: 10px; }
.contact-info { margin: 30px 0; font-weight: 300; }
.copyright { margin-top: 40px; font-size: 0.8em; color: #8fb99b; }

/* ----- Floating Social Media Buttons ----- */
.floating-social-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.social-menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55); 
}

.social-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.social-btn, .social-toggle {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: white;
    font-size: 1.8em;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.social-btn:hover, .social-toggle:hover { transform: scale(1.15); }

.whatsapp { background-color: #25D366; }
.wechat { background-color: #7BB32E; }
.snapchat { background-color: #FFFC00; color: #000; }
.x-twitter { background-color: #000000; color: #ffffff !important; }
.x-twitter i { color: #ffffff !important; }
.line { background-color: #00C300; }
.telegram { background-color: #0088cc; }

.social-toggle {
    background-color: var(--accent-gold);
    color: var(--primary-dark);
    z-index: 1001;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

/* =======================================================
   RESPONSIVE (ปรับแต่งเฉพาะสำหรับหน้าจอมือถือและแท็บเล็ต) 
   ======================================================= */
@media screen and (max-width: 992px) {
    /* หน้าจอขนาดกลาง (แท็บเล็ต) ปรับแกลลอรี่เป็น 3 คอลัมน์ */
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media screen and (max-width: 768px) {
    /* ลดขนาดแถบเมนูและโลโก้ให้เล็กลง กระชับพื้นที่ */
    .header-content { padding: 5px 15px; }
    .logo { height: 50px; }
    header.scrolled .logo { height: 40px; }
    
    /* ลดระยะห่างของแบนเนอร์ไม่ให้โดนบัง */
    .hero { 
        margin-top: 60px; 
        border-bottom: 3px solid var(--accent-gold); 
    }

    /* ลดขนาดฟอนต์หัวข้อให้พอดีจอ */
    .section-title { font-size: 1.8em; }
    .section-subtitle { margin-bottom: 30px; font-size: 1em; }
    .section-padding { padding: 50px 0; }

    /* ปรับแต่งเมนูที่พับเก็บ */
    .mobile-menu-btn { 
        display: block; 
        font-size: 1.5em; 
    }
    
    .main-nav {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-dark);
        border-top: 1px solid rgba(255,255,255,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
    }
    .main-nav.active { max-height: 350px; }
    .main-nav a {
        margin: 0;
        padding: 12px 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .main-nav a::after { display: none; }

    /* ปรับปุ่มโซเชียลลอยให้เล็กลง */
    .floating-social-container { bottom: 20px; right: 20px; }
    .social-btn, .social-toggle { width: 45px; height: 45px; font-size: 1.4em; }
    
    /* ปรับส่วน Location ให้เล็กกระชับลง */
    .location-content { padding: 25px 15px; }
    .location-desc { font-size: 1em; margin-bottom: 20px; }
    .fee-list li { font-size: 0.95em; padding: 12px 5px; }

    /* ปรับแกลลอรี่ในมือถือให้แสดง 2 คอลัมน์ */
    .gallery-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px; 
        padding: 10px;
    }
}

@media screen and (max-width: 480px) {
    /* หน้าจอมือถือเล็กมาก ให้เหลือแค่ 2 คอลัมน์ */
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}