/* ==========================================================================
   CSS Proměnné a Základní nastavení (Design System)
   ========================================================================== */
:root {
    /* Barevná paleta - Prémiový a zemitý vzhled pro restauraci */
    --color-primary: #8C6A48; /* Zlatohnědá (odkaz na pivo a dřevo/bednáře) */
    --color-primary-dark: #6e5236;
    --color-dark: #1A1A1A; /* Téměř černá pro texty a tmavé pozadí */
    --color-darker: #111111;
    --color-light: #F9F8F6; /* Teplá krémově bílá */
    --color-white: #FFFFFF;
    
    /* Typografie */
    --font-heading: 'Playfair Display', serif; /* Elegantní patkové písmo pro nadpisy */
    --font-body: 'Inter', sans-serif; /* Čisté bezpatkové pro čitelnost textů */
    
    /* Mezery a zaoblení */
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Plynulé scrollování po kliknutí na navigaci */
}

body {
    font-family: var(--font-body);
    color: var(--color-dark);
    background-color: var(--color-light);
    line-height: 1.6;
    font-size: 16px;
}

/* ==========================================================================
   Pomocné třídy (Utility classes)
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--color-white);
}

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

.max-w-text {
    max-width: 700px;
    margin: 0 auto;
}

.mt-4 { margin-top: 2rem; }
.w-full { width: 100%; }

.rounded-img {
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Typografie */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-darker);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem); /* Responzivní velikost */
    color: var(--color-white);
}

h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
}

.text-center h2::after {
    left: 50%;
    transform: translateX(-50%);
}

p {
    margin-bottom: 1.5rem;
    color: #444;
}

.subtitle {
    display: block;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    color: var(--color-primary);
    margin-bottom: 15px;
    font-weight: 600;
}

/* Tlačítka */
.btn {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0; /* Ostré rohy pro formálnější vzhled */
    transition: var(--transition);
    border: 1px solid var(--color-primary);
}

.btn:hover {
    background-color: transparent;
    color: var(--color-primary);
}

/* ==========================================================================
   Komponenty a Sekce
   ========================================================================== */

/* Header / Navigace */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
}

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

.logo a {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
}

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

.nav-list a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.nav-list a:hover {
    color: var(--color-primary);
}

/* Hero Sekce */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Tmavý překryv pro čitelnost textu */
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    text-align: left;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* Layout pro rozdělené sekce (O nás, Nabídka) */
.split-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

.split-layout.reverse {
    flex-direction: row-reverse;
}

.split-layout .text-content,
.split-layout .image-content {
    flex: 1;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.grid-2 img:first-child {
    transform: translateY(30px); /* Jemná asymetrie pro prémiový vzhled */
}

/* ==========================================================================
   Slider (Nově zrekonstruované prostory)
   ========================================================================== */
.slider {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;      /* stejný poměr jako původní fotka 800x600 */
    min-height: 260px;        /* fallback, aby slider měl vždy viditelnou výšku */
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background-color: var(--color-darker);
}

.slider-track {
    position: absolute;
    inset: 0;
}

.slider-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;        /* fotka se vždy přizpůsobí prostoru bez ořezu naformátování */
    object-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: block;
}

.slider-slide.is-active {
    opacity: 1;
}

.slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.slider-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 2px solid var(--color-white);
    background-color: transparent;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}

.slider-dot.is-active,
.slider-dot:hover {
    background-color: var(--color-white);
}
/* Široký slider (terasa - širší formát) */
.slider-wide {
    aspect-ratio: 2 / 1;      /* poměr původní fotky 1200x600 */
}

/* Šipky v kolečku */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background-color: rgba(0, 0, 0, 0.35);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.slider-arrow svg {
    width: 24px;
    height: 24px;
}

.slider-arrow:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.slider-arrow-prev {
    left: 16px;
}

.slider-arrow-next {
    right: 16px;
}
/* Footer */
.footer {
    background-color: var(--color-darker);
    color: var(--color-white);
    padding: 80px 0 20px;
}

.footer h3 {
    color: var(--color-white);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer p {
    color: #999;
    margin-bottom: 10px;
}

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

/* Otevírací doba v patičce */
.footer .hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer .hours-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    max-width: 280px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #999;
    font-size: 0.95rem;
}

.footer .hours-row:last-child {
    border-bottom: none;
}

.footer .hours-row span:last-child {
    color: var(--color-white);
    font-weight: 600;
    white-space: nowrap;
}

.footer .hours-row.is-closed span:last-child {
    color: #666;
    font-weight: 400;
}

.footer .footer-col a {
    color: #999;
    text-decoration: none;
    transition: var(--transition);
}

.footer .footer-col a:hover {
    color: var(--color-primary);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.9rem;
    color: #666;
}

