/* Shared base styles */
:root {
    --bg-color: #fdf8f5;
    --text-main: #333333;
    --text-muted: #666666;
    --primary-brown: #a03c00;
    --primary-brown-hover: #803000;
    --accent-orange: #f36c21;
    --card-bg-white: #ffffff;
    --card-bg-peach: #fbece4;
    --card-bg-pink: #fcebe3;
    --card-bg-dark: #0a0d10;
    --border-color: #e5d5ce;
    --header-bg: rgba(253, 248, 245, 0.95);
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    --font-cursive: 'Dancing Script', cursive;
    --azulejos-opacity: 0.06;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

body {
    pointer-events: auto;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

a img,
img {
    max-width: 100%;
    height: auto;
    display: block;
}

button,
input,
textarea,
select {
    font-family: var(--font-sans);
}

/* Shared header and navigation */
header {
    padding: 20px ;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-brown);
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: 0.3s;
    padding-bottom: 5px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-brown);
}

.nav-links a.active {
    border-bottom: 2px solid var(--primary-brown);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-lang-switch {
    display: flex;
    gap: 8px;
    align-items: center;
}

.header-lang-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background: var(--card-bg-white);
    color: var(--text-main);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    font-size: 12px;
    font-weight: 600;
}

.header-lang-button:hover,
.header-lang-button.active {
    background: var(--primary-brown);
    color: white;
    border-color: var(--primary-brown);
    transform: translateY(-1px);
}

/* Separator dla języka w menu - domyślnie ukryty na desktopie */
.nav-lang-separator {
    display: none;
    list-style: none;
}


.btn-primary {
    background-color: var(--primary-brown);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: var(--primary-brown-hover);
}

.btn-outline {
    border: 2px solid var(--primary-brown);
    color: var(--primary-brown);
    padding: 8px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-brown);
    color: white;
}

.order-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 18px;
}

