/*
Theme Name: Hakkasoyy Theme
Theme URI: 
Author: Antigravity
Author URI: 
Description: Custom WordPress theme converted from Figma for Hakkasoyy Chinese Kitchen.
Version: 1.0.0
Text Domain: hakkasoyy
*/

:root {
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-red: #D71920;
    --color-dark-blue: #0E1D42;
    /* --color-green: #00c853; Unused, reserved for future WhatsApp integration */
    
    --font-main: 'Raleway', sans-serif;
    --font-heading-alt: 'Open Sans', sans-serif;
    --font-text-alt: 'Barlow', sans-serif;
}

html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-white);
    color: var(--color-black);
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
}

/* =========================================
   Header Section
   ========================================= */
.header-section {
    background-color: var(--color-black);
    height: 200px;
    width: 100%;
}

.nav-link-custom {
    color: var(--color-white);
    text-decoration: none;
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}

.nav-link-custom:hover {
    color: var(--color-white);
    opacity: 0.8;
}

.header-logo {
    max-height: 136px;
    object-fit: contain;
}

.btn-reserve {
    width: 107px;
    height: 40px;
    background-image: url('assets/whatsapp_icon-66210e.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    border: none;
    color: var(--color-white);
    text-decoration: none;
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
    padding-left: 10px;
}

.btn-reserve:hover {
    opacity: 0.8;
    color: var(--color-white);
}

/* Mobile Header Row */
.mobile-header-row {
    padding-left: 15px;
    padding-right: 15px;
    height: 100%;
}

/* Toggle Button */
.toggle-btn {
    z-index: 1050;
    height: 24px;
}

.btn-toggle-svg {
    pointer-events: none;
}

/* Offcanvas Mobile Menu */
.offcanvas-mobile {
    background-color: var(--color-black);
    color: var(--color-white);
    width: 300px;
}

.offcanvas-logo {
    height: 40px;
    object-fit: contain;
}

.offcanvas-reserve-btn {
    margin: 0;
}

/* Visit Section Buttons */
.visit-buttons-row {
    gap: 29px;
}

/* .whatsapp-icon — removed: no matching HTML element */

/* =========================================
   Hero Section
   ========================================= */
.hero-section {
    height: 800px;
    width: 100%;
    /* Background image is now set on .hero-mobile and .hero-slide-bg directly */
}

.hero-slide-bg {
    width: 100% !important;
    height: 800px !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    display: block !important;
}

@media (max-width: 991px) {
    .hero-slide-bg {
        height: 620px !important;
    }
}

/* .hero-divider — removed: no matching HTML element */

.carousel-indicators-custom {
    position: absolute;
    top: 745px; /* Absolute 945px - 200px header offset */
    left: 50%; /* Center dynamically */
    transform: translateX(-50%);
    display: flex;
    gap: 12px; /* Scales perfectly for any number of dots */
    align-items: center;
    width: max-content; 
    height: 10px;
    z-index: 10;
    margin: 0;
    padding: 0;
}

.carousel-indicators-custom button.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid var(--color-dark-blue);
    background-color: transparent;
    padding: 0;
    text-indent: -999px;
}

.carousel-indicators-custom button.dot.active {
    background-color: var(--color-dark-blue);
    border: none;
}

.carousel-indicators-about {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 80px; 
    height: 10px;
    z-index: 10;
    margin: 0;
    padding: 0;
}

.carousel-indicators-about button.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid var(--color-white);
    background-color: transparent;
    padding: 0;
    text-indent: -999px;
}

.carousel-indicators-about button.dot.active {
    background-color: var(--color-white);
    border: none;
}

/* =========================================
   About Section
   ========================================= */
.about-section {
    background-color: var(--color-red);
    color: var(--color-white);
    height: 700px;
    padding: 0;
}

.heading-primary {
    font-family: var(--font-main);
    font-weight: 300;
    font-size: 40px;
    text-transform: uppercase;
    margin-bottom: 40px;
    line-height: 1;
}

.about-description {
    font-family: var(--font-main);
    font-weight: 400;
    font-size: 20px;
    line-height: 30px;
    color: var(--color-white);
    max-width: 474px;
}

.about-image {
    width: 100%;
    height: 590px;
    object-fit: cover;
}

