/* Global Styles */
:root {
    --deep-red: #74121d;
    --premium-gold: #c9a227;
    --charcoal-black: #1a1a1a;
    --warm-beige: #f5e9da;
    --white: #ffffff;
    --transition-speed: 0.4s;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;

    /* Dark Theme Variables */
    --dark-bg: #121212;
    --dark-card-bg: #1e1e1e;
    --dark-text-primary: #f0f0f0;
    --dark-text-secondary: #aaaaaa;
    --dark-border: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--warm-beige);
    color: #111; /* Darkened from var(--charcoal-black) for max contrast */
    font-family: var(--font-sans);
    font-weight: 500; /* Increased from default 400 */
    line-height: 1.7; /* Increased for breathing room */
    letter-spacing: 0.3px; /* Added slight tracking for clarity */
    overflow-x: hidden;
    opacity: 0;
    animation: pageFadeIn 1s ease-out forwards;
}

body.dark-theme {
    background-color: var(--dark-bg);
    color: var(--dark-text-primary);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--charcoal-black);
}

body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme h5,
body.dark-theme h6 {
    color: var(--dark-text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed) ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Animations */
@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Typography Utilities */
.text-gold {
    color: var(--premium-gold);
}

.text-red {
    color: var(--deep-red);
}

.text-charcoal {
    color: var(--charcoal-black);
}

.text-beige {
    color: var(--warm-beige);
}

.font-serif {
    font-family: var(--font-serif);
}

.font-sans {
    font-family: var(--font-sans);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    background-color: var(--deep-red);
    color: var(--warm-beige);
    font-family: var(--font-sans);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--deep-red);
    transition: all var(--transition-speed) ease;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--premium-gold);
    border-color: var(--premium-gold);
    color: var(--charcoal-black);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--charcoal-black);
    color: var(--charcoal-black);
}

.btn-outline:hover {
    background-color: var(--charcoal-black);
    color: var(--warm-beige);
}

/* Layout Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

/* Header/Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

header.scrolled,
header.header-solid {
    background-color: rgba(245, 233, 218, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

body.dark-theme header.scrolled,
body.dark-theme header.header-solid {
    background-color: rgba(18, 18, 18, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--dark-border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--deep-red);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    position: relative;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--premium-gold);
    transition: width 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
}

.nav-links li a.active {
    color: var(--deep-red);
}

.nav-logo-right {
    display: flex;
    align-items: center;
    height: 60px;
    margin-left: 20px;
}

.nav-logo-right img {
    height: 100%;
    width: auto;
    object-fit: contain;
    border-radius: 50%;
    /* Just in case user wants it circular or clean, though logo appears circular */
}

/* Footer */
footer {
    background-color: var(--charcoal-black);
    color: var(--warm-beige);
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    align-items: start;
    text-align: left;
}

.footer-section h4 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--premium-gold);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 30px;
    height: 2px;
    background-color: var(--deep-red);
}

.footer-section p,
.footer-section a {
    font-size: 0.9rem;
    color: #bbb;
    margin-bottom: 10px;
    display: block;
    line-height: 1.6;
}

.footer-section a:hover {
    color: var(--premium-gold);
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--premium-gold);
    margin-bottom: 15px;
    display: inline-block;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border: 1px solid var(--premium-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    color: var(--premium-gold);
}

.social-links a:hover {
    background-color: var(--premium-gold);
    color: var(--charcoal-black);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 60px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: #777;
}

/* Mobile Menu */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    background-color: var(--charcoal-black);
    transition: all 0.3s ease-in-out;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: var(--warm-beige);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 16px 0;
    }

    body.dark-theme .nav-links {
        background-color: var(--dark-bg);
        border-bottom: 1px solid var(--dark-border);
    }

    body.dark-theme .bar {
        background-color: var(--dark-text-primary);
    }
}