.order-actions .btn-primary {
    padding: 14px 36px;
    border-radius: 999px;
    background: linear-gradient(135deg, #a03c00 0%, #d16d28 100%);
    color: white;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 14px 28px rgba(160, 60, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.order-actions .btn-primary:hover {
    transform: translateY(-1px);
    opacity: 0.95;
    box-shadow: 0 18px 30px rgba(160, 60, 0, 0.24);
}

.order-actions .btn-secondary {
    background-color: #fff;
    color: #5d3a21;
    border: 1px solid rgba(160, 60, 0, 0.18);
    padding: 12px 32px;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.order-actions .btn-secondary:hover {
    background-color: rgba(160, 60, 0, 0.08);
    color: var(--primary-brown);
    transform: translateY(-1px);
    box-shadow: inset 0 0 0 1px rgba(160, 60, 0, 0.25);
}

.order-actions .btn-secondary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(160, 60, 0, 0.18);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 12px;
    color: var(--text-muted);
}

.footer-logo h2,
.footer-left h2 {
    font-family: var(--font-serif);
    color: var(--primary-brown);
    font-size: 20px;
    margin-bottom: 5px;
}

.footer-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--primary-brown);
}

.footer-social {
    display: flex;
    gap: 15px;
    color: var(--primary-brown);
}

.footer-social svg {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.mobile-only {
    margin-top: 10px;
}

.mt-30 {
    margin-top: 30px;
    margin-bottom: 30px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-25 {
    margin-bottom: 25px;
}

.mb-30 {
    margin-bottom: 30px;
}

.text-highlight {
    color: var(--primary-brown);
    margin-bottom: 15px;
    display: inline-block;
}

.badge-small {
    font-size: 10px;
    color: var(--accent-orange);
    font-weight: 700;
    border: 1px solid var(--accent-orange);
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    display: inline-block;
}

.btn-compact {
    padding: 12px 30px;
}

.btn-secondary {
    background-color: #fff;
    color: var(--text-main);
    border: 1px solid rgba(160, 60, 0, 0.2);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: 0.25s ease;
}

.order-actions .btn-secondary {
    padding: 12px 28px;
    border-radius: 12px;
    background-color: #f7f2ed;
    color: #5d3a21;
    border-color: rgba(160, 60, 0, 0.25);
}

.order-actions .btn-secondary:hover {
    background-color: #f1e7dc;
    transform: translateY(-1px);
}

.form-note {
    margin-top: 12px;
    font-size: 0.95rem;
    color: #6b584b;
}

.app-icon-uber {
    background-color: #000;
    border: 1px solid var(--primary-brown);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Crect width='160' height='160' rx='24' fill='%23000'/%3E%3Cpath d='M36 30v38c0 12 9 20 24 20s24-8 24-20V30h12v38c0 22-18 36-36 36s-36-14-36-36V30h12z' fill='%23fff'/%3E%3C/svg%3E");
}

.app-icon-glovo {
    background-color: #FFC244;
    border: 1px solid var(--primary-brown);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Crect width='160' height='160' rx='24' fill='%23FFC244'/%3E%3Ctext x='50%25' y='66%25' font-family='Arial, sans-serif' font-size='72' font-weight='700' text-anchor='middle' fill='%23000'>G</text%3E%3C/svg%3E");
}

.language-switch {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.lang-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--card-bg-white);
    color: var(--text-main);
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.lang-button:hover,
.lang-button.active {
    background: var(--primary-brown);
    color: white;
    border-color: var(--primary-brown);
}

.lang-button .flag {
    font-size: 20px;
}

.decorative-svg {
    position: absolute;
    right: -10px;
    bottom: -10px;
    opacity: 0.1;
    width: 100px;
    height: 100px;
}

.delivery-note {
    margin-bottom: 30px;
    font-size: 14px;
    color: var(--primary-brown);
    font-weight: 600;
}

/* Shared utilities */
.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* index.html */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background-color: var(--accent-orange);
    width: 0%;
    z-index: 10000;
    transition: width 0.1s;
}

#preloader {
    position: fixed;
    inset: 0;
    background-color: var(--bg-color);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    font-family: var(--font-serif);
    font-size: 36px;
    color: var(--primary-brown);
    font-weight: 700;
    animation: pulse 1.5s infinite;
    letter-spacing: 1px;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
        transform: scale(0.95);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    100% {
        opacity: 0.5;
        transform: scale(0.95);
    }
}

header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1001;
    background-color: var(--header-bg);
    /*backdrop-filter: blur(10px);*/
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
}

/* =============================================
   HAMBURGER BUTTON
   ============================================= 
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(160, 60, 0, 0.15);
    border-radius: 8px;
    padding: 6px;
    gap: 5px;
    z-index: 1100;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.hamburger:hover {
    background: rgba(160, 60, 0, 0.07) !important;
}*/


/* =============================================
   MOBILE OVERLAY (backdrop)
   ============================================= */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    /*background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);*/
    z-index: 900;
    /*opacity: 0;
    transition: opacity 0.3s ease;*/
    pointer-events: none;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.theme-toggle-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-main);
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-btn:hover {
    transform: scale(1.1);
    color: var(--primary-brown);
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 80px 0;
}

.hero-text h1 {
    font-family: var(--font-serif);
    font-size: 56px;
    color: var(--primary-brown);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 450px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: auto;
    max-width: 100%;
    max-height: 380px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    object-fit: contain;
    height: auto;
    margin-top: 24px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 36px;
    color: var(--primary-brown);
    text-align: center;
    margin-bottom: 40px;
}

.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin: 80px auto;
}

