/* ==============================================
   Core Styles & Typography
============================================== */
@font-face {
    font-family: 'League Script';
    src: url('fonts/LeagueScript-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Georgia', serif;
    margin: 0;
    padding: 0;
    background: #f4decb; /* Warm tan */
    color: #333;
}

/* Title styling - only "Cassan's" uses cursive */
.title-cassans {
    font-family: 'League Script', cursive;
    font-size: 4.5rem;
    margin: 0;
}

.title-rest {
    font-size: 2.5rem;
    margin: 0;
    font-weight: bold;
}

/* Responsive title adjustments */
@media (max-width: 768px) {
    .title-cassans { font-size: 3.5rem; }
    .title-rest    { font-size: 2rem; }
}

/* ==============================================
   Layout & Structural Elements
============================================== */
header {
    background: #6b2d8a;
    color: #f8eee7;
    text-align: center;
    padding: 2rem 1rem;
    border-bottom: 4px solid #000;
}

section {
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 2rem 1rem;
    background: rgba(248, 238, 231, 0.7);
    border-radius: 12px;
    border: 3px solid #000;
}

.hero {
    background: linear-gradient(to bottom, #94618e, #6b2d8a);
    color: #f8eee7;
    border: 4px solid #000;
    border-radius: 12px;
}

footer {
    background: #4a1c5c;
    color: #f4decb;
    padding: 1rem;
    border-top: 4px solid #000;
}

/* ==============================================
   Menu & Dish Cards
============================================== */
.menu-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.menu-tab {
    background: #94618e;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    border: 3px solid #000;
    transition: background 0.3s, transform 0.2s;
}

.menu-tab:hover {
    background: #6b2d8a;
    transform: scale(1.05);
}

.menu-tab.active {
    background: #4a1c5c;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    border: 4px solid #000;
}

.menu-panel {
    display: none;
}

.menu-panel.active {
    display: block;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.dish {
    background: #f8eee7;
    padding: 2rem 1.5rem;
    border-radius: 8px;
    box-shadow: 5px 5px 15px rgba(75, 28, 92, 0.3);
    transform: rotate(-3deg);
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
    border: 4px solid #000;
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dish .price {
    font-size: 1.6rem;
    color: #6b2d8a;
    margin-top: 0.5rem;
}

/* Optional: decorative tape effect (currently empty - add content if needed) */
.dish::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 24px;
    background: #94618e;
    border: 2px solid #000;
    border-radius: 12px;
}

/* ==============================================
   Gallery & Testimonials
============================================== */
.gallery,
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.gallery img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 3px solid #000;
    box-shadow: 0 4px 15px rgba(75, 28, 92, 0.2);
}

.testimonial {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(75, 28, 92, 0.2);
    background: #f8eee7;
    padding: 1.5rem;
    border: 3px solid #000;
}

/* ==============================================
   Mobile Improvements
============================================== */
@media (max-width: 768px) {
    .menu-tabs {
        flex-direction: column;
        align-items: center;
    }

    .menu-tab {
        width: 80%;
        text-align: center;
    }
}

/* ==============================================
   Door Animation (only if still used)
   Comment out / remove if doors are disabled
============================================== */
.door-half {
    transition: transform 2s ease-in-out;
    transform-origin: center;
}

.open-left  { transform: rotateY(-110deg); }
.open-right { transform: rotateY(110deg); }

#enter-button {
    position: absolute;
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(107, 45, 138, 0.9);
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    border: 4px solid #000;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    opacity: 0;
    transition: opacity 1s;
    pointer-events: none;
}

#enter-button.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Optional door background classes (only if still using background images on doors) */
.left-door  { background-image: url('<?php echo $door_bg; ?>'); background-position: left;  }
.right-door { background-image: url('<?php echo $door_bg; ?>'); background-position: right; }

/* ─────────────────────────────────────────────
   BEST PRACTICES & ANIMATIONS - Recommended additions
───────────────────────────────────────────── */

/* Reset & base improvements */
*,
*::before,
*::after {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Smooth scroll + reduced motion respect */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==============================================
   MENU SECTION ENHANCEMENTS
============================================== */

.menu-section {
    padding: 2.5rem 1rem;
}

.menu-notice,
.catering-notice {
    text-align: center;
    font-style: italic;
    color: #555;
    margin: 1rem auto;
    max-width: 700px;
    line-height: 1.5;
}

.menu-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem 1.2rem;
    margin: 1.8rem 0 2.5rem;
}

.menu-tab {
    --tab-bg: #94618e;
    --tab-hover: #6b2d8a;
    --tab-active: #4a1c5c;

    background: var(--tab-bg);
    color: white;
    padding: 0.9rem 1.8rem;
    border-radius: 9999px;
    border: 3px solid #000;
    font-weight: bold;
    cursor: pointer;
    transition:
        all 0.25s ease,
        transform 0.18s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.menu-tab:hover {
    background: var(--tab-hover);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 16px rgba(0,0,0,0.22);
}

.menu-tab.active {
    background: var(--tab-active);
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    border-width: 4px;
}

/* Menu items entrance animation */
.menu-panel {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.menu-panel.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered dish card appearance */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.2rem;
}

.dish {
    opacity: 0;
    transform: translateY(30px) rotate(-4deg);
    transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition-delay: calc(var(--order) * 80ms);
}

.menu-panel.active .dish {
    opacity: 1;
    transform: translateY(0) rotate(-3deg);
}

/* Better dish internal layout */
.dish {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
}

.dish-name {
    font-size: 1.35rem;
    line-height: 1.3;
}

.price {
    font-size: 1.65rem;
    font-weight: bold;
    color: #6b2d8a;
    background: rgba(107, 45, 138, 0.08);
    padding: 0.35rem 0.9rem;
    border-radius: 12px;
}

/* Mobile tab stacking */
@media (max-width: 768px) {
    .menu-tabs {
        flex-direction: column;
        gap: 0.8rem;
    }

    .menu-tab {
        width: 85%;
        padding: 1rem 1.5rem;
    }
}
