:root {
    /* Color Palette - Tokyo Modern */
    --bg-color: #ffffff;
    --text-color: #111111;
    --primary-color: #000000;
    --secondary-color: #1A1A40;
    /* Indigo */
    --accent-color: #E10600;
    /* Vermilion Red */
    --highlight-color: #F4F4F4;
    /* Light Grey */
    --card-bg: #ffffff;
    --section-bg: #FAFAFA;

    /* Layout */
    --max-width: 1200px;
    --border-thickness: 3px;
    --shadow-offset: 6px;
    --border-radius: 4px;
    /* Sharper corners */
    --focus-outline: 4px solid var(--accent-color);
}

/* Base Reset & Typography */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
}

/* Headings */
h1,
h2,
h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    /* Extra bold */
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-transform: uppercase;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    margin-top: 2rem;
    border-bottom: var(--border-thickness) solid #000;
    display: inline-block;
}

h3 {
    font-size: 1.5rem;
}

/* Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 100;
    text-decoration: none;
    font-weight: bold;
    border: var(--border-thickness) solid transparent;
}

.skip-link:focus {
    top: 0;
    outline: var(--focus-outline);
    outline-color: var(--highlight-color);
}

/* Focus States */
:focus-visible {
    outline: var(--focus-outline);
    outline-offset: 4px;
    border-radius: 2px;
}

/* Header & Nav */
header {
    background-color: var(--bg-color);
    border-bottom: var(--border-thickness) solid var(--primary-color);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    padding: 0;
    margin: 0;
    align-items: center;
}

.nav-list a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.5rem;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.nav-list a:hover {
    background-color: var(--accent-color);
    color: white;
    border: 2px solid var(--primary-color);
    box-shadow: 3px 3px 0 0 #000;
    transform: translate(-1px, -1px);
}

.menu-toggle {
    display: none;
    /* Mobile only */
}

/* Cart Button */
/* Cart Button (Order Online) */
.cart-btn {
    background-color: var(--accent-color);
    color: white;
    border: 3px solid #000;
    padding: 0.75rem 1.5rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 4px 4px 0 0 #000;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    letter-spacing: 0.05em;
    display: inline-block;
    text-align: center;
}

.cart-btn:hover {
    background-color: #ff2a2a;
    /* Lighter red for hover */
    color: white;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 0 #000;
    border-color: #000;
}

.cart-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 0 #000;
}

/* Hero Section */
.hero {
    background-color: white;
    background-image: radial-gradient(var(--accent-color) 1px, transparent 1px);
    background-size: 20px 20px;
    padding: 4rem 0;
    border-bottom: var(--border-thickness) solid var(--primary-color);
    text-align: center;
}

.hero h2 {
    font-size: 3.5rem;
    border: none;
    margin: 0;
}

.hero p {
    font-size: 1.5rem;
    font-weight: 500;
}

/* Menu Sections */
.menu-section {
    padding: 4rem 0;
}

.menu-section:nth-child(even) {
    background-color: var(--section-bg);
}

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

/* Menu Cards (Buttons) */
.menu-item {
    display: flex;
    /* Fixes wrapper issue */
}

.menu-item-trigger {
    background: var(--card-bg);
    border: var(--border-thickness) solid var(--primary-color);
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: left;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 0 #000;
    /* Card Hard Shadow */
    transition: all 0.2s ease;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.menu-item-trigger:hover {
    transform: translate(-3px, -3px);
    box-shadow: calc(var(--shadow-offset) + 3px) calc(var(--shadow-offset) + 3px) 0 0 #000;
}

.menu-item-trigger:focus-visible {
    outline: var(--focus-outline);
    outline-offset: 6px;
    z-index: 5;
}

.menu-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: var(--border-thickness) solid var(--primary-color);
}

.menu-item-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.menu-item h3 {
    margin-top: 0;
}

.description {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-top: auto;
    background: var(--accent-color);
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border: 2px solid #000;
    box-shadow: 3px 3px 0 0 #000;
    align-self: flex-start;
}

.dietary-tags {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.85rem;
    font-weight: bold;
    padding: 0.25rem 0.5rem;
    border: 2px solid #000;
    background-color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag.veg {
    background-color: #d4edda;
}

.tag.gf {
    background-color: #fff3cd;
}

/* Modal */
dialog {
    border: var(--border-thickness) solid #000;
    border-radius: var(--border-radius);
    box-shadow: 10px 10px 0 0 #000;
    /* Huge hard shadow */
    padding: 0;
    max-width: 550px;
    width: 90%;
    background: var(--card-bg);
}

dialog::backdrop {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
}

.modal-content {
    padding: 2rem;
    position: relative;
}

.close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #fff;
    border: 2px solid #000;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 3px 3px 0 0 #000;
    transition: all 0.2s;
}

