:root {
    --primary-yellow: #ffc72f;
    --primary-red: #e22a38;
    --bg-color: #F7F3E0;
    --text-color: #333;
    --header-footer-bg: #e22a38;
    --header-footer-text: #FDFDFA;
    --logo-yellow: #FEC532;
    --slogan-bg: #ffc72f;
    --slogan-text: #261902;
}

@font-face {
    font-family: 'Phudu';
    src: url('../fonts/Phudu/Phudu-VariableFont_wght.ttf') format('truetype');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Phudu', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* Slogan Section */
.slogan-section {
    background-color: var(--slogan-bg);
    color: var(--slogan-text);
    text-align: center;
    padding: 10px 0;
    font-weight: bold;
    font-size: 1.2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-slogan {
    display: none; /* Hidden by default (mobile) */
    align-items: center;
    gap: 20px;
    height: 40px;
}

.slogan-text-header {
    color: var(--logo-yellow);
    font-weight: bold;
    font-size: 1.1rem;
    white-space: nowrap;
}

/* Header / Logo */
header {
    background-color: var(--header-footer-bg);
    color: var(--header-footer-text);
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0; /* Updated from 44px for desktop */
    z-index: 999;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    height: 80px; /* Increased from 60px */
    transition: height 0.3s ease;
    object-fit: contain;
}

.header-hotline {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 40px;
}

.vertical-line {
    width: 2px;
    height: 100%;
    background-color: var(--logo-yellow);
}

.hotline-text {
    color: var(--header-footer-text);
    font-weight: bold;
    font-size: 1.1rem;
    white-space: nowrap;
}

.mobile-booking-container {
    display: none;
    align-items: center;
    gap: 15px;
}

.mobile-booking {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

.facebook-btn-mobile {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.facebook-btn-mobile svg {
    width: 32px;
    height: 32px;
}

.booking-btn-mobile {
    color: var(--header-footer-text);
    border: 2px solid var(--logo-yellow) !important;
    padding: 4px 12px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.booking-btn-mobile:hover {
    background-color: var(--logo-yellow) !important;
    color: var(--header-footer-bg) !important;
}

.call-btn-icon svg {
    vertical-align: middle;
    width: 36px;
    height: 30px;
}

.logo path, .logo polygon {
    fill: var(--logo-yellow) !important;
    stroke: none !important;
}

.header-right nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.header-right nav ul li a {
    color: var(--header-footer-text);
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
}

/* Cover Section */
.cover-section {
    width: 100%;
    height: 500px;
    overflow: hidden;
    position: relative;
}

.cover-images {
    width: 100%;
    height: 100%;
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.cover-image.active {
    opacity: 1;
}

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* Slider Sections (Signature & Promotion) */
.slider-section {
    padding: 40px 0;
    overflow: hidden;
}

.slider-section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-red);
    font-size: 2rem;
}

.signature-section {
    background-color: var(--bg-color);
    text-align: center;
}

.signature-slider-wrapper, .promotion-slider-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.signature-slider-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding: 10px 0;
    scroll-snap-type: x mandatory;
}

.slider-arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(226, 42, 56, 0.7);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: opacity 0.3s ease, background 0.3s ease;
    /* Blur effect around the button */
    backdrop-filter: blur(4px);
}

.slider-arrow:hover {
    background: rgba(226, 42, 56, 1);
}

.slider-arrow.hidden {
    opacity: 0;
    pointer-events: none;
}

.signature-slider-wrapper::after, .promotion-slider-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(to right, transparent, var(--bg-color));
    pointer-events: none;
    z-index: 5;
    opacity: 1;
    transition: opacity 0.3s ease;
    /* Blur effect for the content behind the gradient */
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    mask-image: linear-gradient(to right, transparent, black);
    -webkit-mask-image: linear-gradient(to right, transparent, black);
}

.promotion-section .promotion-slider-wrapper::after {
    background: linear-gradient(to right, transparent, #ffc72f);
}

.signature-slider-wrapper.reached-end::after,
.promotion-slider-wrapper.reached-end::after {
    opacity: 0;
}

/* Hide scrollbar but keep functionality */
.signature-slider-wrapper::-webkit-scrollbar {
    display: none;
}
.signature-slider-wrapper {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#signature-slider {
    animation: none;
    padding: 0;
    width: 100%;
}

.signature-section .slider-item {
    flex: 0 0 100%;
    margin: 0;
    scroll-snap-align: start;
    cursor: grab;
    padding: 0 20px;
    box-sizing: border-box;
}

.signature-section .slider-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#signature-slider .slider-item:active {
    cursor: grabbing;
}

@media (min-width: 768px) {
    .signature-section .slider-item {
        flex: 0 0 50%;
    }
}

.slider-container {
    display: flex;
    width: max-content;
    animation: slideLeft 30s linear infinite;
}

.slider-item {
    flex: 0 0 300px;
    margin: 0 15px;
}

.slider-item img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

@keyframes slideLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Promotion Section specific style */
.promotion-section {
    background-color: #ffc72f;
    text-align: center;
}

.promotion-slider-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding: 10px 0;
    scroll-snap-type: x mandatory;
}

/* Hide scrollbar but keep functionality */
.promotion-slider-wrapper::-webkit-scrollbar {
    display: none;
}
.promotion-slider-wrapper {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#promotion-slider {
    animation: none;
    padding: 0;
    width: 100%;
}

.promotion-section .slider-item {
    flex: 0 0 100%;
    margin: 0;
    scroll-snap-align: start;
    cursor: grab;
    padding: 0 20px;
    box-sizing: border-box;
}