.about-text h2 {
    font-family: var(--font-serif);
    font-size: 36px;
    color: var(--primary-brown);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.about-img img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.signature-dishes {
    margin: 80px 0;
}

.center {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;

}

.dishes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.dish-card {
    background: var(--card-bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.dish-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.dish-img-wrapper {
    height: 250px;
    overflow: hidden;
}

.dish-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dish-card:hover .dish-img-wrapper img {
    transform: scale(1.05);
}

.dish-card h3 {
    font-family: var(--font-serif);
    color: var(--primary-brown);
    margin: 20px 20px 10px;
    font-size: 22px;
}

.dish-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 20px 25px;
    line-height: 1.6;
}

.parallax-section {
    background-image: url('https://images.unsplash.com/photo-1544148103-0773bf10d330?q=80&w=1600');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 80px 0;
    position: relative;
}

.parallax-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 20px;
}

.parallax-overlay h2 {
    font-family: var(--font-serif);
    font-size: 42px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.parallax-overlay p {
    font-size: 18px;
    max-width: 600px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.mini-menu {
    max-width: 800px;
    margin: 80px auto;
    text-align: center;
}

.menu-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.tab-btn {
    background: transparent;
    border: 2px solid var(--border-color);
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 16px;
    font-family: var(--font-serif);
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.3s;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary-brown);
    color: white;
    border-color: var(--primary-brown);
}

.tab-content {
    display: none;
    text-align: left;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px dashed var(--border-color);
}

.menu-item-info h4 {
    font-family: var(--font-serif);
    font-size: 18px;
    color: var(--primary-brown);
    margin-bottom: 5px;
}

.menu-item-info p {
    font-size: 14px;
    color: var(--text-muted);
}

.menu-item-price {
    font-weight: 600;
    font-size: 18px;
    color: var(--primary-brown);
}

.testimonials {
    margin: 80px 0;
    padding: 60px 20px;
    text-align: center;
    border-radius: 20px;
    background-color: var(--card-bg-white);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: var(--azulejos-opacity);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231d68a7' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
    pointer-events: none;
}

.testimonials-content {
    position: relative;
    padding-bottom: 40px;
    z-index: 1;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.review-card {
    background: var(--bg-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.review-card:hover {
    transform: translateY(-5px);
}

.stars {
    color: #FFD700;
    margin-bottom: 15px;
    font-size: 18px;
}

.review-text {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-style: italic;
}

.reviewer {
    font-weight: 600;
    font-size: 14px;
    color: var(--primary-brown);
}

.newsletter {
    background-color: var(--primary-brown);
    color: white;
    padding: 60px 20px;
    text-align: center;
    border-radius: 20px;
    margin: 80px auto;
    max-width: 1000px;
    box-shadow: 0 20px 40px rgba(160, 60, 0, 0.15);
}

.newsletter h2 {
    font-family: var(--font-serif);
    font-size: 32px;
    margin-bottom: 15px;
}

.newsletter p {
    margin-bottom: 30px;
    font-size: 16px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 15px;
    outline: none;
}

.newsletter-form button {
    background-color: var(--bg-color);
    color: var(--text-main);
    border: none;
    padding: 14px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.newsletter-form button:hover {
    background-color: var(--card-bg-white);
    transform: translateY(-2px);
}

.gallery-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.gallery-feed {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    width: 100%;
}

.gallery-feed::-webkit-scrollbar {
    height: 9px;
}

.gallery-feed::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.8);
}

.gallery-feed::-webkit-scrollbar-thumb {
    background: rgba(160, 60, 0, 0.45);
    border-radius: 999px;
}

.gallery-item {
    flex: 0 0 min(280px, 100%);
    width: min(280px, 100%);
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
    scroll-snap-align: center;
    border-radius: 20px;
    min-width: 240px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-feed .gallery-item:first-child img {
    object-fit: contain;
    object-position: center;
    background-color: #f5f0eb;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.carousel-button {
    flex: 0 0 auto;
    min-width: 48px;
    min-height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(160, 60, 0, 0.2);
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-brown);
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.carousel-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.scene {
    display: flex;
    justify-content: center;
    align-items: center;
}

.map-section iframe {
    width: 100%;
    height: 350px;
    border: 0;
    display: block;
    filter: grayscale(20%);
    transition: 0.3s;
    margin-top: 40px;
}

#toast-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background-color: var(--text-main);
    color: var(--bg-color);
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateX(-120%);
    opacity: 0;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-icon {
    background: #4caf50;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    margin-top: 40px;
    background-color: var(--card-bg-white);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.footer-column {
    flex: 1 1 220px;
    min-width: 220px;
}

.footer-brand h2,
.footer-column h3 {
    font-family: var(--font-serif);
    color: var(--primary-brown);
    margin-bottom: 12px;
}

.footer-brand p,
.footer-column p,
.footer-links a {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    display: inline-block;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-brown);
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-icons a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--border-color);
    color: var(--primary-brown);
    transition: transform 0.3s ease, background 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-3px);
    background: var(--primary-brown);
    color: white;
}

.footer-copy {
    width: 100%;
    margin-top: 30px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-left p {
    font-size: 12px;
    color: var(--text-muted);
}

/* =============================================
   RESPONSIVE BREAKPOINTS
   ============================================= */

/* --- Tablets & small desktops --- */
@media (max-width: 1024px) {
    .nav-links {
        gap: 18px;
    }
}

@media (max-width: 992px) {

    .top-section,
    .menu-grid {
        grid-template-columns: 1fr;
    }

    .daily-special {
        flex-direction: column;
    }

    .daily-special img {
        width: 100%;
    }
}

/* --- Mobile: hamburger kicks in --- */
@media (max-width: 768px) {

    /* NAV */
    .hamburger {
        display: flex;
        order: 3;
    }

    /* Show language switch in header on phones and center it under the menu button */
    header>.container>.header-lang-switch {
        display: flex;
        justify-content: center;
        width: 100%;
        margin: 0 auto;
    }

    /* Usuń cień headera gdy menu jest otwarte */
    .nav-links.active~header {
        box-shadow: none;
    }

    header:has(.nav-links.active) {
        box-shadow: none;
    }

    .nav-links {
        position: fixed;
        top: auto;
        bottom: 0;
        right: 0;
        left: auto;
        width: min(320px, 80vw);
        height: 100vh;
        padding: 20px 20px 20px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: -14px 0 35px rgba(0, 0, 0, 0.12);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        z-index: 1005;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 14px 4px;
        font-size: 16px;
        font-weight: 500;
        color: var(--text-main);
        letter-spacing: 0.01em;
        transition: color 0.2s ease, padding-left 0.2s ease;
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: var(--primary-brown);
        padding-left: 10px;
        border-bottom: none;
    }

    .nav-links a.active {
        border-bottom: none;
        font-weight: 600;
    }

    /* Hide Book-a-table button in header on mobile, but show hamburger */
    .nav-actions {
        display: flex;
    }

    /* LAYOUT */
    .story-section,
    .testimonial-grid,
    .about-section {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .story-image img {
        height: 280px;
    }

    .delivery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .gallery-item.large {
        grid-column: span 1;
        grid-row: span 1;
        height: 260px;
    }

    .footer-content {
        flex-direction: column;
        gap: 28px;
        text-align: center;
        align-items: center;
    }

    .footer-column {
        min-width: unset;
        width: 100%;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-links {
        justify-items: center;
    }

    .form-row {
        grid-template-columns: 1fr;
        margin-bottom: 0;
    }

    .form-group {
        margin-bottom: 14px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    #toast-container {
        left: 16px;
        right: 16px;
        bottom: 16px;
        align-items: center;
    }

    .toast {
        width: 100%;
        justify-content: center;
        transform: translateY(100px); 
    }
.toast.show {
        transform: translateY(0);
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 48px 0 32px;
        gap: 28px;
    }

    .hero-text h1 {
        font-size: 38px;
    }

    .hero-image img {
        height: 600px;
    }

    .section-header {
        margin: 32px 0 40px;
    }

    .dishes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .delivery-card {
        padding: 28px 20px;

    }

    .about-hero h1 {
        font-size: 30px;
    }

    .delivery-header h1 {
        font-size: 28px;
    }

    .gallery-header h1 {
        font-size: 28px;
    }

    .parallax-overlay h2 {
        font-size: 28px;
    }

    .container {
        padding: 0 16px;
    }
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 100px;
    }

    .hero-text h1 {
        font-size: 42px;
    }

    .hero-text p {
        font-size: 16px;
        max-width: 100%;
    }

    .hero-image img {
        margin-top: 0;
    }

    .gallery-carousel {
        flex-wrap: nowrap;
        gap: 10px;
    }

    .gallery-feed {
        gap: 14px;
    }

    .gallery-item {
        width: min(90vw, 260px);
        min-width: min(90vw, 260px);
    }

    .carousel-button {
        min-width: 40px;
        min-height: 40px;
        font-size: 18px;
    }
}

@media (max-width: 600px) {
    .hero-text h1 {
        font-size: 34px;
    }

    .hero-text p {
        font-size: 15px;
    }
}

/* --- Small phones --- */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 30px;
    }

    .section-title {
        font-size: 26px;
    }

    .logo {
        font-size: 20px;
    }

    .header-lang-switch {
        gap: 5px;
    }

    .header-lang-button {
        width: 36px;
        height: 36px;
        font-size: 12px;
        font-weight: 600;
    }

    .app-logos {
        gap: 14px;
    }

    .about-hero h1 {
        font-size: 26px;
    }

    .gallery-item {
        height: 240px;
    }

    footer {
        padding: 32px 0 24px;
    }
}

/* menu.html */
.menu-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1555939594-58d7cb561ad1?q=80&w=1200&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    min-height: 320px;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    border-radius: 12px;
    margin-top: 10px;
}

.menu-hero h1 {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 10px;
}

.menu-hero p {
    font-family: var(--font-serif);
    font-size: 32px;
}

.top-section {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 25px;
    margin: 40px 0;
}

.daily-special {
    background-color: var(--card-bg-peach);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    gap: 25px;
    position: relative;
}

.daily-special img {
    width: 220px;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
}

.special-content h3 {
    font-family: var(--font-serif);
    font-size: 16px;
    color: var(--primary-brown);
    margin-bottom: 15px;
}

.special-content p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-style: italic;
}

.special-price {
    font-weight: 700;
    color: var(--primary-brown);
    display: block;
    margin-bottom: 20px;
}

.badge-choice {
    position: absolute;
    top: -10px;
    left: 20px;
    background-color: var(--accent-orange);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.view-link {
    color: var(--primary-brown);
    font-size: 13px;
    text-decoration: underline;
    font-weight: 600;
}

.menu-category-title {
    font-family: var(--font-serif);
    font-size: 18px;
    color: var(--primary-brown);
    margin: 40px 0 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-category-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--border-color);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
    padding: 0 15px;
}

.menu-item {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 15px;
    padding: 15px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-item:hover {
    transform: translateY(-5px);
}

.item-img {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    margin-right: 20px;
}

.item-text {
    flex-grow: 1;
}

.item-text h5 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: #222;
    font-family: var(--font-serif);
}

.item-text p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

.item-actions {
    text-align: right;
    margin-left: 15px;
    min-width: fit-content;
}

.item-price {
    font-weight: 700;
    color: var(--primary-brown);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0;
    white-space: nowrap;
}

.btn-add-item {
    background: var(--primary-brown);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.menu-section {
    display: none;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.menu-section.active {
    display: block;
}

.menu-section.show {
    opacity: 1;
    transform: translateY(0);
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
    padding: 0 15px;
}

.filter-btn {
    background: white;
    border: 1px solid var(--primary-brown);
    color: var(--primary-brown);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: 0.3s ease;
    white-space: nowrap;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-brown);
    color: white;
}

#item-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

#item-modal.active {
    opacity: 1;
    visibility: visible;
}

#item-modal .modal-content {
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

#item-modal.active .modal-content {
    transform: scale(1);
}

