:root {
    /* Color Palette */
    --charcoal-grey: #2d2d2d;
    --charcoal-light: #424242;
    --warm-oak: #8b5a2b;
    --warm-oak-light: #a87340;
    --cream: #f5f5f0;
    --white: #ffffff;

    /* Typography */
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;

    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--cream);
    color: var(--charcoal-grey);
    line-height: 1.6;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 130px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    background: rgba(245, 245, 240, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(45, 45, 45, 0.05);
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    height: 90px;
    background: rgba(245, 245, 240, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.logo {
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 120px;
    width: auto;
    transition: var(--transition-smooth);
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1));
}

.navbar.scrolled .nav-logo-img {
    height: 80px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--charcoal-grey);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
    transition: var(--transition-smooth);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--warm-oak);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--warm-oak);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background-color: var(--charcoal-grey);
    border-radius: 10px;
    transition: var(--transition-smooth);
    transform-origin: left;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(rgba(45, 45, 45, 0.6), rgba(45, 45, 45, 0.6)), url('assets/images/hero-bg.png') center/cover no-repeat;
    background-attachment: fixed;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    color: var(--cream);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards 0.5s;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--warm-oak);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: var(--transition-smooth);
    border: 1px solid var(--warm-oak);
}

.cta-btn:hover {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

/* Menu Section */
.menu-section {
    padding: 8rem 5%;
    background-color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--charcoal-grey);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--warm-oak);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.menu-container {
    max-width: 1400px;
    margin: 0 auto;
    display: block;
}

.menu-category h3 {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--charcoal-grey);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(45, 45, 45, 0.1);
}

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

.menu-item {
    display: flex;
    gap: 1.2rem;
    padding: 1.2rem;
    background: var(--cream);
    border-radius: 12px;
    transition: var(--transition-smooth);
    border: 1px solid rgba(45, 45, 45, 0.05);
    align-items: flex-start;
}

.menu-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.menu-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.menu-item-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    height: 100%;
}

.menu-item-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--charcoal-grey);
}

