/* Rustic Charm - Warm, traditional Japanese aesthetic */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Crimson Text', serif;
    color: #3d2817;
    line-height: 1.8;
    background: #f5f1eb;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 30px; }

.navbar {
    padding: 25px 0;
    background: #2a1810;
    color: #f5f1eb;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-family: 'Noto Serif JP', serif;
    font-size: 24px;
    font-weight: 600;
    color: #d4a574;
    letter-spacing: 1px;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

.logo-link:hover {
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: #f5f1eb;
    font-size: 15px;
    transition: color 0.3s;
}

.nav-menu a:hover { color: #d4a574; }

.btn-order {
    background: #d4a574;
    color: #2a1810;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 600;
}

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #d4a574;
    transition: all 0.3s;
    display: block;
}

.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2a1810 0%, #3d2817 100%);
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 100px 30px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><pattern id="wood" patternUnits="userSpaceOnUse" width="100" height="100"><rect width="100" height="100" fill="%232a1810"/><circle cx="25" cy="25" r="1" fill="%233d2817" opacity="0.3"/><circle cx="75" cy="75" r="1" fill="%233d2817" opacity="0.3"/></pattern><rect width="100" height="100" fill="url(%23wood)"/></svg>');
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-family: 'Noto Serif JP', serif;
    font-size: 52px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #f5f1eb;
}

.hero-content p {
    font-size: 18px;
    color: #d4a574;
    margin-bottom: 40px;
    font-style: italic;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 36px;
    background: #d4a574;
    color: #2a1810;
    text-decoration: none;
    font-size: 15px;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn:hover {
    background: #c49464;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #f5f1eb;
    border: 2px solid #f5f1eb;
}

.btn-secondary:hover {
    background: #f5f1eb;
    color: #2a1810;
    border-color: #f5f1eb;
}

.menu-section {
    padding: 80px 30px;
    background: #ffffff;
}

.section-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 38px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2a1810;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: #5a4a3a;
    margin-bottom: 50px;
    font-size: 17px;
    font-style: italic;
}

.menu-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.menu-category-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.menu-category {
    background: #f5f1eb;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.menu-category:hover {
    transform: translateY(-5px);
    border-color: #d4a574;
    box-shadow: 0 5px 20px rgba(212, 165, 116, 0.2);
}

.menu-category h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2a1810;
}

.menu-category p {
    font-size: 15px;
    color: #5a4a3a;
    line-height: 1.6;
}

.menu-cta {
    text-align: center;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-order-online {
    margin-left: 0;
}

.about {
    padding: 80px 30px;
    text-align: center;
    background: #f5f1eb;
}

.about h2 {
    font-family: 'Noto Serif JP', serif;
    font-size: 38px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #2a1810;
}

.about p {
    font-size: 17px;
    color: #5a4a3a;
    max-width: 700px;
    margin: 0 auto 20px;
    line-height: 2;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 30px;
    background: #ffffff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    width: 100%;
    min-height: 200px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #f5f1eb;
    border: 2px solid #d4a574;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 30px 20px;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background: #2a1810;
    border-color: #d4a574;
}

.gallery-item:hover .gallery-pdf-icon {
    transform: scale(1.2);
    color: #d4a574;
}

.gallery-item:hover .gallery-pdf-name {
    color: #d4a574;
}

.gallery-pdf-icon {
    font-size: 48px;
    margin-bottom: 15px;
    transition: transform 0.3s ease, color 0.3s ease;
    color: #2a1810;
}

.gallery-pdf-name {
    font-family: 'Noto Serif JP', serif;
    font-size: 18px;
    font-weight: 600;
    color: #3d2817;
    text-align: center;
    transition: color 0.3s ease;
    word-break: break-word;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* PDF Modal Styles */
.pdf-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    overflow-y: auto;
}

.pdf-modal.active {
    display: block;
}

.pdf-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(42, 24, 16, 0.9);
    backdrop-filter: blur(5px);
}

