/* CSS RESET & GENERAL STYLES */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* 防止出現水平（下方）滾動條 */
    width: 100vw;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    color: #4A3B32; /* 深咖啡色文字 */
    background-color: #FDFBF7; /* 溫暖奶油白背景 */
    line-height: 1.6;
    overflow-x: hidden; /* 確保無下方滾動條 */
    width: 100%;
}

/* 簡約時尚自訂垂直滾動條 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F4EBE1;
}

::-webkit-scrollbar-thumb {
    background: #D9A066;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8C4A19;
}

/* TYPOGRAPHY & LAYOUT UTILS */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: #F8F1E7;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: #8C4A19;
    margin-bottom: 8px;
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #D97724;
    margin: 12px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: #8C6D58;
    margin-bottom: 45px;
    font-size: 1rem;
}

.text-center { text-align: center; }

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(140, 74, 25, 0.08);
    transition: all 0.3s ease;
}

.logo svg {
    display: block;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 15px;
}

.nav-link {
    text-decoration: none;
    color: #5A483C;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    display: inline-block;
}

/* 選單按鈕動態效果 */
.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0%;
    height: 100%;
    background-color: #EAD0B3;
    border-radius: 20px;
    z-index: -1;
    transform: translateX(-50%);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-link:hover {
    color: #8C4A19;
    transform: translateY(-2px);
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link.btn-highlight {
    background-color: #D97724;
    color: #FFFFFF;
}

.nav-link.btn-highlight:hover {
    background-color: #8C4A19;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(217, 119, 36, 0.3);
}

.nav-link.btn-highlight::before {
    display: none;
}

/* HAMBURGER MENU FOR MOBILE */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: #8C4A19;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* HERO SLIDER (100vh) */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.hero-content {
    text-align: center;
    color: #FFFFFF;
    max-width: 800px;
    padding: 0 20px;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    font-weight: 300;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-btn {
    display: inline-block;
    padding: 12px 32px;
    background-color: #D97724;
    color: #FFF;
    text-decoration: none;
    font-size: 1.1rem;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(217, 119, 36, 0.4);
}

.hero-btn:hover {
    background-color: #8C4A19;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(140, 74, 25, 0.5);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(253, 251, 247, 0.3);
    color: #FFF;
    border: none;
    font-size: 2rem;
    padding: 12px 18px;
    cursor: pointer;
    border-radius: 50%;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-arrow:hover {
    background: rgba(217, 119, 36, 0.8);
}

.slider-arrow.prev { left: 30px; }
.slider-arrow.next { right: 30px; }

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    width: 30px;
    border-radius: 6px;
    background-color: #D97724;
}

/* CARDS & GRID SYSTEM */
.grid {
    display: grid;
    gap: 30px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background-color: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(140, 74, 25, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #F4EBE1;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(140, 74, 25, 0.12);
}

.card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-body {
    padding: 25px;
}

.card-body h3 {
    color: #8C4A19;
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.card-title-sub {
    color: #D97724;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.card-body p {
    color: #6B584C;
    font-size: 0.95rem;
}

/* SCHEDULE TABLE */
.schedule-table-wrapper {
    overflow-x: auto;
    background: #FFF;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(140, 74, 25, 0.05);
    border: 1px solid #F4EBE1;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.schedule-table th, .schedule-table td {
    padding: 16px;
    border-bottom: 1px solid #F4EBE1;
}

.schedule-table th {
    background-color: #F8F1E7;
    color: #8C4A19;
    font-weight: 700;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    background-color: #EAD0B3;
    color: #8C4A19;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge.rest {
    background-color: #F0E8E1;
    color: #B5A397;
}

.schedule-note {
    text-align: right;
    font-size: 0.85rem;
    color: #8C6D58;
    margin-top: 10px;
}

/* BOOKING BANNER */
.booking-banner {
    background: linear-gradient(135deg, #8C4A19, #D97724);
    color: #FFF;
}

.booking-banner h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.phone-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #FFF;
    padding: 12px 30px;
    border-radius: 40px;
    margin: 25px 0 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.phone-icon { font-size: 1.5rem; }

.phone-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #8C4A19;
    text-decoration: none;
}

.phone-desc { font-size: 0.9rem; opacity: 0.9; }

/* CONTACT & FORM */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info h3 {
    color: #8C4A19;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 12px;
    font-size: 1rem;
}

.info-box {
    margin-top: 30px;
    padding: 20px;
    background-color: #F4EBE1;
    border-left: 4px solid #D97724;
    border-radius: 0 8px 8px 0;
}

.info-box h4 { color: #8C4A19; margin-bottom: 5px; }

.contact-form-card {
    background: #FFF;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(140, 74, 25, 0.05);
    border: 1px solid #F4EBE1;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #4A3B32;
    font-size: 0.9rem;
}

.required { color: #D97724; }

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #E2D5C8;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    background-color: #FDFBF7;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: #D97724;
    background-color: #FFF;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background-color: #8C4A19;
    color: #FFF;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #D97724;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(74, 59, 50, 0.6);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #FFF;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: #8C6D58;
}

.modal pre {
    background-color: #F4EBE1;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    overflow-x: auto;
    font-family: monospace;
    font-size: 0.85rem;
    color: #4A3B32;
}

.modal-note {
    font-size: 0.8rem;
    color: #8C6D58;
}

/* FOOTER */
footer {
    background-color: #4A3B32;
    color: #EAD0B3;
    padding: 25px 0;
    font-size: 0.85rem;
}

/* RESPONSIVE DESIGN (RWD) */
@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .hero-content h1 { font-size: 2.4rem; }
}

@media (max-width: 768px) {
    .navbar { padding: 0 20px; }
    .hamburger { display: flex; }
    
    .nav-menu {
        position: absolute;
        top: 70px;
        right: -100%;
        width: 250px;
        height: calc(100vh - 70px);
        background-color: #FDFBF7;
        box-shadow: -5px 0 15px rgba(0,0,0,0.05);
        transition: right 0.3s ease;
        padding: 30px 20px;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .grid-3, .grid-2, .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 { font-size: 1.8rem; }
    .hero-content p { font-size: 1rem; }
    .phone-number { font-size: 1.3rem; }
}
