/* =======================
   CELKOVÝ VZHLED
   ======================= */
body {
    font-family: "Segoe UI", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f0e6; /* záložní barva */
    background-image: url('images/bistro-photo.jpg'); /* fotka za webem */
    background-size: cover;
    background-position: center center; 
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: #222;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(245,240,230,0.3); /* jemný overlay pro čitelnost textu */
    z-index: -1;
}

/* =======================
   HLAVIČKA
   ======================= */
header {
    background-color: #555;
    color: #f5f0e6;
    text-align: center;
    padding: 30px 10px;
    position: relative;
}

header h1 {
    font-size: 2.2em;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

/* Navigace */
nav a {
    color: #f5f0e6;
    margin: 0 12px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

nav a:hover {
    color: #c0392b;
    transform: scale(1.1);
}

/* Telefonní číslo v hlavičce */
.header-phone {
    position: absolute;
    top: 0px;
    right: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #eee;
    line-height: 1.2;
    text-align: right;
}

/* Logo hlavičky */
header img {
    height: 115px;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 10px;
}

/* =======================
   HLAVNÍ OBSAH
   ======================= */
main {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    line-height: 1.6;
}

h2 {
    color: #333;
    border-bottom: 2px solid #555;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

section {
    background-color: rgba(255, 255, 255, 0.85);
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.about-box {
    background-color: rgba(255, 255, 255, 0.85);
    padding: 25px;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    max-width: 900px;
    line-height: 1.5;
}

.about-box h2,
.about-box h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.about-box .opening-hours {
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 0;
}

/* =======================
   PATIČKA
   ======================= */
footer {
    background-color: #555;
    color: #f5f0e6;
    text-align: center;
    padding: 15px;
    font-size: 0.9em;
    margin-top: 40px;
}

/* =======================
   NABÍDKA (offer-section)
   ======================= */
.offer-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
}

.offer-title {
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 600;
    color: #333;
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    justify-items: center;
}

/* Třetí obrázek pod dvěma prvními a uprostřed */
.offer-grid .offer-card:nth-child(3) {
    grid-column: 1 / span 2;
    justify-self: center;
    max-width: 420px;
}

.offer-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    width: 100%;
    max-width: 500px;
}

.offer-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.offer-card img {
    width: 100%;
    display: block;
    height: auto;
}

/* =======================
   GALERIE (index)
   ======================= */
.gallery-section {
    text-align: center;
    padding: 40px 20px;
    max-width: 960px;
    margin: 40px auto;
}

.gallery-section h2 {
    color: #333;
    margin-bottom: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.gallery-item {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}

/* =======================
   LIGHTBOX
   ======================= */
#lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    user-select: none;
    transform: translateY(-50%);
}

.prev { left: 10px; }
.next { right: 10px; }

.prev:hover, .next:hover, .close:hover {
    color: #f1f1f1;
}

/* =======================
   RESPONZIVITA
   ======================= */

/* Logo nad názvem a telefon pod navigací do 1100px */
@media (max-width: 1100px) {
    header img {
        position: static !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        margin: 0 auto 10px auto;
        display: block;
        height: 115px;
        border-radius: 10px;
    }
    header h1 {
        text-align: center;
        margin-bottom: 10px;
        font-size: 1.8em;
    }
    nav {
        margin-top: 10px;
        text-align: center;
    }
    .header-phone {
        position: static !important;
        top: auto !important;
        right: auto !important;
        margin: 10px auto 0 auto;
        display: block;
        text-align: center;
        font-size: 0.9rem;
    }
}

/* Tablet / mobil layout do 940px */
@media (max-width: 940px) {
    header {
        padding: 20px 10px;
        text-align: center;
    }

    nav a {
        display: inline-block;
        margin: 5px 8px;
        font-size: 1em;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobil do 600px */
@media (max-width: 600px) {
    header h1 {
        font-size: 1.6em;
    }

    header img {
        height: 70px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Gallery grid pro menší tablety */
@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* =======================
   SOCIÁLNÍ IKONY – hover efekt
   ======================= */
.social-icon {
    display: inline-block;
    transition: transform 0.25s ease;
}

.social-icon:hover {
    transform: scale(1.2);
}