.close-button:hover {
    background: var(--accent-color);
    color: white;
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 0 #000;
}

#modal-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border: 2px solid #000;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    box-shadow: 4px 4px 0 0 rgba(0, 0, 0, 0.1);
}

/* Modal Form Controls */
.cart-form {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px dashed #000;
}

.qty-controls button {
    background: white;
    border: 2px solid #000;
    font-weight: bold;
    box-shadow: 2px 2px 0 0 #000;
    transition: transform 0.1s;
}

.qty-controls button:active {
    transform: translate(2px, 2px);
    box-shadow: none;
}

.qty-controls input {
    border: 2px solid #000;
    font-family: 'Inter', sans-serif;
    font-weight: bold;
}

.add-btn {
    margin-top: 1rem;
    width: 100%;
    background-color: var(--accent-color);
    color: white;
    border: 3px solid #000;
    padding: 1rem;
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: var(--border-radius);
    cursor: pointer;
    box-shadow: 5px 5px 0 0 #000;
    transition: all 0.2s;
    font-family: 'Outfit', sans-serif;
}

.add-btn:hover {
    background-color: #ff333a;
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 0 #000;
}

.add-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 3px 3px 0 0 #000;
}

/* Footer */
footer {
    background-color: #000;
    color: white;
    padding: 3rem 0;
    margin-top: 4rem;
}

footer a {
    color: var(--highlight-color);
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        outline: none;
        box-shadow: none;
        padding: 0.5rem;
        cursor: pointer;
    }

    .hamburger {
        display: block;
        width: 25px;
        height: 3px;
        background: #000;
        position: relative;
    }

    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        left: 0;
        width: 100%;
        height: 3px;
        background: #000;
    }

    .hamburger::before {
        top: -8px;
    }

    .hamburger::after {
        top: 8px;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-bottom: 3px solid #000;
        padding: 1rem;
    }

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

/* Filter Controls */
.filter-controls {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.filter-status-text {
    text-align: center;
    width: 100%;
    margin-top: 1rem;
    font-family: 'Outfit', sans-serif;
    font-weight: bold;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.filter-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    border-bottom: 2px solid transparent;
}

.filter-btn:hover {
    color: var(--primary-color);
}

.filter-btn:active {
    transform: none;
    box-shadow: none;
}

.filter-btn.active {
    background: none;
    color: var(--primary-color);
    box-shadow: none;
    transform: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.filter-btn.active::before {
    content: "✓";
    font-weight: bold;
}

.filter-btn:focus-visible {
    outline: var(--focus-outline);
    outline-offset: 4px;
}

/* Hide items (utility for JS) */
.hidden {
    display: none !important;
}

/* Animations */
.menu-item {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

@media (max-width: 768px) {
    .filter-controls {
        gap: 1rem;
    }

    .filter-btn {
        flex: 1 1 auto;
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
}

/* Language Divider */
.lang-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem 1rem;
    margin: 3rem 0;
    background-color: var(--secondary-color);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-top: 4px solid #000;
    border-bottom: 4px solid #000;
    text-align: center;
}

/* Lang Switch Link */
.lang-toggle-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 400;
    color: #888;
    padding: 0.5rem;
    /* Increased padding */
    min-height: 44px;
    /* Accessible target */
    min-width: 44px;
    /* Accessible target */
    font-size: 1rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-btn:hover {
    color: var(--primary-color);
}

.lang-btn.active {
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.separator {
    color: #ccc;
    font-weight: 300;
}

/* Empty State Message */
.empty-state-message {
    text-align: center;
    padding: 2rem;
    background-color: var(--section-bg);
    border: 2px dashed #ccc;
    margin-top: 2rem;
    border-radius: var(--border-radius);
    color: #666;
    font-style: italic;
}

.empty-state-message p {
    margin: 0;
}

/* Cart Modal Styles */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px dashed #000;
    padding: 1rem 0;
}

.cart-item-info h4 {
    margin: 0;
    font-size: 1.1rem;
    font-family: 'Outfit', sans-serif;
}

.cart-item-price {
    font-weight: bold;
}

.remove-btn {
    background: #fff;
    border: 2px solid #000;
    color: var(--accent-color);
    font-weight: bold;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
    margin-left: 1rem;
    box-shadow: 2px 2px 0 0 #000;
}

.remove-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 0 #000;
}

.cart-total {
    margin-top: 2rem;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    display: flex;
    justify-content: space-between;
    border-top: 4px solid #000;
    padding-top: 1rem;
}

.empty-cart-msg {
    text-align: center;
    font-style: italic;
    color: #666;
    padding: 2rem 0;
}

.jp-modal {
    font-size: 0.8em;
    font-weight: normal;
    margin-left: 0.5rem;
    color: #555;
    display: none;
    /* Hidden by default, shown via JS if needed or just kept inline */
}

/* Show Japanese text in modal if lang is JP - simplified approach */
html[lang="ja"] .jp-modal {
    display: inline;
}

/* Landing Page Styles */
.landing-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    background-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7)), radial-gradient(var(--accent-color) 1px, transparent 1px);
}

