:root {
    --primary-brown: #5D4037;
    --accent-orange: #D35400;
    --accent-orange-hover: #e67e22;
    --bg-cream: #FDFBF7;
    --bg-dark: #3E2723;
    --text-main: #2C3E50;
    --white: #FFFFFF;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    padding-top: 100px;
    background-color: var(--bg-cream);
    font-family: 'Roboto', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-brown);
    margin-top: 0;
}

nav {
    background-color: var(--white);
    padding: 10px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
}

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

.nav-logo-img {
    position: relative;
    z-index: 1001;
}

.nav-logo-img img {
    height: 140px;
    width: auto;
    display: block;
    transition: all 0.3s ease;
    margin-bottom: -70px;
    margin-top: 0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 4px solid var(--white);
    background-color: var(--white);
}

.nav-logo-img:hover img {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    padding: 12px 25px;
    border-radius: 30px;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.nav-links a:hover, .nav-links a.active {
    background-color: var(--primary-brown);
    color: var(--white);
}

.nav-links a.cta-button {
    background-color: var(--accent-orange);
    color: white;
}

.nav-links a.cta-button:hover {
    background-color: var(--accent-orange-hover);
    transform: translateY(-2px);
}

.btn-primary, .btn-large {
    background: var(--accent-orange);
    color: white;
    padding: 18px 40px;
    text-decoration: none;
    border-radius: 40px;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, background 0.2s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary:hover, .btn-large:hover {
    background: var(--accent-orange-hover);
    transform: translateY(-2px);
}

header.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../img/jk.png');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 150px 20px 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-size: 4rem;
    margin: 0;
    color: var(--white);
    text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
}

.hero p {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 20px auto;
    color: var(--white);
}

main {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 20px 60px 20px; 
}

.card {
    background: var(--white);
    padding: 50px;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    text-align: center;
    font-weight: 500;
    margin-bottom: 40px;
}

.card.two-columns-section {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    justify-content: space-between;
    text-align: left;
}

.card.two-columns-section > .column {
    flex: 1;
    min-width: 0;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
    width: 100%;
}

.feature-item {
    text-align: center;
    padding: 20px;
}

.feature-item img {
    width: 80px;
    height: auto;
    margin-bottom: 20px;
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    width: 100%;
    max-width: 1200px; 
    margin: 0 auto;
    align-items: stretch;
}

.contact-card, .form-card {
    height: 100%; 
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 40px;
    background: var(--white);
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
}

.contact-card {
    justify-content: flex-start;
    gap: 20px; 
}

.form-card {
    text-align: left;
    justify-content: space-between;
}

.contact-card h2, .form-card h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    align-self: center;
    text-align: center;
    color: var(--primary-brown);
    font-family: 'Playfair Display', serif;
}

.contact-card h2::after, .form-card h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-orange);
    margin: 10px auto 0;
    border-radius: 2px;
}

.contact-details {
    font-size: 1.05rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-block {
    margin-bottom: 0;
    line-height: 1.6;
}

.contact-block strong {
    display: block;
    color: var(--primary-brown);
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 3px;
    font-weight: 700;
}

.contact-block a {
    color: var(--text-main);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.contact-block a:hover {
    border-color: var(--accent-orange);
}

.phone-link {
    color: var(--accent-orange) !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.4rem;
    display: inline-block;
    margin-top: 3px;
}

.opening-hours {
    text-align: center;
}

.opening-hours h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-brown);
}

.opening-hours table {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    font-size: 1rem;
    border-collapse: collapse;
}

.opening-hours td {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.opening-hours tr:last-child td {
    border-bottom: none;
}

.opening-hours .time {
    text-align: right;
    font-weight: bold;
    color: var(--primary-brown);
}

.payment-methods {
    text-align: center;
}

.payment-methods h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
    margin-bottom: 10px;
}

.payment-methods img {
    max-width: 120px;
    height: auto;
    opacity: 0.8;
}

.order-main {
    text-align: center;
}

.order-card {
    max-width: 800px;
    margin: 0 auto;
}

.order-help {
    font-size: 0.9rem;
    color: #777;
    margin-top: 40px;
}

footer {
    background-color: var(--bg-dark);
    color: #FFFFFF;
    text-align: center;
    padding: 30px;
    margin-top: auto;
}

.form-container {
    text-align: left;
    margin-bottom: 20px;
    margin-top: 20px;
    width: 100%;
}

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

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--primary-brown);
    font-size: 0.9rem;
}

