/* Custom Styles & Scrollbar */
html,
body {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1F1A17;
    background-color: #FFFFFF;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* OOROO cafe Brand Wordmark */
.ooroo-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.ooroo-logo-main {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 0.88;
}

.ooroo-logo-sub {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 500;
    letter-spacing: 0.03em;
    line-height: 1;
    margin-top: 2px;
}

h1,
h2,
h3,
h4,
.font-serif-heading {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1F1210;
}

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

/* Reveal Animations on Scroll (Unique per Section) */
.reveal-element {
    opacity: 0;
    will-change: opacity, transform;
}

.reveal-element.active {
    animation-duration: 1s;
    animation-timing-function: ease;
    animation-fill-mode: both;
}

/* SaDosaCafe Style Animations (Elementor / Animate.css) */

/* Hero: bounceInDown + bounceIn */
.anim-hero-rise.active {
    animation-name: sadosaBounceInDown;
}
@keyframes sadosaBounceInDown {
    from, 60%, 75%, 90%, to {
        animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    }
    0% {
        opacity: 0;
        transform: translate3d(0, -120px, 0) scaleY(1.1);
    }
    60% {
        opacity: 1;
        transform: translate3d(0, 18px, 0) scaleY(0.95);
    }
    75% {
        transform: translate3d(0, -8px, 0) scaleY(1.02);
    }
    90% {
        transform: translate3d(0, 4px, 0) scaleY(0.99);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.anim-bounce-in.active {
    animation-name: sadosaBounceIn;
}
@keyframes sadosaBounceIn {
    from, 20%, 40%, 60%, 80%, to {
        animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    }
    0% {
        opacity: 0;
        transform: scale3d(0.3, 0.3, 0.3);
    }
    20% {
        transform: scale3d(1.08, 1.08, 1.08);
    }
    40% {
        transform: scale3d(0.92, 0.92, 0.92);
    }
    60% {
        opacity: 1;
        transform: scale3d(1.03, 1.03, 1.03);
    }
    80% {
        transform: scale3d(0.98, 0.98, 0.98);
    }
    to {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}

/* About & Split Sections: slideInLeft / slideInRight */
.anim-glide-left.active {
    animation-name: sadosaSlideInLeft;
}
@keyframes sadosaSlideInLeft {
    from {
        opacity: 0;
        transform: translate3d(-80px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.anim-glide-right.active {
    animation-name: sadosaSlideInRight;
}
@keyframes sadosaSlideInRight {
    from {
        opacity: 0;
        transform: translate3d(80px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Special Menu & Gallery: zoomIn */
.anim-pop-zoom.active,
.anim-flip-card.active {
    animation-name: sadosaZoomIn;
}
@keyframes sadosaZoomIn {
    from {
        opacity: 0;
        transform: scale3d(0.75, 0.75, 0.75);
    }
    50% {
        opacity: 1;
    }
    to {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}

/* Services & Upward Sections: slideInUp */
.anim-clip-curtain.active,
.anim-horizon-wipe.active,
.anim-skew-editorial.active,
.anim-diagonal-rise.active {
    animation-name: sadosaSlideInUp;
}
@keyframes sadosaSlideInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 60px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Why Dine With Us Cards: swing (like SaDosaCafe cards) */
.anim-tilt-swing.active {
    transform-origin: top center;
    animation-name: sadosaSwing;
}
@keyframes sadosaSwing {
    0% {
        opacity: 0;
        transform: rotate3d(0, 0, 1, -8deg);
    }
    20% {
        opacity: 1;
        transform: rotate3d(0, 0, 1, 10deg);
    }
    40% {
        transform: rotate3d(0, 0, 1, -7deg);
    }
    60% {
        transform: rotate3d(0, 0, 1, 4deg);
    }
    80% {
        transform: rotate3d(0, 0, 1, -2deg);
    }
    to {
        opacity: 1;
        transform: rotate3d(0, 0, 1, 0deg);
    }
}

/* Testimonials: bounceIn */
.anim-iris-focus.active,
.anim-turn-in.active {
    animation-name: sadosaBounceIn;
}

/* Reservation / Top-Down Sections: slideInDown */
.anim-drop-glide.active {
    animation-name: sadosaSlideInDown;
}
@keyframes sadosaSlideInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -60px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Footer: fadeIn */
.anim-fade-drift.active {
    animation-name: sadosaFadeIn;
}
@keyframes sadosaFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal-element {
        opacity: 1;
        animation: none !important;
    }

    .hero-cursor,
    .hero-dish-float,
    .hero-dish-ring,
    .hero-leaf-float {
        animation: none !important;
    }

    .hero-rotate-img {
        transform: none !important;
        opacity: 1 !important;
        transition: none !important;
    }
}

/* Filter Transitions */
.menu-item-card {
    transition: all 0.4s ease-in-out;
}

/* Lightbox Overlay */
#lightboxModal {
    transition: opacity 0.3s ease;
}

/* Selection styling */
::selection {
    background-color: #8C1D18;
    color: #FFFFFF;
}

/* Custom Dropdown & Datepicker Popups */
.custom-popup {
    animation: popupFadeIn 0.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    transform-origin: top center;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.custom-select-trigger.is-open,
.custom-date-trigger.is-open {
    border-color: #8C1D18;
    box-shadow: 0 0 0 3px rgba(140, 29, 24, 0.14);
}

.custom-select-trigger.is-open .custom-select-arrow {
    transform: rotate(180deg);
    color: #8C1D18;
}

.custom-select-menu {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.custom-select-menu::-webkit-scrollbar {
    display: none;
}

/* Hero Typewriter Cursor */
.hero-cursor {
    display: inline-block;
    width: 3px;
    margin-left: 4px;
    background-color: rgba(255, 255, 255, 0.85);
    animation: heroCursorBlink 1s infinite;
}

.hero-cursor.typing {
    animation: none;
}

@keyframes heroCursorBlink {
    0%, 49% {
        background-color: rgba(255, 255, 255, 0.85);
    }
    50%, 99% {
        background-color: transparent;
    }
    100% {
        background-color: rgba(255, 255, 255, 0.85);
    }
}

/* Section 02: Split Hero Background & Dish Animations (Vandy's style) */
.hero-vandys-bg {
    background-color: #FFFFFF;
    /* background-image:
        linear-gradient(to right, rgba(140, 29, 24, 0.045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(140, 29, 24, 0.045) 1px, transparent 1px),
        radial-gradient(circle at 78% 48%, rgba(244, 236, 225, 0.85) 0%, rgba(255, 255, 255, 0) 62%);
    background-size: 72px 72px, 72px 72px, 100% 100%; */
}

.hero-rotate-img {
    opacity: 0;
    transform: rotate(160deg) scale(0.25);
    transition: transform 1.15s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.85s ease-out;
    will-change: transform, opacity;
}

.hero-rotate-img.animated {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.hero-dish-float {
    animation: heroDishFloat 5s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes heroDishFloat {
    0% {
        transform: translateY(0px) rotate(-1.5deg);
    }
    100% {
        transform: translateY(-12px) rotate(1.5deg);
    }
}

.hero-dish-ring {
    animation: heroDishRingSpin 26s linear infinite;
}

@keyframes heroDishRingSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.hero-leaf-float {
    animation: heroLeafMover 2.2s ease-in-out infinite alternate;
    will-change: transform;
}

.hero-leaf-float-delay {
    animation-delay: 0.9s;
}

@keyframes heroLeafMover {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    100% {
        transform: translateY(-15px) rotate(6deg);
    }
}