.pdf-modal-content {
    position: relative;
    max-width: 95%;
    width: 1200px;
    margin: 40px auto;
    background: #f5f1eb;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pdf-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: #2a1810;
    color: #d4a574;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-modal-close:hover {
    background: #d4a574;
    color: #2a1810;
    transform: rotate(90deg);
}

.pdf-modal-header {
    background: #2a1810;
    color: #d4a574;
    padding: 20px 60px 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.pdf-modal-header h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    color: #d4a574;
}

.pdf-download-btn {
    background: #d4a574;
    color: #2a1810;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
}

.pdf-download-btn:hover {
    background: #f5f1eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(212, 165, 116, 0.3);
}

.pdf-modal-body {
    padding: 20px;
    background: #ffffff;
    min-height: 600px;
}

.pdf-modal-body iframe {
    width: 100%;
    height: 80vh;
    min-height: 600px;
    border: none;
    border-radius: 8px;
}

/* PDF Loading and Error States */
.pdf-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80vh;
    min-height: 600px;
    font-size: 18px;
    color: #5a4a3a;
    font-family: 'Crimson Text', serif;
}

.pdf-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 80vh;
    min-height: 600px;
    padding: 40px;
    text-align: center;
}

.pdf-error-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.pdf-error h4 {
    font-family: 'Noto Serif JP', serif;
    font-size: 24px;
    color: #2a1810;
    margin-bottom: 15px;
}

.pdf-error p {
    font-size: 16px;
    color: #5a4a3a;
    margin-bottom: 10px;
    max-width: 500px;
    line-height: 1.6;
}

.pdf-error-path {
    font-size: 14px;
    color: #8a7a6a;
    font-family: monospace;
    word-break: break-all;
    margin-top: 20px;
}

.pdf-retry-btn {
    margin-top: 30px;
    padding: 12px 30px;
}


.contact {
    padding: 80px 30px;
    text-align: center;
    background: #2a1810;
    color: #f5f1eb;
}

.contact h2 {
    font-family: 'Noto Serif JP', serif;
    font-size: 38px;
    font-weight: 600;
    margin-bottom: 40px;
    color: #d4a574;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.contact-item h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #d4a574;
}

.contact-item p {
    font-size: 16px;
    color: #f5f1eb;
    line-height: 1.8;
}

.contact-item a {
    color: #d4a574;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #f5f1eb;
}

.contact-cta {
    margin-top: 40px;
}

.delivery-platforms {
    margin-top: 60px;
    text-align: center;
    padding-top: 40px;
    border-top: 2px solid rgba(212, 165, 116, 0.3);
}

.delivery-platforms h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #d4a574;
}

.delivery-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.delivery-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 25px;
    background: rgba(212, 165, 116, 0.1);
    border: 2px solid #d4a574;
    border-radius: 8px;
    text-decoration: none;
    color: #f5f1eb;
    transition: all 0.3s;
    min-width: 120px;
}

.delivery-link:hover {
    background: #d4a574;
    color: #2a1810;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 165, 116, 0.3);
}

.delivery-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.delivery-link span:not(.delivery-icon) {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.map-container {
    margin-top: 60px;
    text-align: center;
}

.map-container h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #d4a574;
}

