/* Zmienne dla jasnego motywu */
:root {
    --bg-main: #ffffff;
    --bg-card: #ffffff;
    --primary-red: #c1272d;
    --primary-red-hover: #a11f24;
    --accent-gold: #c39b56;
    --accent-gold-dark: #997840;
    --text-dark: #1a1a1a;
    --text-muted: #555555;
    --price-green: #15803d;
    --border-color: #eaeaea;
}

/* Animacja wczytywania (Loader) */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-main);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeOutLoader 2.5s forwards;
}

.loader-logo {
    width: 250px;
    animation: pulseLogo 1s ease-in-out infinite alternate;
}

@keyframes pulseLogo {
    from { transform: scale(0.95); opacity: 0.8; }
    to { transform: scale(1.05); opacity: 1; }
}

@keyframes fadeOutLoader {
    0%, 70% { opacity: 1; visibility: visible; }
    100% { opacity: 0; visibility: hidden; pointer-events: none; display: none; }
}

/* Animacja tła głównego (płynna biel) */
@keyframes animatedWhiteBg {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* =========================================
   TŁO Z LATAJĄCYMI SKŁADNIKAMI KEBABA
========================================= */
.flying-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; /* Zmienione na 100% zapobiega paskom przewijania */
    height: 100%;
    z-index: 0; /* POPRAWKA: warstwa na wysokości 0, na tle, pod kartami */
    overflow: hidden;
    pointer-events: none; 
}

.flying-item {
    position: absolute;
    display: block;
    font-size: 2rem;
    opacity: 0.15; 
    bottom: -150px;
    animation: floatUp linear infinite;
}

/* Różne pozycje, czasy i rozmiary dla latających składników */
.flying-item:nth-child(1) { left: 10%; font-size: 2.5rem; animation-duration: 15s; animation-delay: 0s; }
.flying-item:nth-child(2) { left: 25%; font-size: 1.5rem; animation-duration: 22s; animation-delay: 2s; }
.flying-item:nth-child(3) { left: 40%; font-size: 3rem; animation-duration: 18s; animation-delay: 4s; }
.flying-item:nth-child(4) { left: 55%; font-size: 1.2rem; animation-duration: 25s; animation-delay: 0s; }
.flying-item:nth-child(5) { left: 70%; font-size: 2.8rem; animation-duration: 20s; animation-delay: 3s; }
.flying-item:nth-child(6) { left: 85%; font-size: 2rem; animation-duration: 17s; animation-delay: 1s; }
.flying-item:nth-child(7) { left: 15%; font-size: 1.8rem; animation-duration: 23s; animation-delay: 7s; }
.flying-item:nth-child(8) { left: 50%; font-size: 2.4rem; animation-duration: 19s; animation-delay: 5s; }
.flying-item:nth-child(9) { left: 75%; font-size: 1.5rem; animation-duration: 28s; animation-delay: 2s; }
.flying-item:nth-child(10) { left: 90%; font-size: 3.5rem; animation-duration: 21s; animation-delay: 8s; }

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.15;
    }
    100% {
        transform: translateY(-120vh) rotate(360deg);
        opacity: 0;
    }
}
/* ========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* Zapobiega poziomemu przewijaniu */
}

body {
    background: linear-gradient(-45deg, #ffffff, #f4f6f9, #fcfcfc, #f0f0f0);
    background-size: 400% 400%;
    animation: animatedWhiteBg 12s ease infinite;
    color: var(--text-dark);
    position: relative;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typografia i Przyciski */
h1, h2, h3, h4 {
    text-transform: uppercase;
}

a {
    text-decoration: none;
    color: inherit;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 800;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-facebook {
    background-color: #1877F2;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-facebook:hover {
    background-color: #0c5dc7;
}

/* Nagłówek */
header {
    background-color: rgba(255, 255, 255, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-red);
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 60px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav ul li a {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--accent-gold-dark);
}

/* Hero Section (Poprawione wyświetlanie baneru) */
#hero {
    width: 100%;
    background-color: #000; 
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 4px solid var(--accent-gold);
    min-height: 200px;
    overflow: hidden;
    position: relative; /* Zabezpieczenie Z-index */
    z-index: 1;
}

.hero-banner-img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: cover;
    display: block;
}

/* Info o mięsie (Interaktywne) */
.meat-info {
    background-color: var(--bg-card);
    text-align: center;
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.03);
    position: relative; 
    z-index: 1; /* Pozwala latającym elementom przejść pod spodem */
}

.todays-meat-title {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 900;
}

.meat-schedule-container {
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px dashed #ccc;
    display: inline-block;
}