/* =========================================
   Menu Section
   ========================================= */
.menu-section {
    background-color: var(--color-white);
    color: var(--color-black);
    height: 700px;
    padding: 0;
}

.menu-image-container {
    position: relative;
    width: 100%;
}

.menu-image {
    width: 100%;
    height: 590px;
    object-fit: cover;
}

/* .slider-indicator — removed: no matching HTML element */

.text-blue-dark {
    color: var(--color-dark-blue);
}

.text-red {
    color: var(--color-red);
}

.menu-description {
    font-family: var(--font-main);
    font-weight: 400;
    font-size: 20px;
    line-height: 30px;
    color: var(--color-dark-blue);
    max-width: 442px;
    /* height removed — was clipping text on medium screens */
    margin-bottom: 100px;
}

.btn-menu {
    width: 199px;
    height: 40px;
    background-color: var(--color-black);
    border-radius: 20px;
    color: var(--color-white);
    text-decoration: none;
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
    border: none;
}

.btn-menu:hover {
    opacity: 0.8;
    color: var(--color-white);
}

/* =========================================
   Visit Section
   ========================================= */
.visit-section {
    background-color: var(--color-black);
    color: var(--color-white);
    height: 700px;
    padding: 0;
}

/* Using Bootstrap's built-in .text-white utility instead of custom override */

.visit-info {
    font-family: var(--font-main);
    font-weight: 400;
    font-size: 20px;
    line-height: 30px;
    color: var(--color-white);
    margin-top: -20px;
    margin-bottom: 84px;
    max-width: 474px;
}

.visit-image {
    width: 100%;
    height: 590px;
    object-fit: cover;
}

.btn-outline-custom {
    width: 199px;
    height: 40px;
    background-color: transparent;
    border: 1px solid var(--color-white);
    border-radius: 20px;
    color: var(--color-white);
    text-decoration: none;
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-outline-custom:hover {
    background-color: var(--color-white);
    color: var(--color-black);
}

/* =========================================
   Animations
   ========================================= */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Responsive Adjustments
   ========================================= */

@media (min-width: 992px) {
    .section-text-left {
        padding-left: 159px !important;
        padding-right: 87px !important;
    }
    .section-img-right {
        padding-right: 45px !important;
        padding-left: 0 !important;
    }
    .section-img-left {
        padding-left: 46px !important;
        padding-right: 0 !important;
    }
    .section-text-right {
        padding-left: 131px !important;
        padding-right: 147px !important;
    }
    .text-column-pt {
        padding-top: 54px !important;
    }
    .img-column-pt {
        padding-top: 110px !important;
    }
}

.section-label {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 28px;
    margin-bottom: 34px;
}
.section-label.black {
    color: var(--color-black);
}
.section-label.red {
    color: var(--color-red);
}

/* Scroll offset for fixed header on mobile */
#about, #menu, #visit {
    scroll-margin-top: 140px;
}

@media (min-width: 992px) {
    #about, #menu, #visit {
        scroll-margin-top: 0;
    }
}