.landing-hero h2 {
    font-size: 3.5rem;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    border: none;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.cta-btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    border-radius: var(--border-radius);
    transition: all 0.2s;
    box-shadow: 4px 4px 0 0 #000;
    border: 3px solid #000;
}

.cta-btn.primary {
    background-color: var(--accent-color);
    color: white;
}

.cta-btn.primary:hover {
    background-color: #ff333a;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 0 #000;
}

.cta-btn.secondary {
    background-color: white;
    color: #000;
}

.cta-btn.secondary:hover {
    background-color: var(--section-bg);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 0 #000;
}

.section {
    padding: 5rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 3rem;
    border: 3px solid #000;
    border-radius: var(--border-radius);
    box-shadow: 8px 8px 0 0 #000;
    text-align: center;
    transition: transform 0.2s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #444;
}

.text-link {
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.2rem;
    border-bottom: 3px solid var(--accent-color);
}

.text-link:hover {
    background-color: var(--accent-color);
    color: white;
}

.about-section {
    background-color: var(--secondary-color);
    color: white;
    text-align: center;
}

.about-section h2 {
    color: white;
    border-color: white;
}

.about-content {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-grid h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-top: 0;
}

/* Checkout Page Styles */
.checkout-container {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.back-link {
    text-decoration: none;
    font-weight: bold;
    color: var(--primary-color);
    border-bottom: 2px solid transparent;
}

.back-link:hover {
    border-bottom: 2px solid var(--accent-color);
}

.checkout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
}

.checkout-form-section h3 {
    border-bottom: 2px solid #ccc;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.method-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.method-option {
    flex: 1;
    cursor: pointer;
}

.method-option input {
    position: absolute;
    opacity: 0;
}

.method-card {
    display: flex;
    flex-direction: column;
    border: 2px solid #ccc;
    padding: 1rem;
    border-radius: var(--border-radius);
    transition: all 0.2s;
}

.method-option input:checked+.method-card {
    border-color: var(--accent-color);
    background-color: #fff0f0;
    box-shadow: 4px 4px 0 0 #000;
}

.method-title {
    font-weight: 800;
    font-size: 1.2rem;
    font-family: 'Outfit', sans-serif;
}

.details-section {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    border: 1px solid #ddd;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #000;
    font-family: 'Inter', sans-serif;
}

.checkout-total {
    font-size: 1.5rem;
    font-weight: 800;
    border-top: 2px solid #000;
    margin-top: 1rem;
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dashed #ccc;
}

.place-order-btn {
    width: 100%;
    margin-top: 2rem;
}

/* Contact Page Styles */
.contact-hero {
    background-color: var(--secondary-color);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.contact-hero h2 {
    color: white;
    border-color: white;
}

.contact-section {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-form {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid #ddd;
}

.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #000;
    font-family: 'Inter', sans-serif;
    resize: vertical;
}

.contact-form select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #000;
    font-family: 'Inter', sans-serif;
    background-color: white;
}

.info-card {
    background: white;
    padding: 2rem;
    border: 3px solid #000;
    border-radius: var(--border-radius);
    box-shadow: 6px 6px 0 0 #000;
    margin-bottom: 2rem;
}

.map-container {
    width: 100%;
    height: 300px;
    border: 2px solid #000;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 4px 4px 0 0 rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Utility */
.hidden {
    display: none !important;
}

/* Language Switcher */
.lang-select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-card);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
}

.lang-select:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 2px var(--accent-light);
}