/* ==========================================================================
   Fotogalerie
   ========================================================================== */
/* Sekce galerie má čistě bílé pozadí (odlišení od krémové sekce terasy nad ní).
   Selektor s .bg-light zaručí přednost i při pořadí pravidel. */
.gallery,
.gallery.bg-light {
    background-color: var(--color-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);   /* desktop: 5 fotek na řádek (3 řádky) */
    gap: 16px;
    margin-top: 48px;
}

.gallery-item {
    position: relative;
    display: block;
    padding: 0;
    border: none;
    background: var(--color-darker);
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease, filter 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
    filter: brightness(1.05);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0);
    transition: var(--transition);
}

.gallery-item:hover::after {
    background-color: rgba(140, 106, 72, 0.25);
}

.gallery-hint {
    display: none;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    margin-top: 20px;
}

/* ==========================================================================
   Lightbox (prohlížeč fotografií)
   ========================================================================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    background-color: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox-counter {
    margin-top: 16px;
    color: var(--color-white);
    font-size: 0.95rem;
    letter-spacing: 1px;
    opacity: 0.85;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background-color: rgba(0, 0, 0, 0.4);
    color: var(--color-white);
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.lightbox-close svg {
    width: 26px;
    height: 26px;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background-color: rgba(0, 0, 0, 0.4);
    color: var(--color-white);
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-arrow:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.lightbox-arrow svg {
    width: 28px;
    height: 28px;
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

body.lightbox-open {
    overflow: hidden;
}

/* Tablet: 3 fotky na řádek */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobil: horizontální pás, 5 viditelných, swipe/scroll pro ostatní */
@media (max-width: 600px) {
    .gallery-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 12px;
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .gallery-item {
        flex: 0 0 60%;          /* zhruba 1,6 fotky na šířku → 5 projdete scrollem */
        aspect-ratio: 4 / 3;
        scroll-snap-align: start;
    }

    .gallery-grid::-webkit-scrollbar {
        height: 6px;
    }

    .gallery-grid::-webkit-scrollbar-thumb {
        background-color: var(--color-primary);
        border-radius: 3px;
    }

    /* Scroll bar pro Firefox */
    .gallery-grid {
        scrollbar-color: var(--color-primary) transparent;
        scrollbar-width: thin;
    }

    .gallery-hint {
        display: block;
    }

    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }

    .lightbox-arrow {
        width: 44px;
        height: 44px;
    }

    .lightbox-arrow svg {
        width: 22px;
        height: 22px;
    }
}
/* ==========================================================================
   Hamburger menu + mobilní navigace (vysouvá se z pravé strany)
   ========================================================================== */

/* Tlačítko hamburgeru - na desktopu skryté */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 110;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-white);
    transition: var(--transition);
    border-radius: 2px;
}

/* Overlay pod menu */
.menu-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 150;
}

.menu-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* Panel mobilního menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: min(80vw, 340px);
    background-color: var(--color-darker);
    color: var(--color-white);
    z-index: 200;
    padding: 80px 32px 32px;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
}

.mobile-menu.is-open {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--color-white);
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition);
}

.mobile-menu-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-close svg {
    width: 28px;
    height: 28px;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.mobile-menu-nav a {
    color: var(--color-white);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.mobile-menu-nav a:hover {
    color: var(--color-primary);
    padding-left: 8px;
}

.mobile-menu-contact {
    margin-top: auto;
    padding-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-menu-contact a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
}

.mobile-menu-contact a:hover {
    color: var(--color-white);
}

/* Zamknout scroll stránky, když je menu otevřené */
body.menu-open {
    overflow: hidden;
}

/* --- Tablet a mobil: zobrazit hamburger, skrýt běžnou navigaci --- */
@media (max-width: 992px) {
    .nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}
/* ==========================================================================
   Responzivita (Media Queries)
   ========================================================================== */

@media (max-width: 992px) {
    .split-layout, .split-layout.reverse {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    /* V sloupcovém režimu nesmí mít obsah flex:1 (jinak se slider smrští na nulu) */
    .split-layout .text-content,
    .split-layout .image-content {
        flex: 0 0 auto;
        width: 100%;
    }

    .split-layout .text-content h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .grid-2 img:first-child {
        transform: translateY(0);
    }

    /* Slider musí mít vždy viditelnou výšku i na malých zařízeních */
    .slider {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 600px) {
    .slider-arrow {
        width: 38px;
        height: 38px;
    }
    .slider-arrow svg {
        width: 20px;
        height: 20px;
    }
    .slider-arrow-prev { left: 10px; }
    .slider-arrow-next { right: 10px; }
}
@media (max-width: 768px) {
    .section-padding {
        padding: 50px 0;
    }

    .hero {
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero p {
        margin: 0 auto 2rem;
    }
}