input.form-input, textarea.form-textarea {
    width: 100% !important;
    display: block;
    padding: 12px 15px;
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    background-color: #FAFAFA;
    transition: all 0.3s;
    margin-bottom: 5px;
}

input.form-input:focus, textarea.form-textarea:focus {
    border-color: var(--accent-orange);
    background-color: #FFF;
    outline: none;
}

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

button.form-btn {
    width: 100% !important;
    background-color: var(--accent-orange);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(211, 84, 0, 0.2);
}

button.form-btn:hover {
    background-color: var(--accent-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(211, 84, 0, 0.3);
}

.small-map {
    margin-top: auto; 
    width: 100%;
}

.small-map h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--primary-brown);
}

.small-map iframe {
    width: 100%;
    height: 250px; 
    border-radius: 15px;
    border: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

@media screen and (max-width: 1200px) {
    body {
        padding-top: 170px; 
    }

    .nav-container {
        flex-direction: column;
        padding: 10px 15px;
        gap: 10px;
    }

    .nav-logo-img img {
        height: 80px;       
        margin-bottom: 0;   
        margin-top: 0;
        border: 2px solid var(--white);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 10px 0;
        display: block;
        font-size: 1rem;
    }

    main {
        padding-top: 20px; 
    }

    header.hero {
        padding-top: 40px;
        padding-bottom: 60px;
        min-height: auto;
    }

    .hero h1, .page-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .contact-grid {
        grid-template-columns: 1fr; 
        gap: 40px;
        max-width: 600px;
    }
    
    .contact-card, .form-card {
        min-height: auto;
        padding: 30px 20px;
    }

    .small-map iframe {
        min-height: 250px;
    }
}

@media screen and (max-width: 768px) {
    body {
        padding-top: 140px;
    }

    .nav-container {
        padding: 5px 15px;
        gap: 5px;
    }

    .nav-logo-img img {
        height: 60px;
        margin-bottom: 0;
        border-radius: 10px;
        box-shadow: none;
        border: none;
    }

    .nav-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
        width: 100%;
    }

    .nav-links a {
        padding: 6px 12px;
        font-size: 0.8rem;
        width: auto;
        display: inline-block;
    }

    header.hero {
        padding-top: 20px;
    }
    
    .card.two-columns-section {
        flex-direction: column;
    }
    
    .card {
        padding: 30px 20px;
    }
}

/* =========================================
   OPRAVENÉ STYLY PRO GALERII DENNÍHO MENU
   ========================================= */

.menu-divider {
    border: 0;
    border-top: 2px solid rgba(0,0,0,0.05);
    margin: 40px 0;
}

.menu-galerie {
    display: grid;
    /* Přesně 3 sloupce na desktopu pro čisté zarovnání */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
    width: 100%;
    text-align: center;
}

.menu-den {
    background: #FAFAFA;
    border: 2px solid #E0E0E0;
    border-radius: 20px;
    padding: 25px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.menu-den:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: var(--accent-orange);
}

.menu-den.dnes {
    border-color: var(--accent-orange);
    background-color: var(--white);
    box-shadow: 0 8px 25px rgba(211, 84, 0, 0.15);
}

.menu-den.dnes::before {
    content: 'DNES';
    position: absolute;
    top: -12px;
    right: 20px;
    background-color: var(--accent-orange);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 1px;
    z-index: 10;
}

.menu-den h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-brown);
    line-height: 1.3;
}

.menu-datum {
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    color: #777;
    font-weight: 400;
}

/* Striktní omezení velikosti obrázků menu */
.menu-den img {
    width: 100%;
    max-width: 100%;
    max-height: 420px; /* Maximální povolená výška, aby nebyly obří */
    object-fit: contain; /* Zabrání ořezu a deformaci */
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    margin-top: auto; 
    display: block;
}

.menu-den:hover img {
    transform: scale(1.02);
}

.menu-prazdne {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
    background-color: #f7f7f7;
    border-radius: 12px;
    border: 2px dashed #ccc;
    margin-top: auto;
    padding: 20px;
}

.menu-prazdne p {
    color: #999;
    font-style: italic;
    font-size: 0.95rem;
    margin: 0;
}

/* Responzivita pro tablety */
@media screen and (max-width: 1024px) {
    .menu-galerie {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responzivita pro mobily */
@media screen and (max-width: 650px) {
    .menu-galerie {
        grid-template-columns: 1fr;
    }
}