/* style.css - Mantra Restaurant Theme */

:root {
    --primary: #FEA116;
    --primary-light: #ffcb6b;
    --primary-dark: #e8940f;
    --secondary: #FEA116;
    --secondary-dark: #e8940f;
    --secondary-light: #ffcb6b;
    --dark: #0F172B;
    --dark2: #121B35;
    --text-muted: #6C757D;
    --text-body: #6C757D;
    --white: #ffffff;
    --bg: #F8F9FA;
    --light: #F1F8FF;
    --border: rgba(254, 161, 22, 0.12);
    --bg-dark: #0F172B;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Nunito', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--text-muted);
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Universal Box Sizing Inheritance */
*,
*::before,
*::after {
    box-sizing: inherit;
}

/* Green Curtain Transition */
.green-curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--primary);
    z-index: 99999;
    pointer-events: none;
    transform-origin: left;
    animation: curtainGo 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes curtainGo {
    0% {
        transform: scaleX(0);
        transform-origin: left;
    }

    49% {
        transform: scaleX(1);
        transform-origin: left;
    }

    50% {
        transform: scaleX(1);
        transform-origin: right;
    }

    100% {
        transform: scaleX(0);
        transform-origin: right;
    }
}


/* Image and Media Fluidity */
img,
video,
canvas,
svg {
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* Button Styles */
.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    color: var(--white);
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.btn-primary:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(254, 161, 22, 0.4);
}

.btn-outline-primary {
    color: var(--primary);
    background-color: transparent;
    border: 1.5px solid var(--primary);
}

.btn-outline-primary:hover {
    color: var(--white);
    background-color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(61, 107, 53, 0.3);
}

.btn-outline-light {
    color: var(--white);
    border-color: var(--white);
    background-color: transparent;
}

.btn-outline-light:hover {
    color: var(--primary);
    background-color: var(--white);
    border-color: var(--white);
    transform: translateY(-2px);
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.px-4 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-3 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.px-5 {
    padding-left: 3rem;
    padding-right: 3rem;
}

.me-3 {
    margin-right: 1rem;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--dark);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 5%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background-color: rgba(15, 23, 43, 0.95);
    backdrop-filter: blur(10px);
}

.sticky-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    border-bottom: 1px solid #eef4ea;
    background-color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.sticky-navbar.scrolled {
    padding: 0.6rem 5%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(61, 107, 53, 0.1);
}

.navbar-brand {
    margin-right: 2rem;
}