/* --- Dark Theme Menu Layout applied specifically to menu page --- */
/* Filter Bar */
.sticky-filter-wrapper {
    position: sticky;
    top: 90px;
    z-index: 999;
    padding: 10px 0;
    margin-bottom: 40px;
    width: 100%;
    /* Remove background, let items scroll behind */
    pointer-events: none;
    /* Let clicks pass through empty areas */
}

.menu-filter-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 auto;
    width: max-content;
    max-width: 95%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    pointer-events: auto;
    /* Re-enable clicks for the pill itself */
}

.menu-filter-btn {
    background: transparent;
    border: none;
    color: var(--charcoal-black);
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-family: var(--font-sans);
    font-weight: 500;
    text-transform: uppercase !important;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-filter-btn:hover {
    background: var(--warm-beige);
}

.menu-filter-btn.active {
    background: var(--deep-red);
    color: var(--white);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(116, 18, 29, 0.2);
    transform: scale(1.02);
}

/* --- Menu Layout applied specifically to menu page --- */
.menu-container {
    display: block;
    /* Remove sidebar layout for this specific design */
    padding-top: 20px;
}

.menu-sidebar {
    display: none;
    /* Hide sidebar in this design */
}

.menu-content {
    width: 100%;
}

.menu-section-header {
    text-align: center;
    margin: 60px 0 40px;
    position: relative;
}

.menu-section-header h2,
.menu-section-header h3 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--charcoal-black);
    margin-bottom: 10px;
    font-weight: 700;
}

.menu-section-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--premium-gold);
    margin: 15px auto 0;
}

body.dark-theme .menu-section-subheader {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--dark-text-primary);
    font-weight: 600;
}

body.dark-theme .menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    align-items: stretch;
    /* ensure items stretch */
}

body.dark-theme .dish-card {
    background-color: var(--dark-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(145deg, var(--dark-card-bg), #1a1a1a);
    transition: all var(--transition-speed) cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Important for same size */
}

body.dark-theme .dish-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(201, 162, 39, 0.15);
    /* subtle gold glow */
    border-color: rgba(201, 162, 39, 0.4);
}

body.dark-theme .dish-image {
    width: 100%;
    aspect-ratio: 4/3;
    height: 220px;
    background-color: #0f0f0f;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-theme .dish-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

body.dark-theme .dish-card:hover .dish-image img {
    transform: scale(1.1);
}

body.dark-theme .dish-details {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

body.dark-theme .dish-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

body.dark-theme .dish-header h3 {
    font-size: 1.15rem;
    margin-bottom: 4px;
    color: var(--white);
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

body.dark-theme .dish-details p {
    font-size: 0.95rem;
    color: var(--dark-text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

body.dark-theme .dish-price {
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--premium-gold);
    font-size: 1.1rem;
    display: block;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Premium Dish Card UI Upgrade added below */
.dish-card {
    background-color: var(--white);
    border: none !important;
    border-radius: 12px !important;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    display: flex;
    flex-direction: column;
    position: relative;
}

.dish-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: border-color 0.4s ease;
    pointer-events: none;
    z-index: 10;
}

.dish-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.dish-card:hover::before {
    border-color: var(--premium-gold);
}

.dish-image {
    height: 240px !important;
    overflow: hidden;
    position: relative;
}

.dish-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease !important;
}

.dish-card:hover .dish-image img {
    transform: scale(1.1) !important;
}

.dish-details {
    padding: 25px 20px !important;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(250, 250, 250, 1) 100%);
}

body.dark-theme .dish-details {
    background: linear-gradient(145deg, var(--dark-card-bg), #1a1a1a);
}

.dish-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 12px !important;
    width: 100%;
}

.dish-header h3 {
    display: block !important;
    font-size: 1.3rem;
    color: var(--charcoal-black);
    margin-bottom: 5px;
    font-family: var(--font-serif);
}

.dish-price {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--deep-red);
    font-size: 1.2rem !important;
    padding: 4px 12px;
    background-color: rgba(144, 30, 30, 0.05);
    border-radius: 20px;
    margin-top: 5px;
    text-align: center;
    justify-self: center;
    align-self: center;
}

.dish-details p {
    font-size: 0.95rem !important;
    color: #555 !important;
    margin-bottom: 15px;
    line-height: 1.6;
    flex: 1;
    font-weight: 300;
}





.dish-header {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.dish-header h3 {
    text-align: center !important;
    justify-self: center !important;
}

.dish-price {
    align-self: center !important;
}

/* Advanced Menu Hero styling */
.menu-hero {
    position: relative;
    overflow: hidden;
}

.menu-hero::before {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--warm-beige);
    transform: skewY(-2deg);
    z-index: 10;
}

/* Advanced Section Header */
.advanced-section-header {
    text-align: center;
    margin: 40px auto 60px;
    position: relative;
    padding-bottom: 20px;
}

.advanced-section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--premium-gold);
}