.modal-body {
    display: flex;
    flex-direction: row;
    min-height: 450px;
}

#modal-img {
    width: 45%;
    object-fit: cover;
}

.modal-info {
    width: 55%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 10;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: 0.2s;
}

.close-modal:hover {
    transform: rotate(90deg);
    color: var(--primary-brown);
}

.modal-desc {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.modal-ingredients {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-bottom: 30px;
}

.modal-ingredients strong {
    display: block;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: var(--primary-brown);
}

.modal-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-brown);
    margin-top: auto;
}

@media (max-width: 768px) {
    .modal-body {
        flex-direction: column;
    }

    #modal-img {
        width: 100%;
        height: 250px;
    }

    .modal-info {
        width: 100%;
        padding: 25px;
    }

    .modal-content {
        max-width: 100%;
        margin-top: 50px;
    }
}

.floating-badge {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-orange);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-align: center;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    box-shadow: 0 10px 25px rgba(243, 108, 33, 0.3);
    z-index: 100;
}

.floating-badge {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-orange);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-align: center;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    box-shadow: 0 10px 25px rgba(243, 108, 33, 0.3);
    z-index: 100;
}

/* dostawa.html and dostawaP.html */
.delivery-header {
    text-align: center;
    margin: 60px 0 40px;
}

.delivery-header h1 {
    font-family: var(--font-serif);
    font-size: 36px;
    color: var(--primary-brown);
    margin-bottom: 10px;
}