.map-wrapper {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.map-wrapper iframe {
    display: block;
    width: 100%;
    height: 400px;
    border: 0;
}

.map-link {
    margin-top: 15px;
}

.map-link a {
    color: #d4a574;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.map-link a:hover {
    color: #f5f1eb;
    text-decoration: underline;
}

.contact-form-section {
    padding: 80px 30px;
    background: #ffffff;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: 'Noto Serif JP', serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2a1810;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Crimson Text', serif;
    font-size: 16px;
    color: #3d2817;
    background: #f5f1eb;
    border: 2px solid #e5e0d8;
    border-radius: 4px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d4a574;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    cursor: pointer;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

.btn-submit {
    padding: 14px 50px;
    font-size: 16px;
    cursor: pointer;
    border: none;
}

.btn-submit:hover {
    background: #c49464;
}

.form-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    font-size: 16px;
    display: none;
}

.form-status.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-status.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.footer {
    padding: 40px 30px 30px;
    background: #1a0f08;
    color: #d4a574;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.footer-section h4 {
    font-family: 'Noto Serif JP', serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #d4a574;
}

.footer-section p {
    font-size: 14px;
    color: rgba(212, 165, 116, 0.8);
    line-height: 1.6;
}

.footer-delivery-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-delivery-links a {
    color: rgba(212, 165, 116, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-delivery-links a:hover {
    color: #d4a574;
}

.footer > .container > p {
    text-align: center;
    font-size: 14px;
    color: rgba(212, 165, 116, 0.6);
    padding-top: 20px;
    border-top: 1px solid rgba(212, 165, 116, 0.2);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: #2a1810;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        padding: 2rem 0;
        gap: 1rem;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu { gap: 20px; font-size: 14px; }
    .hero-content h2 { font-size: 36px; }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    .menu-categories {
        grid-template-columns: 1fr;
    }
    .contact-info {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .map-wrapper iframe {
        height: 300px;
    }
    .delivery-links {
        gap: 15px;
    }
    .delivery-link {
        min-width: 100px;
        padding: 15px 20px;
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    .gallery-item {
        min-height: 150px;
        padding: 20px 15px;
    }
    .gallery-pdf-icon {
        font-size: 36px;
        margin-bottom: 10px;
    }
    .gallery-pdf-name {
        font-size: 16px;
    }
    .pdf-modal-content {
        max-width: 98%;
        margin: 20px auto;
    }
    .pdf-modal-header {
        padding: 15px 50px 15px 20px;
        flex-direction: column;
        align-items: flex-start;
    }
    .pdf-modal-header h3 {
        font-size: 20px;
    }
    .pdf-modal-body {
        padding: 10px;
        min-height: 400px;
    }
    .pdf-modal-body iframe {
        min-height: 500px;
        height: 70vh;
    }
}

/* Menu Page Styles */
.menu-hero {
    padding: 120px 30px 80px;
    text-align: center;
    background: linear-gradient(135deg, #2a1810 0%, #3d2817 100%);
    color: #f5f1eb;
    margin-top: 70px;
}

.menu-hero h1 {
    font-family: 'Noto Serif JP', serif;
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #f5f1eb;
}

.menu-hero p {
    font-size: 20px;
    color: #d4a574;
    font-style: italic;
}

.menu-category-section {
    padding: 80px 30px;
    background: #ffffff;
}

.menu-category-section:nth-child(even) {
    background: #f5f1eb;
}

.menu-category-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2a1810;
    text-align: center;
}

.menu-category-description {
    text-align: center;
    color: #5a4a3a;
    font-size: 18px;
    font-style: italic;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.menu-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.menu-item:hover {
    transform: translateY(-5px);
    border-color: #d4a574;
    box-shadow: 0 5px 20px rgba(212, 165, 116, 0.2);
}

.menu-item-header h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2a1810;
    border-bottom: 2px solid #d4a574;
    padding-bottom: 10px;
}

.menu-item-description {
    font-size: 15px;
    color: #5a4a3a;
    margin-bottom: 20px;
    font-style: italic;
    line-height: 1.6;
}

.menu-item-list {
    list-style: none;
    padding: 0;
}

.menu-item-list li {
    padding: 8px 0;
    color: #3d2817;
    font-size: 16px;
    border-bottom: 1px solid #e5e0d8;
    position: relative;
    padding-left: 20px;
}

.menu-item-list li:last-child {
    border-bottom: none;
}

.menu-item-list li::before {
    content: '•';
    color: #d4a574;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.menu-cta-section {
    padding: 80px 30px;
    text-align: center;
    background: #2a1810;
    color: #f5f1eb;
}

.menu-cta-section h2 {
    font-family: 'Noto Serif JP', serif;
    font-size: 38px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #d4a574;
}

.menu-cta-section p {
    font-size: 18px;
    color: #f5f1eb;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .menu-hero h1 {
        font-size: 36px;
    }
    .menu-category-title {
        font-size: 32px;
    }
    .menu-items {
        grid-template-columns: 1fr;
    }
}
