/* ========================================= */
/*  THE GRAND - FINE DINING PREMIUM THEME  */
/* ========================================= */

:root {
    --primary-color: #8B5E3C;
    /* Elegant Brown */
    --primary-dark: #5D3A1F;
    --accent-color: #D4AF37;
    /* Gold */
    --text-dark: #1A1A1A;
    --text-gray: #666666;
    --bg-cream: #FCFBF9;
    --bg-white: #FFFFFF;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 40px rgba(139, 94, 60, 0.15);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* ======================== */
/* RESET & TYPOGRAPHY       */
/* ======================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-cream);
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ======================== */
/* UTILITIES                */
/* ======================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    font-weight: 300;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards ease-out;
}

.fade-in.delay-1 {
    animation-delay: 0.2s;
}

.fade-in.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ======================== */
/* PREMIUM DESIGN SYSTEM    */
/* ======================== */
.section-header-premium {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.top-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.title-main {
    font-size: 2.8rem;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 15px;
}

.subtitle-sub {
    font-size: 1.1rem;
    color: var(--text-gray);
    font-weight: 300;
    line-height: 1.6;
}

.accent-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    margin: 25px auto 0;
    border-radius: 10px;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    position: relative;
}

.mouse::after {
    content: '';
    width: 4px;
    height: 8px;
    background: #fff;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scrollMouse 2s infinite;
}

@keyframes scrollMouse {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

.hero-scroll-indicator span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.vibrant-separator {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(139, 94, 60, 0.1), transparent);
    width: 80%;
    margin: 0 auto;
}

/* ======================== */
/* NAVBAR                   */
/* ======================== */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo span {
    color: var(--primary-color);
    font-style: italic;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav a:hover,
.nav a.active {
    color: var(--primary-color);
}

.nav a:hover::after {
    width: 100%;
}

.btn-book {
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid var(--primary-color);
}

.btn-book:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: var(--transition);
}

/* Scroll Reveal Global */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================= */
/* ANIMATED HERO SECTION (Absolute Fix)      */
/* ========================================= */
.hero-animated {
    padding: 100px 0;
    min-height: 85vh;
    background-color: #fff;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-animated-flex {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-animated-text {
    flex: 1;
    text-align: left;
    z-index: 10;
}

.hero-animated-label {
    display: block;
    color: #8B5E3C;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.hero-animated-title {
    font-family: 'Playfair Display', serif;
    font-size: 4.2rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: #1A1A1A;
}

.hero-animated-title span {
    color: #8B5E3C;
}

.hero-animated-text p {
    font-size: 1.15rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 520px;
}

.hero-animated-action {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-hero-brown {
    background-color: #8B5E3C;
    color: #fff !important;
    padding: 20px 45px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-hero-outline {
    background-color: transparent;
    color: #8B5E3C !important;
    padding: 18px 43px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid #8B5E3C;
    text-decoration: none;
}

.btn-hero-brown:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(139, 94, 60, 0.3);
}

.btn-hero-outline:hover {
    background-color: #8B5E3C;
    color: #fff !important;
    transform: translateY(-5px);
}

/* Visual Container */
.hero-animated-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-plate-container {
    position: relative;
    z-index: 5;
    width: 600px;
    /* Force size */
    max-width: 100%;
}

.hero-plate-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.18));
    animation: rotatePlate 80s infinite linear;
}

@keyframes rotatePlate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.hero-plate-reflection {
    position: absolute;
    bottom: 50px;
    width: 60%;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.05) 0%, transparent 75%);
    border-radius: 50%;
}

.floating-item {
    position: absolute;
    font-size: 2.8rem;
    z-index: 10;
    pointer-events: none;
    animation: floatCinematic 6s infinite ease-in-out;
}

.item-1 {
    top: 10%;
    left: 0%;
    animation-delay: 0s;
}

.item-2 {
    top: 20%;
    right: 0%;
    animation-delay: 2s;
}

.item-3 {
    bottom: 20%;
    right: 10%;
    animation-delay: 4s;
}

.item-4 {
    bottom: 10%;
    left: 10%;
    animation-delay: 1s;
}

@keyframes floatCinematic {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, -30px);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-animated-flex {
        flex-direction: column;
        text-align: center;
        gap: 60px;
    }

    .hero-animated-text p {
        margin: 0 auto 40px;
    }

    .hero-animated-action {
        justify-content: center;
    }
}

/* ======================== */
/* CATEGORIES               */
/* ======================== */
.categories {
    padding: 6rem 0;
    background-color: var(--bg-cream);
}

.categories-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.category-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.category-card {
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background-color: var(--bg-white);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    /* Reveal is handled by parent section or can be added here */
}

.reveal.active .category-card:nth-child(1) {
    transition-delay: 0.1s;
}

.reveal.active .category-card:nth-child(2) {
    transition-delay: 0.2s;
}

.reveal.active .category-card:nth-child(3) {
    transition-delay: 0.3s;
}

.reveal.active .category-card:nth-child(4) {
    transition-delay: 0.4s;
}

.reveal.active .category-card:nth-child(5) {
    transition-delay: 0.5s;
}