.promotion-section .slider-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#promotion-slider .slider-item:active {
    cursor: grabbing;
}

.signature-section h2, .promotion-section h2 {
    color: var(--primary-red);
    position: relative;
    display: inline-block;
    border: 3px solid var(--primary-red);
    border-radius: 5px;
    padding: 10px 20px;
    margin-bottom: 25px;
}

@media (min-width: 768px) {
    .signature-section .slider-item, .promotion-section .slider-item {
        flex: 0 0 500px;
        margin: 0 10px;
    }

    #signature-slider, #promotion-slider {
        justify-content: center;
        width: 100%;
        animation: none;
        transform: none !important;
    }
}

/* Footer */
footer {
    background-color: var(--header-footer-bg);
    color: var(--header-footer-text);
    padding: 40px 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.footer-left-group {
    display: flex;
    align-items: center;
    gap: 40px;
}

.footer-logo {
    height: 80px;
}

.footer-logo path, .footer-logo polygon {
    fill: var(--logo-yellow) !important;
    stroke: none !important;
}

.footer-booking-btn, .footer-booking-btn-inline {
    display: inline-block;
    background-color: transparent;
    color: var(--header-footer-text) !important;
    border: 2px solid var(--logo-yellow) !important;
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    width: fit-content;
    font-size: 1rem !important;
}

.footer-booking-btn:hover, .footer-booking-btn-inline:hover {
    background-color: var(--logo-yellow) !important;
    color: var(--header-footer-bg) !important;
}

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

.modal-content {
    background-color: var(--bg-color);
    margin: auto;
    padding: 30px;
    border: 2px solid var(--primary-red);
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close-modal {
    color: var(--primary-red);
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.modal-header h2 {
    color: var(--primary-red);
    font-size: 1.8rem;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-weight: bold;
    color: var(--slogan-text);
}

.form-group input, .form-group select, .form-group textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Phudu', sans-serif;
    font-size: 1rem;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 5px rgba(226, 42, 56, 0.3);
}

.error-text {
    color: var(--primary-red);
    font-size: 0.8rem;
    margin-top: 2px;
    display: none;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: var(--primary-red);
}

.submit-btn {
    background-color: var(--primary-red);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
    font-family: 'Phudu', sans-serif;
}

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

.submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Confirmation Modal */
.confirm-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    align-items: center;
    justify-content: center;
}

.confirm-content {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border: 2px solid var(--primary-red);
}

.confirm-title {
    color: var(--primary-red);
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.confirm-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.confirm-btn {
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Phudu', sans-serif;
    flex: 1;
    border: none;
}

.quit-btn {
    background-color: #666;
    color: white;
}

.continue-btn {
    background-color: var(--primary-red);
    color: white;
}

/* Success Modal */
.success-modal {
    display: none;
    position: fixed;
    z-index: 4000; /* Higher than confirm-modal */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    align-items: center;
    justify-content: center;
}

.success-content {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border: 2px solid #28a745; /* Green for success */
}

.success-title {
    color: #28a745;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.success-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.success-btn {
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Phudu', sans-serif;
    flex: 1;
    border: none;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ok-btn {
    background-color: #666;
    color: white;
}

.view-menu-btn {
    background-color: var(--primary-red);
    color: white;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
    min-width: 0;
}

.form-group select {
    width: 100%;
}

@media (max-width: 480px) {
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
}

.footer-menu-section {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: center;
}

.footer-menu-section a {
    color: var(--header-footer-text);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background-color: transparent;
    border: 1px solid #D9D9D9;
    padding: 8px;
    transition: transform 0.3s ease;
}

.footer-social-icon:hover {
    transform: scale(1.1);
    border-color: var(--logo-yellow);
}

.footer-social-icon svg {
    width: 100%;
    height: 100%;
}

.footer-social-icon path {
    fill: #FDFDFA !important;
}

.footer-bottom {
    width: 100%;
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.header-right nav ul li.mobile-hide {
    display: none;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 10px;
        gap: 10px;
        top: 44px; /* Maintain sticky below top slogan on mobile */
    }
    .logo {
        height: 50px;
    }
    .header-hotline {
        display: none;
    }
    .mobile-booking-container {
        display: flex;
    }
    .header-right nav ul {
        gap: 10px;
        font-size: 0.8rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .cover-section {
        height: 300px;
    }
    .desktop-only {
        display: none;
    }
    .mobile-only {
        display: block;
    }
    .slogan-section {
        display: block;
        font-size: 0.9rem;
    }
    .header-slogan {
        display: none;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .footer-logo-section {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 10px;
    }
    .footer-logo-container {
        width: 100%;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    .footer-logo {
        height: 60px;
    }
    .footer-booking-container {
        display: flex;
        align-items: center;
        gap: 15px;
    }
    .footer-booking-btn, .footer-booking-btn-inline {
        padding: 6px 15px !important;
        font-size: 0.9rem !important;
    }
    .footer-social-mobile {
        display: flex !important;
        align-items: center;
        gap: 10px;
    }
    .footer-social-mobile .footer-social-icon svg {
        width: 24px;
        height: 24px;
    }
    .footer-menu-section {
        flex-direction: column;
        gap: 10px;
        display: none;
    }
    .footer-right {
        display: none;
    }
}

/* Social Bar removed */

@media (min-width: 769px) {
    .desktop-only {
        display: block;
    }
    .mobile-only {
        display: none;
    }
    .header-right nav ul li.mobile-hide {
        display: block;
    }
    .slogan-section {
        display: none;
    }
    .header-slogan {
        display: flex;
    }
}