.meat-schedule-container h3 {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.meat-schedule {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
}

.highlight { color: #d97706; }
.highlight-purple { color: #9333ea; }
.highlight-red { color: var(--primary-red); }

/* Menu Section */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--accent-gold-dark);
    margin: 60px 0 40px;
    position: relative;
    z-index: 1;
}

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

.menu-item {
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 1; /* Zabezpiecza element przed tłem */
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
    border-color: var(--accent-gold);
}

.menu-img-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.menu-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.menu-item:hover .menu-img-container img {
    transform: scale(1.05);
}

.menu-details {
    padding: 20px;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 10px;
}

.menu-header h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
}

.kids-text {
    color: #16a34a !important;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 900;
}

.price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--price-green);
}

.ingredients {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.sub-menu-list {
    list-style: none;
    margin-top: 10px;
}

.sub-menu-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
}

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

/* Sekcja Karta Stałego Klienta */
.loyalty-card {
    background-color: var(--primary-red);
    padding: 50px 20px;
    text-align: center;
    margin: 60px 0;
    color: white;
    box-shadow: 0 10px 30px rgba(193, 39, 45, 0.2);
    position: relative;
    z-index: 1;
}

.loyalty-text h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.loyalty-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.stamp-info, .gift-info {
    background-color: rgba(255, 255, 255, 0.15);
    display: inline-block;
    padding: 15px 30px;
    border-radius: 10px;
    margin: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.3);
}

.stamp-info i, .gift-info i {
    font-size: 1.5rem;
    margin-right: 10px;
    color: #fff;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
    z-index: 1;
}

.contact-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-box {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.info-box i {
    font-size: 2rem;
    color: var(--primary-red);
    margin-right: 20px;
    margin-top: 5px;
}

.info-box h4 {
    font-size: 1.2rem;
    color: var(--accent-gold-dark);
    margin-bottom: 5px;
}

.info-box p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Interaktywne linki kontaktowe */
.interactive-link {
    display: inline-block;
    transition: transform 0.3s, color 0.3s;
}

.interactive-link:hover {
    color: var(--primary-red);
    transform: translateX(5px);
}

.phone-number {
    font-size: 1.8rem !important;
    font-weight: 900;
    color: var(--text-dark) !important;
}

.email-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
}

.google-review-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #f1f5f9;
    color: #333;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
    font-weight: 700;
    transition: background-color 0.3s;
    border: 1px solid #e2e8f0;
}

.google-review-btn:hover {
    background-color: #e2e8f0;
}

.google-review-btn .stars {
    color: #fbbc05;
}

.map-container {
    min-height: 400px;
}

/* Footer */
footer {
    background-color: #111;
    color: white;
    padding: 40px 0 20px;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-logo img {
    height: 80px;
    margin-bottom: 10px;
    background: white; 
    border-radius: 50%;
    padding: 5px;
}

.footer-logo p {
    color: #aaa;
}

.footer-social a {
    color: #fff;
    font-size: 1.2rem;
}

.footer-social a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid #333;
    padding-top: 20px;
}


/* =========================================
   WSPARCIE DLA URZĄDZEŃ MOBILNYCH (RWD)
========================================= */

@media (max-width: 992px) {
    .menu-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .contact-grid {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    
    .nav-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px 10px;
    }
    
    .logo {
        height: 50px;
    }
    
    nav ul {
        flex-wrap: wrap; 
        justify-content: center;
        gap: 15px;
    }
    
    nav ul li a {
        font-size: 0.95rem;
    }
    
    .btn-facebook {
        font-size: 0.85rem;
        padding: 10px 20px;
    }

    #hero {
        min-height: 150px;
        border-bottom: 3px solid var(--accent-gold);
    }
    
    .hero-banner-img {
        max-height: 45vh; 
        object-fit: contain; 
        background-color: #000;
    }

    .todays-meat-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .meat-schedule {
        font-size: 0.75rem;
        line-height: 1.8;
    }
    
    .meat-schedule-container h3 {
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 2rem;
        margin: 40px 0 25px;
    }
    
    .menu-grid {
        grid-template-columns: 1fr; 
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .menu-img-container {
        height: 180px; 
    }
    
    .menu-header h3 {
        font-size: 1.15rem;
    }
    
    .price {
        font-size: 1.1rem;
    }

    .loyalty-card {
        padding: 30px 15px;
        margin: 40px 0;
    }
    
    .loyalty-text h2 {
        font-size: 1.8rem;
    }
    
    .loyalty-text p {
        font-size: 1rem;
    }
    
    .stamp-info, .gift-info {
        padding: 12px 15px;
        font-size: 0.9rem;
        display: block; 
        margin: 10px 0;
    }

    .contact-grid {
        grid-template-columns: 1fr; 
    }
    
    .contact-info {
        padding: 25px 15px;
        align-items: center; 
        text-align: center;
    }
    
    .info-box {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .info-box i {
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    .phone-number {
        font-size: 1.6rem !important;
    }
    
    .google-review-btn {
        flex-direction: column;
        text-align: center;
        font-size: 0.9rem;
    }
    
    .map-container {
        height: 350px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}