/* Advanced Contact UI Styles */
.contact-info-advanced {
    flex: 1;
    min-width: 350px;
    background: var(--white);
    padding: 50px;
    border: 1px solid #eaeaea;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.contact-info-advanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, var(--deep-red), var(--premium-gold));
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-header h2 {
    font-size: 2.2rem;
    color: var(--charcoal-black);
    font-family: var(--font-serif);
    margin-bottom: 15px;
}

.contact-header p {
    color: #666;
    font-size: 1.05rem;
    max-width: 400px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.contact-card {
    background: #fdfdfd;
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-color: var(--premium-gold);
}

.contact-card .icon-wrapper {
    width: 50px;
    height: 50px;
    background-color: rgba(201, 162, 39, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: var(--premium-gold);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.contact-card:hover .icon-wrapper {
    background-color: var(--premium-gold);
    color: var(--white);
    transform: scale(1.1);
}

.contact-card h3 {
    font-size: 1.1rem;
    color: var(--charcoal-black);
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.social-contact {
    text-align: center;
    margin-bottom: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.social-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--charcoal-black);
}

.social-icons a.social-circle {
    display: inline-flex;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: var(--charcoal-black);
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin: 0 8px;
    transition: all 0.3s ease;
    border: none;
}

.social-icons a.social-circle:hover {
    background-color: var(--deep-red);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(116, 18, 29, 0.3);
}

.btn-whatsapp {
    width: 100%;
    text-align: center;
    background-color: #25D366;
    border-color: #25D366;
    color: white;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    border-color: #128C7E;
    color: white;
}

@media (max-width: 600px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ================= MOBILE FIX (FINAL) ================= */
@media (max-width: 768px) {

    /* FORCE OVERRIDE */
    * {
        box-sizing: border-box;
    }

    body {
        overflow-x: hidden;
    }

    /* HERO FIX (VERY IMPORTANT) */
    .hero,
    .about-hero,
    .ramen-intro {
        height: auto !important;
        min-height: auto !important;
        padding: 120px 20px 60px !important;
        background-attachment: scroll !important;
    }

    /* TEXT FIX */
    .hero-content h1,
    .about-hero h1 {
        font-size: 2.2rem !important;
    }

    /* SECTION SPACING */
    section {
        padding: 60px 0 !important;
    }

    /* FLEX FIX (MOST IMPORTANT) */
    .signature-ramen,
    .contact-container,
    .menu-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    /* CONTACT FIX */
    .contact-info,
    .contact-map {
        width: 100% !important;
        min-width: 100% !important;
    }

    .contact-map {
        height: 300px !important;
    }

    /* MENU FIX */
    .menu-sidebar {
        width: 100% !important;
        position: static !important;
        border: none !important;
        padding: 0 !important;
    }

    /* NAV FIX */
    .nav-links {
        width: 100%;
    }

    .nav-logo-right {
        display: none !important;
    }

    /* IMAGE FIX */
    img {
        width: 100%;
        height: auto;
    }
}