.logo-text {
    font-size: 1.8rem;
    color: var(--primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.sticky-navbar.scrolled .logo-text {
    font-size: 1.4rem;
}

.navbar-collapse {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: space-between;
}

.navbar-nav {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.navbar-toggler {
    display: none;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-size: 1.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
}

/* Hero Section */
.hero-header {
    background-color: var(--dark);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 5% 60px;
    position: relative;
    overflow: hidden;
}

.hero-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background-color: var(--dark2);
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 0;
}

.hero-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/hero-watermark.jpg') center center;
    background-size: cover;
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    color: var(--light);
}

.hero-title {
    color: var(--white);
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    /* Words wrapping for 3D stagger */
    perspective: 1000px;
}

.word-span {
    display: inline-block;
    opacity: 0;
    transform-origin: bottom;
    animation: heroWordFlip 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(var(--word-index) * 0.08s);
}

@keyframes heroWordFlip {
    0% {
        opacity: 0;
        transform: translateY(60px) rotateX(-20deg);
        filter: blur(4px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
        filter: blur(0px);
    }
}

.hero-title span {
    color: var(--primary);
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    animation: slideInLeft 1s ease-out 0.2s both;
}

.hero-content .btn {
    animation: slideInLeft 1s ease-out 0.4s both;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    animation: zoomIn 1s ease-out 0.5s both;
}

.floating-img {
    border-radius: 50%;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.5);
    animation: spinSlow 30s linear infinite;
}

@keyframes spinSlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-tab {
    opacity: 0;
    animation: tabSlideIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes tabSlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes popOut {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    60% {
        opacity: 1;
        transform: scale(1.15);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation Classes applied by JS */
.animate-on-scroll {
    opacity: 0;
    /* Hidden by default until scrolled into view */
}

.popOut {
    animation: popOut 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

/* Cascade Assembly Effects */
.cascade-left {
    animation: cascadeLeft 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.cascade-top {
    animation: cascadeTop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.cascade-bottom {
    animation: cascadeBottom 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.cascade-right {
    animation: cascadeRight 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes cascadeLeft {
    0% {
        opacity: 0;
        transform: translateX(-80px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes cascadeTop {
    0% {
        opacity: 0;
        transform: translateY(-80px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cascadeBottom {
    0% {
        opacity: 0;
        transform: translateY(80px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cascadeRight {
    0% {
        opacity: 0;
        transform: translateX(80px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Stagger Fade specifically for Service Cards */
.stagger-fade-up {
    opacity: 0;
    transform: translateY(40px);
}

.stagger-fade-up.active {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Common Layout Utilities */
.section-padding {
    padding: 80px 5%;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
}

.text-primary {
    color: var(--primary);
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.w-75 {
    width: 75%;
}

.rounded {
    border-radius: 8px;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.section-title {
    margin-bottom: 2rem;
}

.section-title .subtitle {
    font-family: var(--font-heading);
    color: var(--primary);
    position: relative;
    display: inline-block;
    padding-right: 50px;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.section-title .subtitle::after {
    content: "";
    position: absolute;
    width: 40px;
    height: 2px;
    top: 50%;
    right: 0;
    margin-top: -1px;
    background: var(--primary);
}

.section-title .title {
    font-size: 2.5rem;
    font-weight: 800;
}

.zoom-hover {
    transition: transform 0.3s ease;
}

.zoom-hover:hover {
    transform: scale(1.05);
}

/* Services */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    position: relative;
    overflow: hidden;
    transition: color 0.3s;
    text-align: center;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--primary);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 0;
}

.service-card:hover::before {
    transform: scaleY(1);
}

.service-card>* {
    position: relative;
    z-index: 1;
    transition: color 0.3s;
}

.service-card:hover i,
.service-card:hover h5,
.service-card:hover p {
    color: #ffffff !important;
}

/* About Us */
.about-us-section.flex-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.about-us-section .flex-item {
    /* Overrides the default 'auto' value, permitting the item to shrink below content size */
    min-width: 0;
    /* Allows the item to shrink based on available space */
    flex-shrink: 1;
    /* Ensures text strings do not dictate structural width */
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

@media screen and (max-width: 768px) {
    .about-us-section.flex-container {
        padding-left: 1rem;
        padding-right: 1rem;
        width: 100%;
        box-sizing: border-box;
    }
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    /* Strict 16px uniform gutter */
}

.about-images img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin: 0 !important;
    /* Force override legacy inline gaps */
}

.about-content {
    padding-left: 2rem;
}

.about-content p {
    line-height: 1.8;
}

.stats-row {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    border-left: 5px solid var(--primary);
    padding-left: 1.5rem;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.display-5 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    font-family: var(--font-body);
}

.stat-box p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1;
}

.stat-box h6 {
    margin: 0;
    font-size: 1rem;
    letter-spacing: 2px;
}

/* Menu Section */
.text-center {
    text-align: center;
}

.section-title.text-center .subtitle::after {
    display: none;
}

.section-title.text-center .subtitle::before {
    content: "";
    position: absolute;
    width: 40px;
    height: 2px;
    top: 50%;
    left: 0;
    margin-top: -1px;
    background: var(--primary);
}

.section-title.text-center .subtitle {
    padding-left: 50px;
    padding-right: 50px;
}

.nav-pills {
    display: flex;
    justify-content: center;
    gap: 1rem;
    list-style: none;
    margin-bottom: 3rem;
}

.nav-link-tab {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.8rem;
    background: transparent;
    border: 1px solid var(--primary);
    border-radius: 50px;
    color: var(--text-muted);
    cursor: pointer;
    transition: .3s;
}

.nav-link-tab i {
    color: var(--text-muted);
    transition: .3s;
}

.nav-link-tab.active,
.nav-link-tab:hover {
    background: var(--dark);
    color: var(--white);
    border-color: var(--dark);
}

.nav-link-tab.active i,
.nav-link-tab:hover i {
    color: var(--white) !important;
}

.tab-text {
    text-align: left;
}

.tab-text small {
    display: block;
    color: var(--text-muted);
}

.tab-text h6 {
    margin: 0;
    font-size: 1.1rem;
    font-family: var(--font-body);
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(61, 107, 53, 0.12);
    /* acts as subtle dividers */
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(61, 107, 53, 0.15);
    margin-top: 2rem;
}

.menu-item {
    background: var(--white);
    padding: 1.5rem 1.8rem;
    display: flex;
    flex-direction: column;
    transition: background 0.3s ease;
}

.menu-item:hover {
    background: #eef4ea;
}

.gold-divider {
    width: 28px;
    height: 1.5px;
    background: linear-gradient(90deg, #FEA116, transparent);
    margin: 12px 0;
}

.veg-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border: 1.5px solid #28a745;
    border-radius: 2px;
    margin-right: 10px;
}

.veg-dot::after {
    content: '';
    width: 8px;
    height: 8px;
    background-color: #28a745;
    border-radius: 50%;
}

.item-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-outline-pill {
    border: 1.5px solid var(--primary);
    color: var(--primary);
    background: transparent;
    border-radius: 50px;
    padding: 6px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline-pill:hover {
    background: var(--primary);
    color: var(--white);
}

.menu-item img {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    object-fit: cover;
}

.menu-info {
    flex: 1;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dotted rgba(0, 0, 0, 0.2);
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}

.menu-header h5 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--dark);
}

.menu-header .price {
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.25rem;
}

.menu-info p {
    color: var(--text-muted);
    font-style: italic;
    margin: 0;
}

/* Reservation */
.reservation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.video-section {
    position: relative;
    background: linear-gradient(rgba(15, 23, 43, .1), rgba(15, 23, 43, .1)), url('../img/video.jpg') center center no-repeat;
    background-size: cover;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-play {
    position: relative;
    display: block;
    box-sizing: content-box;
    width: 16px;
    height: 26px;
    border-radius: 100%;
    border: none;
    outline: none !important;
    padding: 18px 20px 20px 28px;
    background: var(--primary);
    cursor: pointer;
    animation: pulse 2s infinite;
}

.btn-play::before,
.btn-play::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 100%;
    box-shadow: 0 0 0 15px rgba(254, 161, 22, 0.5);
    z-index: 1;
}

.btn-play::after {
    box-shadow: 0 0 0 30px rgba(254, 161, 22, 0.2);
    z-index: 2;
}

.btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    border-left: 16px solid var(--white);
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.bg-dark {
    background-color: var(--dark) !important;
}

.text-white {
    color: var(--white) !important;
}

.p-4 {
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: color 0.3s;
}

.p-4::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--primary);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 0;
}

.p-4:hover::before {
    transform: scaleY(1);
}

.p-4>* {
    position: relative;
    z-index: 1;
    transition: color 0.3s;
}

.p-4:hover h2,
.p-4:hover p,
.p-4:hover i {
    color: var(--white) !important;
}

.reservation-form form {
    margin-top: 2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-control {
    padding: 1rem 1.25rem;
    font-size: 1rem;
    color: #666;
    background-color: var(--white);
    border: 1px solid #767676;
    border-radius: 4px;
    width: 100%;
    font-family: var(--font-body);
}

.textarea-full,
.w-100 {
    grid-column: 1 / -1;
}

/* Footer */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.text-light {
    color: #f8f9fa !important;
}

.footer-title {
    color: var(--secondary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.footer-link {
    display: block;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    transition: .5s;
}

.footer-link:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    color: var(--white);
    margin-right: 0.5rem;
    transition: .5s;
}

.social-links a:hover {
    background: var(--white);
    color: var(--primary);
}

.newsletter-input {
    position: relative;
    max-width: 400px;
    padding: 10px;
    /* Space for hover glow */
    border-radius: 8px;
    /* For background shape */
    overflow: hidden;
    transition: color 0.3s;
}

.newsletter-input::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--primary);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 0;
}

.newsletter-input:hover::before {
    transform: scaleY(1);
}

.newsletter-input input {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    border: none;
    outline: none;
}

.newsletter-input button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    border-radius: 4px;
}

.footer-bottom {
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* Tab Functionality */
.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.fade-in-up {
    transform: translateY(40px);
}

.fade-in-up.active,
.animate-on-scroll.fade-in-up {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    transform: translateX(-40px);
}

.animate-on-scroll.fade-in-left {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    transform: translateX(40px);
}

.animate-on-scroll.fade-in-right {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 991px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--dark);
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 5%;
        display: none;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    }

    .navbar-collapse.show {
        display: flex;
    }

    .navbar-nav {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-link {
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        display: block;
        width: 100%;
    }

    .book-table-btn {
        margin-top: 1.5rem;
        width: 100%;
    }

    .navbar-toggler {
        display: block;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        margin-top: 40px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-content .btn {
        margin-bottom: 1rem;
        width: 100%;
        margin-right: 0;
    }
}

/* Loading Screen Overlay */
.mantra-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.mantra-loader-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

.mantra-loader-overlay.fade-in {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.mantra-loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.cloche-svg {
    width: 100px;
    height: 100px;
    overflow: visible;
}

.cloche-cover-group {
    animation: liftCloche 2.5s cubic-bezier(0.42, 0, 0.58, 1) infinite;
    transform-origin: 50px 75px;
}

.steam path {
    animation: steamRise 2.5s cubic-bezier(0.42, 0, 0.58, 1) infinite;
    opacity: 0;
}

.steam path:nth-child(2) {
    animation-delay: 0.3s;
}

.steam path:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes liftCloche {

    0%,
    15% {
        transform: translateY(0) rotate(0);
    }

    45%,
    55% {
        transform: translateY(-25px) rotate(3deg);
    }

    85%,
    100% {
        transform: translateY(0) rotate(0);
    }
}

@keyframes steamRise {

    0%,
    25% {
        transform: translateY(15px);
        opacity: 0;
    }

    50% {
        opacity: 0.8;
    }

    75%,
    100% {
        transform: translateY(-25px);
        opacity: 0;
    }
}

.mantra-loader-text {
    font-family: var(--font-body);
    font-size: 1.3rem;
    color: var(--white);
    margin: 0;
    letter-spacing: 1px;
    animation: pulseTextOpacity 1.5s ease-in-out infinite;
    font-weight: 300;
}

@keyframes pulseTextOpacity {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1.0;
    }
}

/* Custom Hamburger Button */
.custom-hamburger-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1060;
    background: transparent;
    border: none;
    width: 35px;
    height: 30px;
    cursor: pointer;
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Offcanvas Sidebar */
.offcanvas-sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: var(--dark);
    z-index: 1050;
    transition: all 0.3s ease;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.offcanvas-sidebar.open {
    right: 0;
}

.sidebar-header {
    text-align: right;
    margin-bottom: 20px;
}

.sidebar-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-link {
    color: var(--white);
    font-size: 1.2rem;
    font-family: var(--font-heading);
    transition: all 0.3s;
}

.sidebar-link:hover {
    color: var(--primary);
}


/* Customer Feedbacks */
.feedback-section {
    padding: 60px 0;
    background: #f8f9fa;
    overflow: hidden;
}

.feedback-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 20px 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.feedback-carousel::-webkit-scrollbar {
    display: none;
}

.review-card {
    flex: 0 0 calc(100% - 40px);
    scroll-snap-align: center;
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .review-card {
        flex: 0 0 calc(33.333% - 14px);
        scroll-snap-align: start;
    }
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.reviewer-info {
    flex-grow: 1;
}

.reviewer-name {
    font-weight: bold;
    color: var(--dark);
    margin: 0;
    font-size: 1rem;
}

.review-date {
    font-size: 0.8rem;
    color: #70757a;
    margin: 0;
}

.review-stars svg {
    width: 16px;
    height: 16px;
    fill: #FBBC04;
}

.review-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #3c4043;
    margin: 0;
    flex-grow: 1;
}

/* Global Desktop Hero Title Colors */
.hero-title {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-title .word {
    color: #ffffff;
}

.hero-title em,
.hero-title .amber {
    color: #FEA116;
}

/* ==========================================================================
   MOBILE CRITICAL FIXES 
   ========================================================================== */
@media (max-width: 768px) {

    .hero-title {
        color: #ffffff !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8) !important;
    }

    .hero-title .word,
    .hero-title em,
    .hero-title .amber {
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8) !important;
    }

    /* Fix 2: Hero diagonal crease / background split */
    .hero-header::before {
        display: none !important;
    }

    .hero-header {
        background-color: var(--dark) !important;
    }

    /* Fix 3: Stats row overflow in About section */
    .stats-row {
        flex-direction: column !important;
        gap: 1rem !important;
        border-left: 4px solid #FEA116 !important;
        padding-left: 1.2rem !important;
    }

    .stat-box {
        gap: 0.8rem !important;
    }

    .display-5 {
        font-size: 2.2rem !important;
    }

    .stat-box h6 {
        font-size: 0.85rem !important;
        letter-spacing: 1px !important;
    }

    /* Fix 4: Newsletter button cut off in footer */
    .newsletter-input {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.6rem !important;
        max-width: 100% !important;
    }

    .newsletter-input input {
        width: 100% !important;
        padding: 0.9rem 1rem !important;
        border-radius: 4px !important;
    }

    .newsletter-input button {
        position: static !important;
        width: 100% !important;
        padding: 0.9rem !important;
        border-radius: 4px !important;
    }

    /* Fix 5: Cascade animation stuck off-screen on mobile */
    .cascade-left {
        animation: cascadeLeftMobile 0.8s ease-out forwards !important;
    }

    .cascade-top {
        animation: cascadeTopMobile 0.8s ease-out forwards !important;
    }

    .cascade-bottom {
        animation: cascadeBottomMobile 0.8s ease-out forwards !important;
    }

    .cascade-right {
        animation: cascadeRightMobile 0.8s ease-out forwards !important;
    }

    @keyframes cascadeLeftMobile {
        0% {
            opacity: 0.1;
            transform: translateX(-15px);
        }

        100% {
            opacity: 1;
            transform: translateX(0);
        }
    }

    @keyframes cascadeTopMobile {
        0% {
            opacity: 0.1;
            transform: translateY(-15px);
        }

        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes cascadeBottomMobile {
        0% {
            opacity: 0.1;
            transform: translateY(15px);
        }

        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes cascadeRightMobile {
        0% {
            opacity: 0.1;
            transform: translateX(15px);
        }

        100% {
            opacity: 1;
            transform: translateX(0);
        }
    }
}

/* Fix: Mobile horizontal overflow — targeted, not wildcard */
@media (max-width: 768px) {

    section,
    .hero-header,
    .container,
    .footer,
    footer,
    .checkout-wrapper,
    .mantra-commerce-container {
        max-width: 100vw;
        overflow-x: hidden;
    }

    .nav-pills {
        flex-wrap: wrap;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }
}