.menu-item-content p {
    font-size: 0.9rem;
    color: var(--charcoal-light);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.menu-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.price {
    font-weight: 700;
    color: var(--charcoal-grey);
    font-size: 1.1rem;
}

.buy-btn {
    text-decoration: none;
    color: var(--charcoal-grey);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.buy-btn:hover {
    color: var(--warm-oak);
}

/* About Section */
.about-section {
    padding: 8rem 5%;
    background-color: var(--charcoal-grey);
    color: var(--cream);
}

.about-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-text h2 {
    font-family: var(--font-serif);
    font-size: 3rem;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.about-quote {
    margin-top: 2rem;
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--warm-oak);
    font-style: italic;
}

.fingerprint-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: rotate(2deg);
    transition: transform 0.3s;
}

.fingerprint-img:hover {
    transform: rotate(0deg);
}

.about-text h2 span {
    color: var(--warm-oak);
    font-style: italic;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

.about-image-placeholder {
    height: 500px;
    background-color: var(--charcoal-light);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image-placeholder::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    bottom: -20px;
    left: -20px;
    background: repeating-linear-gradient(45deg,
            rgba(139, 90, 43, 0.1),
            rgba(139, 90, 43, 0.1) 10px,
            transparent 10px,
            transparent 20px);
}

.abstract-shape {
    width: 200px;
    height: 200px;
    background-color: var(--warm-oak);
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

/* Footer */
footer {
    padding: 3rem 5%;
    background-color: #1a1a1a;
    color: rgba(245, 245, 240, 0.6);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--cream);
    font-weight: 700;
}

.socials {
    display: flex;
    gap: 1.5rem;
}

.socials a {
    color: var(--cream);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
}

.socials a:hover {
    color: var(--warm-oak);
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, -20px);
    }

    100% {
        transform: translate(0, 0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1200px) {
    .menu-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 992px) {
    .menu-container,
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .about-grid {
        gap: 4rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 90px;
        padding: 0 5%;
    }

    .navbar.scrolled {
        height: 70px;
    }

    .nav-logo-img {
        height: 70px;
    }

    .navbar.scrolled .nav-logo-img {
        height: 50px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--cream);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3rem;
        transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .about-text h2 {
        font-size: 2.2rem;
    }

    .footer-logo-img {
        height: 120px !important; /* Fix for the massive footer logo */
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .menu-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .menu-item-img {
        width: 100%;
        height: 200px;
    }

    .modal-content {
        padding: 1.5rem;
        width: 95%;
    }

    .order-type-selection {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .cta-btn {
        padding: 0.8rem 2rem;
        width: 100%;
    }
}

/* ------------------------------------- */
/* TIER 1: CATEGORY SELECTION */
/* ------------------------------------- */
.category-selection {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .category-selection {
        flex-direction: row;
        max-width: 1200px;
    }
}

.category-card {
    flex: 1;
    height: 300px;
    border-radius: 20px;
    border: none;
    background-size: cover;
    background-position: center;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.category-card h3 {
    color: var(--white);
    font-size: 2.5rem;
    font-family: var(--font-serif);
    z-index: 2;
    position: relative;
    letter-spacing: 1px;
}

/* ------------------------------------- */
/* TIER 2: ITEMS VIEW */
/* ------------------------------------- */
.items-view {
    animation: fadeUp 0.5s ease;
}

.hidden {
    display: none !important;
}

.items-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
}

.back-btn {
    background: none;
    border: none;
    color: var(--charcoal-light);
    font-size: 1rem;
    cursor: pointer;
    font-family: var(--font-sans);
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.back-btn:hover {
    color: var(--warm-oak);
}

.category-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--charcoal-grey);
}

/* Menu Item Updates */
.order-btn {
    background-color: var(--charcoal-grey);
    color: var(--white);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.order-btn:hover {
    background-color: var(--warm-oak);
}

/* ------------------------------------- */
/* TIER 3: MODAL */
/* ------------------------------------- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    width: 90%;
    max-width: 500px;
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    animation: fadeUp 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--charcoal-light);
}

.modal-content h2 {
    font-family: var(--font-serif);
    margin-bottom: 1.5rem;
    color: var(--charcoal-grey);
}

.order-type-selection {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.type-btn {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid var(--charcoal-grey);
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--charcoal-grey);
    transition: all 0.3s;
}

.type-btn.active,
.type-btn:hover {
    background: var(--charcoal-grey);
    color: var(--white);
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--charcoal-grey);
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: var(--font-sans);
}

.confirm-order-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--warm-oak);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 1rem;
}

.confirm-order-btn:hover {
    background-color: var(--warm-oak-light);
}

/* ------------------------------------- */
/* PAYMENT STEP STYLES */
/* ------------------------------------- */
.payment-title {
    font-family: var(--font-serif);
    color: var(--charcoal-grey);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

#payment-amount {
    color: var(--warm-oak);
    font-weight: 700;
}

.payment-methods {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pay-method-btn {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid var(--charcoal-grey);
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--charcoal-grey);
    transition: all 0.3s;
}

.pay-method-btn.active,
.pay-method-btn:hover {
    background: var(--charcoal-grey);
    color: var(--white);
}

.back-link-btn {
    width: 100%;
    background: none;
    border: none;
    color: var(--charcoal-light);
    font-family: var(--font-sans);
    font-weight: 600;
    margin-top: 1rem;
    cursor: pointer;
    text-align: center;
    transition: color 0.3s;
}

.back-link-btn:hover {
    color: var(--warm-oak);
}

.payment-loading,
.payment-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
    text-align: center;
}

.payment-success h3 {
    font-family: var(--font-serif);
    color: var(--charcoal-grey);
    margin: 1rem 0 0.5rem;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: var(--warm-oak);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(45, 45, 45, 0.1);
    border-top-color: var(--warm-oak);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Payment Verification Styles */
.qr-placeholder {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 1.5rem;
    border: 2px dashed #eee;
}

.qr-box {
    width: 150px;
    height: 150px;
    background: white;
    margin: 0 auto 1rem;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.qr-graphic {
    width: 80%;
    height: 80%;
    background-image: linear-gradient(45deg, #333 25%, transparent 25%),
        linear-gradient(-45deg, #333 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #333 75%),
        linear-gradient(-45deg, transparent 75%, #333 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    opacity: 0.1;
}

.qr-box span {
    position: absolute;
    font-size: 0.8rem;
    color: #888;
    font-weight: 600;
}

.verification-group {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.verification-group label {
    color: var(--warm-oak);
    font-weight: 700;
}

.verification-group small {
    display: block;
    margin-top: 0.5rem;
    color: #666;
    font-style: italic;
}

/* Admin Dashboard Styles */
.dashboard-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--cream);
    z-index: 3000;
    overflow-y: auto;
    padding: 2rem 5%;
    animation: fadeIn 0.3s ease;
}

.dashboard-inner {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--cream);
}

.dashboard-header h2 {
    font-family: var(--font-serif);
    color: var(--charcoal-grey);
}

.orders-table-wrapper {
    overflow-x: auto;
}

#orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

#orders-table th {
    text-align: left;
    padding: 1rem;
    background: var(--charcoal-grey);
    color: var(--white);
    font-weight: 600;
}

#orders-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

#orders-table tr:hover {
    background: #f9f9f9;
}

.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Footer Styles */
footer {
    background: var(--charcoal-grey);
    color: var(--cream);
    padding: 4rem 5%;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo-img {
    height: 180px; /* Reduced from 320px */
    width: auto;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1); /* Makes the logo white for dark footer */
}

.footer-content p {
    opacity: 0.6;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.socials a {
    color: var(--cream);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.socials a:hover {
    opacity: 1;
}