.delivery-header p {
    color: var(--text-muted);
    font-size: 16px;
}

.delivery-grid {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 80px;
    margin-top: 60px;
    margin-left: 100px;
    margin-right: 100px
}

.delivery-card {
    background: var(--card-bg-peach);
    border-color: transparent;
    border-radius: 16px;
    padding: 40px;
    border: 1px solid var(--border-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.delivery-card h2 {
    font-family: var(--font-serif);
    font-size: 24px;
    color: var(--primary-brown);
    margin-bottom: 15px;
}

.delivery-card p {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 300px;
}

.app-logos {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-bottom: 30px;
}

.app-icon {
    width: 80px;
    height: 80px;
    background-color: #f0f0f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 56%;
    overflow: visible;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.app-icon:hover {
    transform: scale(1.1);
}

.app-icon::after {
    content: attr(data-label);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(51, 51, 51, 0.95);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.app-icon:hover::after {
    opacity: 1;
}

.app-icon span.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;
}

.btn-large {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    background-color: var(--primary-brown);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-large:hover {
    background-color: #803000;
}

/* galeria.html */
.gallery-header {
    text-align: center;
    margin: 50px 0;
}

.gallery-header h1 {
    font-family: var(--font-serif);
    font-size: 36px;
    color: var(--primary-brown);
    margin-bottom: 10px;
}

.gallery-header p {
    color: var(--text-muted);
    font-size: 16px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 80px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    height: 360px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-feed .gallery-item.gallery-item--logo {
    aspect-ratio: auto !important;
    width: min(260px, 80vw) !important;
    max-width: 280px !important;
    min-width: 220px !important;
    min-height: 240px !important;
    max-height: 280px !important;
    padding: 18px !important;
    box-sizing: border-box;
    background-color: #f7f3ee;
    margin-top: 24px;
    border-radius: 24px !important;
    border: 1px solid rgba(160, 60, 0, 0.12);
}

.gallery-feed .gallery-item.gallery-item--logo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block;
    padding: 0 !important;
}

@media (max-width: 900px) {
    .gallery-item {
        height: 300px;
    }
}

@media (max-width: 640px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* o-nas.html */
.about-hero {
    text-align: center;
    margin: 60px 0;
}

.about-hero h1 {
    font-family: var(--font-serif);
    font-size: 40px;
    color: var(--primary-brown);
    margin-bottom: 15px;
}

.about-hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.story-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.story-image img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    height: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.story-content h2 {
    font-family: var(--font-serif);
    font-size: 28px;
    color: var(--primary-brown);
    margin-bottom: 20px;
}

.story-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 15px;
}

.story-content blockquote {
    border-left: 4px solid var(--accent-orange);
    padding-left: 20px;
    font-style: italic;
    font-family: var(--font-serif);
    font-size: 18px;
    color: var(--primary-brown);
    margin: 30px 0;
}

@media (max-width: 768px) {

    .story-section,
    .top-section {
        grid-template-columns: 1fr;
    }

    .story-image img {
        height: 350px;
    }
}

/* Domyślnie ukrywamy hamburgera na komputerach */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 100;
    /* Żeby był zawsze klikalny */
}



/* Pozycja relatywna dla kontenera nawigacji, żeby menu mogło się pod nim rozwinąć */
.nav-container {
    position: relative;
}

/* Reguły dla urządzeń mobilnych (poniżej 768px szerokości) */
@media (max-width: 768px) {

    /* Pokazujemy hamburgera */
    .hamburger {
        display: flex;
    }

    /* Ukrywamy domyślnie przyciski języków i przycisk rezerwacji w hederze, jeśli brakuje miejsca - opcjonalnie */
    .nav-actions .btn-primary {
        display: none;
    }

    /* Styl telefonu: logo + wybór języka + hamburger w jednej linii */
    .nav-container {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }

    .header-lang-switch {
        width: auto;
        justify-content: center;
        margin: 0;
        transform: translateX(-39px);
        gap: 10px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--card-bg-white);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 20px;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 15px 15px;

        /* Efekt chowania */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 99;
    }

    /* Stylujemy ROZWINIĘTE menu (kiedy skrypt JS doda klasę .active) */
    .nav-links.active {
        display: flex;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* Reset i czcionka */
:root {
    --primary-color: #d4a373;
    /* Przykładowy kolor "portugalski", zmień na swój główny */
    --text-dark: #333;
    --bg-light: #fdfcfb;
    --transition: all 0.3s ease;
}


/* Grupy formularza */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #444;
}

.form-control {
    padding: 12px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background-color: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(212, 163, 115, 0.1);
}

/* Responsywność */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

.hamburger img {
    width: 100%;
}

.hamburger {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0;
}

/* Wersja mobilna */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Domyślnie ukrywamy menu na telefonie */
        flex-direction: column;
        align-items: center;
        gap: 15px;
        position: absolute;
        /* Menu wyjedzie "nad" resztę strony */
        top: 80px;
        /* Dopasuj tę wartość do wysokości swojego nagłówka */
        left: 0;
        width: 100%;
        background-color: white;
        /* Tło menu, żeby tekst był czytelny */
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    /* Klasa dodawana przez JavaScript - pokazuje menu */
    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
        /* Pokazujemy hamburgera na telefonie */
        cursor: pointer;
    }
}

/* Wersja Desktopowa */
@media (min-width: 769px) {
    .hamburger {
        display: none;
        /* Ukrywamy hamburgera na komputerze */
    }
}


.container,
.gallery-item {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-item {
    width: 390px;
}



/*-------------------------------------KOSTKA-------------------------------------------*/
.scene {
    width: 80px;
    /* Szerokość kostki */
    height: 80px;
    /* Wysokość kostki */
    perspective: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.footer-content .scene {
    flex: 0 0 100%;
    order: 4;
    justify-content: center;
}

.cube {
    width: 80px;
    height: 80px;
    transform-style: preserve-3d;
    animation: rotateCube 10s linear infinite;
}

.face {
    position: absolute;
    width: 80px;
    height: 80px;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    /* Zmniejszono, by litery nie dotykały krawędzi */
    font-weight: bold;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.05);
}

.blue {
    color: #0077ff;
    /* Mocniejszy błękit */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.black {
    color: #111;
}

.front {
    transform: rotateY(0deg) translateZ(40px);
}

.back {
    transform: rotateY(180deg) translateZ(40px);
}

.right {
    transform: rotateY(90deg) translateZ(40px);
}

.left {
    transform: rotateY(-90deg) translateZ(40px);
}

/* =============================================
   MENU MODAL STYLES
   ============================================= */

/*Poprawa responsywnośći*/
*, *::before, *::after {
    box-sizing: border-box;
}

.menu-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

@media (min-width: 768px) {
    .menu-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}
/**/

.menu-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
}

.menu-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.menu-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    /*backdrop-filter: blur(8px);*/
    cursor: pointer;
    animation: fadeInOverlay 0.3s ease;
}

.menu-modal-content {
    position: relative;
    background: var(--card-bg-white);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    display: block; 
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    z-index: 10;
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 85vh;
    overflow-y: auto;
    margin: auto;
}

@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(60px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.menu-modal-image-container {
    width: 100%;
    height: 100%;
    min-height: 400px;
    overflow: hidden;
    border-radius: 16px 0 0 16px;
}

.menu-modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.menu-modal-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    width: 100%;
}

.menu-modal-info h2 {
    font-family: var(--font-serif);
    font-size: 28px;
    color: var(--primary-brown);
    margin-bottom: 12px;
    font-weight: 700;
}

.modal-price {
    font-size: 24px;
    color: var(--primary-brown);
    font-weight: 700;
    margin-bottom: 20px;
}

.menu-modal-info > p:nth-of-type(2) {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
}

.modal-ingredients {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.modal-ingredients h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-brown);
    margin-bottom: 10px;
    font-weight: 600;
}