@media (max-width: 991px) {
    body {
        padding-top: 132px; /* Push content below fixed header */
    }
    .header-section {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 132px;
        z-index: 1030;
    }
    .mobile-logo {
        width: 190px !important;
        height: 66px !important;
        max-height: none !important;
        object-fit: contain;
    }
    .btn-toggle-svg {
        width: 24px;
        height: 24px;
    }
    .hero-section {
        height: 620px;
    }
    .hero-mobile {
        background: url('assets/heroimage.svg') center center/cover no-repeat;
    }
    .carousel-indicators-custom {
        position: absolute;
        top: 443px; /* Absolute 575px - 132px header offset */
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100px; /* adjusted width for 6 dots on mobile */
        height: 10px;
        z-index: 10; /* ensure it's clickable */
        margin: 0;
        padding: 0;
    }
    .carousel-indicators-custom button.dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        border: 1px solid var(--color-dark-blue);
        background-color: transparent;
        padding: 0;
        text-indent: -999px;
    }
    .carousel-indicators-custom button.dot.active {
        background-color: var(--color-dark-blue);
        border: none;
    }
    .about-section, .menu-section, .visit-section {
        height: auto;
        padding: 0;
    }
    .text-column-pt {
        padding: 60px 24px !important;
    }
    .img-column-pt {
        padding: 0 !important;
    }
    .heading-primary {
        font-size: 28px;
        margin-bottom: 20px;
    }
    .about-description, .menu-description, .visit-info {
        font-size: 16px;
        line-height: 24px;
        height: auto !important; /* Important: Remove fixed height on mobile! */
        margin-bottom: 30px !important;
    }
    .about-image, .menu-image, .visit-image {
        height: 350px;
    }
    .btn-menu {
        width: 199px !important;
        height: 40px !important;
        border-radius: 20px !important;
        font-family: 'Raleway', sans-serif !important;
        font-weight: 500 !important;
        font-size: 10px !important;
        line-height: 30px !important;
        letter-spacing: 0.1em !important;
        text-transform: uppercase !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto !important;
    }
    .btn-outline-custom {
        width: 199px !important;
        height: 40px !important;
        border-radius: 20px !important;
        border: 1px solid #FFFFFF !important;
        font-family: 'Raleway', sans-serif !important;
        font-weight: 500 !important;
        font-size: 10px !important;
        line-height: 30px !important;
        letter-spacing: 0.1em !important;
        text-transform: uppercase !important;
        background: transparent !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto !important;
    }
    .btn-reserve {
        width: 107px !important;
        height: 40px !important;
        margin: 0 auto; /* keep reserve centered on mobile */
    }
    .visit-section .heading-primary {
        font-family: 'Raleway', sans-serif !important;
        font-weight: 300 !important;
        font-size: 30px !important;
        line-height: 1 !important;
        text-align: center !important;
        text-transform: uppercase !important;
        margin-bottom: 34px !important;
    }
    .visit-section .visit-info {
        font-family: 'Raleway', sans-serif !important;
        font-weight: 400 !important;
        font-size: 15px !important;
        line-height: 25px !important;
        text-align: center !important;
        margin-top: 0 !important;
        margin-bottom: 75px !important;
    }
    .hero-divider img {
        width: 100%;
        max-width: 300px;
    }
}

/* Premium Carousel Slide Transition (Web Only) */
#aboutCarouselDesktop .carousel-item {
    /* Super smooth, standard premium easing (fast start, slow stop) */
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1) !important;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-perspective: 1000px;
    perspective: 1000px;
}

/* Optional: Add a subtle inner scale effect to the image while it slides */
#aboutCarouselDesktop .carousel-item img {
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    transform: scale(1.05); /* Slightly zoomed in when inactive */
}

#aboutCarouselDesktop .carousel-item.active img {
    transform: scale(1); /* Settles to normal size when active */
}

/* Hardware Acceleration to fix jittery scroll on massive Hero Images (Web Only) */
#heroCarouselDesktop .carousel-item,
#heroCarouselDesktop .hero-slide-bg {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-perspective: 1000px;
    perspective: 1000px;
}

/* Fix carousel-fade z-index stacking & transition timing (Web Only) */
#heroCarouselDesktop.carousel-fade .carousel-item,
#menuCarouselDesktop.carousel-fade .carousel-item {
    transition: opacity 0.6s ease-in-out !important;
    opacity: 0;
    z-index: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

#heroCarouselDesktop.carousel-fade .carousel-item.active,
#menuCarouselDesktop.carousel-fade .carousel-item.active {
    opacity: 1;
    z-index: 1;
    position: relative;
}

/* During the transition: outgoing stays visible, incoming fades in on top */
#heroCarouselDesktop.carousel-fade .carousel-item-start,
#heroCarouselDesktop.carousel-fade .carousel-item-end,
#menuCarouselDesktop.carousel-fade .carousel-item-start,
#menuCarouselDesktop.carousel-fade .carousel-item-end {
    opacity: 0;
    z-index: 0;
    transition: opacity 0.6s ease-in-out !important;
}

#heroCarouselDesktop.carousel-fade .carousel-item-next.carousel-item-start,
#heroCarouselDesktop.carousel-fade .carousel-item-prev.carousel-item-end,
#menuCarouselDesktop.carousel-fade .carousel-item-next.carousel-item-start,
#menuCarouselDesktop.carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1;
    z-index: 2;
}