.category-card.active {
    opacity: 1;
    transform: translateY(0);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.category-card:hover .category-circle {
    transform: scale(1.05);
    border-color: var(--accent-color);
}

.category-circle {
    width: 120px;
    height: 120px;
    background-color: #f8f8f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: var(--transition);
    border: 3px solid #e8e8e8;
    overflow: hidden;
}

.category-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-card p {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-top: 0.5rem;
}


/* ======================== */
/* SPECIAL DISHES           */
/* ======================== */
.special-dishes {
    padding: 6rem 0;
    background-color: #fff;
}

.dishes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.dish-card {
    background-color: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
}

.dish-card.active {
    opacity: 1;
    transform: translateY(0);
}

.dish-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.dish-image {
    height: 220px;
    overflow: hidden;
    background-color: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dish-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.dish-card:hover .dish-image img {
    transform: scale(1.1);
}

.dish-info {
    padding: 1.5rem;
    text-align: center;
}

.dish-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.dish-desc {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    min-height: 42px;
    /* 2 lines approximately */
}

.price {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
    position: relative;
}


/* ======================== */
/* EVENT BOOKING            */
/* ======================== */
.event-booking {
    padding: 6rem 0;
    background-color: var(--bg-cream);
}

.event-banner {
    background-color: var(--primary-dark);
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-hover);
    color: #fff;
    flex-wrap: wrap;
}

.event-banner img {
    width: 50%;
    height: 400px;
    object-fit: cover;
}

.event-content {
    width: 50%;
    padding: 3rem;
    text-align: left;
}

.event-title {
    color: var(--accent-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: left;
}

.event-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.event-tags {
    margin-bottom: 2rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--accent-color);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-event {
    background-color: var(--primary-color);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
    transition: 0.3s;
}

.btn-event:hover {
    background-color: var(--primary-dark);
    color: #fff;
}


/* ======================== */
/* FOOTER                   */
/* ======================== */
.footer {
    background-color: #1a1a1a;
    color: #e0e0e0;
    padding: 4rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 3rem;
}

.footer-brand .logo {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.footer-brand .logo span {
    color: var(--accent-color);
}

.footer-brand p {
    color: #aaa;
    max-width: 300px;
    font-size: 0.95rem;
}

.footer h4 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: #aaa;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer p {
    color: #aaa;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.footer-bottom {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}


/* ======================== */
/* RESPONSIVE DESIGN        */
/* ======================== */

/* Tablet & Mobile */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }

    .event-banner img {
        width: 100%;
        height: 250px;
    }

    .event-content {
        width: 100%;
        text-align: center;
        padding: 2rem;
    }

    .event-title {
        text-align: center;
    }

    .event-tags {
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 0 5%;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
    }

    .mobile-menu-btn.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .mobile-menu-btn.open span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background-color: #fff;
        flex-direction: column;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav.active {
        transform: translateX(0);
    }

    .nav a {
        font-size: 1.2rem;
    }

    .desktop-only-btn {
        display: none;
    }

    .mobile-only-btn {
        display: inline-block !important;
        background-color: var(--primary-color);
        color: #fff !important;
        padding: 10px 20px;
        border-radius: 5px;
        margin-top: 10px;
    }

    .hero {
        text-align: center;
        justify-content: center;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .categories-grid {
        gap: 1rem;
    }

    .category-card {
        padding: 1rem;
    }

    .category-circle {
        width: 90px;
        height: 90px;
        margin-bottom: 0.8rem;
    }

    .category-card p {
        font-size: 0.95rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links a:hover {
        padding-left: 0;
    }

    .footer-brand p {
        margin: 0 auto 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ======================== */
/* RESERVE TABLE TYPES      */
/* ======================== */
.reserve-tables {
    padding: 6rem 0;
    background-color: #fff;
}

.tables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.table-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
}

.table-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.table-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.table-card:hover img {
    transform: scale(1.05);
}

.table-info {
    padding: 1.5rem;
    text-align: center;
}

.table-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--primary-dark);
}

.table-info p {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.btn-book-sm {
    display: inline-block;
    padding: 10px 25px;
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-book-sm:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: 20px;
}

.auth-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: color 0.3s ease;
    padding: 5px;
}

.auth-icon:hover {
    color: #8b5e3c;
}

.nav-btn-link {
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

/* Ensure mobile links are hidden on desktop and vice-versa */
@media (min-width: 901px) {
    .mobile-only-btn {
        display: none !important;
    }
}

@media (max-width: 900px) {
    .desktop-only-btn {
        display: none !important;
    }

    .mobile-auth-links {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #eee;
        width: 100%;
        text-align: center;
    }

    /* Grid adjust for standard mobile */
    .dishes-grid-premium,
    .tables-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
        gap: 20px !important;
    }
}

@media (max-width: 600px) {
    .container {
        width: 92%;
    }

    .section-title {
        font-size: 1.8rem !important;
    }

    .premium-dish-info {
        padding: 20px !important;
    }

    .reserve-tables {
        padding: 60px 0 !important;
    }

    .dish-actions-premium {
        flex-direction: column;
        gap: 10px;
    }

    .btn-add-cart-premium,
    .btn-buy-now-premium {
        width: 100%;
        justify-content: center;
    }
}