.modal-ingredients p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.menu-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 20;
}

.menu-modal-close:hover {
    background: var(--primary-brown);
    color: white;
    transform: rotate(90deg);
}

/* Mobile adjustments for menu modal */
@media (max-width: 768px) {
    .menu-modal-content {
        grid-template-columns: 1fr;
        width: 95%;
        max-width: 100%;
    }

    .menu-modal-image-container {
        min-height: 250px;
        border-radius: 16px 16px 0 0;
    }

    .menu-modal-info {
        padding: 30px 24px;
    }

    .menu-modal-info h2 {
        font-size: 24px;
    }

    .modal-price {
        font-size: 20px;
    }

    .menu-modal-info > p:nth-of-type(2) {
        font-size: 15px;
    }
}

.top {
    transform: rotateX(90deg) translateZ(40px);
}

.bottom {
    transform: rotateX(-90deg) translateZ(40px);
}

@keyframes rotateCube {
    0% {
        transform: rotateX(-20deg) rotateY(0deg);
    }

    25% {
        transform: rotateX(25deg) rotateY(-90deg);
    }

    50% {
        transform: rotateX(-15deg) rotateY(-180deg);
    }

    75% {
        transform: rotateX(20deg) rotateY(-270deg);
    }

    100% {
        transform: rotateX(-20deg) rotateY(-360deg);
    }
}

/* --- Podstawowe stylowanie nagłówka --- */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: #333;
}

/* --- Stylowanie linków (Desktop) --- */
.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: #A03C00; /* Kolor akcentu (np. pomarańczowy) */
}

/* --- Ukrycie hamburgera na desktopie --- */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger img {
    width: 30px;
    height: auto;
}

/* --- RWD: Urządzenia mobilne (poniżej 768px) --- */
@media (max-width: 768px) {
    .hamburger {
        display: block; /* Pokazujemy ikonę menu */
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Menu schowane za prawą krawędzią */
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease-in-out;
        z-index: 1000;
    }

    /* Klasa dodawana przez Twój JavaScript (navLinks.classList.toggle('active')) */
    .nav-links.active {
        right: 0; /* Menu wjeżdża na ekran */
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    /* Ukrycie przełącznika języków lub dopasowanie go w mobilce */
    .header-lang-switch {
        margin-right: 20px;
    }
}

.logo {
    color: var(--primary-brown);
}
