/* ===== CSS Variables & Reset ===== */
:root {
    --color-primary: #C9A96E;
    --color-primary-dark: #B08F55;
    --color-secondary: #1A1A1A;
    --color-white: #FFFFFF;
    --color-text: #2C2C2C;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Prompt', sans-serif;
    --transition: all 0.4s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background-color: #FAF8F5;
    overflow-x: hidden;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0; width: 100%; z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; justify-content: space-between; align-items: center;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.logo-mark {
    width: 40px; height: 40px; background: var(--color-primary);
    color: white; border-radius: 50%; display: flex; 
    align-items: center; justify-content: center; font-weight: bold; margin-right: 10px;
}
.logo-text { color: var(--color-secondary); font-weight: 700; display: flex; flex-direction: column; }
.logo-text small { font-size: 10px; color: var(--color-primary); text-transform: uppercase; }

/* ===== Hero Section ===== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero-image { position: absolute; inset: 0; z-index: -1; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }

.hero-badge {
    border: 1px solid var(--color-primary);
    padding: 5px 15px; border-radius: 20px; font-size: 12px;
    letter-spacing: 2px; margin-bottom: 20px; display: inline-block;
}

.hero-title { font-family: sans-serif(--font-heading); font-size: 3.5rem; line-height: 1.2; margin-bottom: 20px; }
.title-accent { color: var(--color-primary); font-style: italic; }
.hero-subtitle { font-weight: 300; margin-bottom: 30px; opacity: 0.9; }

.btn {
    padding: 12px 30px; border-radius: 30px; text-decoration: none;
    font-weight: 500; transition: var(--transition); display: inline-block;
}
.btn-primary { background: var(--color-primary); color: white; }
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-3px); }

/* ===== Slideshow & Scroll (The Focus Area) ===== */
.hero-bottom-wrapper {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding-bottom: 40px;
}

.hero-scroll {
    margin-bottom: 30px;
    font-size: 12px;
    letter-spacing: 2px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.slideshow-container {
    width: 100%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.slideshow-track {
    display: flex;
    width: calc(250px * 100); /* ความกว้างรูป x จำนวนรูปทั้งหมด */
    animation: scroll 100s linear infinite;
}

.slide {
    width: 150px;
    height: 150px;
    padding: 0 10px;
    flex-shrink: 0;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid rgba(201, 169, 110, 0.3);
    transition: transform 0.3s ease;
}

.slide img:hover {
    transform: scale(1.05);
    border-color: var(--color-primary);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 10)); } /* เลื่อนไปครึ่งหนึ่งของ track */
}

/* ===== Footer ===== */
.footer { background: var(--color-secondary); color: white; padding: 40px 0; text-align: center; }
.footer-bottom { opacity: 0.6; font-size: 13px; }

/* ระยะห่างจากปุ่มจองคิว */
.hero-bottom-wrapper {
    margin-top: 80px; 
    position: relative;
    width: 100%;
}

.slideshow-container {
    position: relative;
    overflow: hidden;
    padding: 20px 50px;
}

/* ปุ่มเลือกภาพ (Arrows) */
.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(201, 169, 110, 0.8);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
}

.slide-nav:hover { background: var(--color-primary); }
.prev { left: 10px; }
.next { right: 10px; }

/* ปรับ Track ให้รองรับการเลื่อนด้วยปุ่ม */
.slideshow-track {
    display: flex;
    gap: 15px;
    scroll-behavior: smooth;
    overflow-x: auto;
    scrollbar-width: none; /* ซ่อน scrollbar */
}
.slideshow-track::-webkit-scrollbar { display: none; }

.clickable-img {
    cursor: zoom-in;
    transition: 0.3s;
}

/* Modal (ภาพขยาย) */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 80%;
    max-height: 80%;
    border-radius: 8px;
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {transform: scale(0.7)} 
    to {transform: scale(1)}
}

.close-modal {
    position: absolute;
    top: 30px; right: 50px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}
