/* =========================================
   Reset & Base
   ========================================= */
/* Self-hosted fonts */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('assets/fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EA0-1EF9, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('assets/fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Lobster';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/lobster-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EA0-1EF9, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Lobster';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/lobster-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

:root {
    --bg-color: #12090b;
    --bg-secondary: #1a0d11;
    --text-main: #ffffff;
    --text-secondary: #ebd09b;
    --border-color: #2e1a20;
    --accent-color: #c19b6c;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* =========================================
   Closure Banner
   ========================================= */
#closure-banner {
    background-color: #ff0033;
    /* Red thick banner as specified for closure */
    color: #ffffff;
    text-align: center;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 500;
    z-index: 9999;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    display: none;
}

#closure-banner p {
    margin: 0 auto;
    max-width: 800px;
    letter-spacing: 0.5px;
}

/* =========================================
   Typography
   ========================================= */
h1,
h2,
h3,
h4 {
    font-family: 'Lobster', cursive;
    /* User feedback: Lobster for headings */
    font-weight: 400;
    letter-spacing: 0.5px;
    color: var(--text-main);
    text-transform: none;
    /* Removed uppercase as Lobster script font usually looks bad in all caps */
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

/* =========================================
   Mobile Menu Icon
   ========================================= */
.menu-icon {
    display: none;
    position: fixed;
    top: 18px;
    left: 15px;
    z-index: 10001;
    width: 30px;
    height: 20px;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    mix-blend-mode: difference;
    /* MUST BE DIFFERENCE */
}

.menu-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.menu-icon.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-icon.active span:nth-child(2) {
    opacity: 0;
}

.menu-icon.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* =========================================
   Mobile Menu Sidebar
   ========================================= */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 10000;
    transition: left 0.3s ease;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mobile-menu-link {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* =========================================
   Desktop Navigation
   ========================================= */
.desktop-nav {
    display: block;
    background-color: var(--bg-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 35px 0 0 0;
}

.nav-logo-container {
    text-align: center;
    padding-bottom: 15px;
}

.nav-logo {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-main);
}

.nav-logo img {
    max-height: 65px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 50px;
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.nav-secondary {
    background-color: var(--bg-color);
    padding: 10px 0;
    font-size: 12px;
    text-align: center;
    border-bottom: 2px solid var(--text-main);
    margin-top: 15px;
}

.nav-secondary-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    color: var(--text-secondary);
}

.nav-secondary-item strong {
    color: var(--text-main);
    font-weight: 600;
    margin-right: 5px;
}

/* =========================================
   Main Content
   ========================================= */
.main-content {
    flex: 1;
}

/* =========================================
   Hero Section
   ========================================= */
.hero-section {
    height: 85vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(35, 0, 9, 0.7), rgba(35, 0, 9, 0.7)),
        url('assets/u-martinu-interier.webp') center/cover no-repeat;
    padding: 0 20px;
    color: var(--text-main);
    position: relative;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero-logo-horizontal {
    height: 15vw;
    max-height: 180px;
    min-height: 90px;
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;
}

.hero-pretitle {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.hero-title {
    font-family: 'Lobster', cursive;
    font-size: 65px;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: 2px;
    color: var(--text-main);
    line-height: 1.1;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 45px;
    font-weight: 300;
    letter-spacing: 0.5px;
    font-style: italic;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    /* Fix buttons wrapping on smaller screens */
    gap: 15px;
    align-items: center;
    justify-content: center;
}

/* =========================================
   CTA Button
   ========================================= */
.cta-button {
    display: inline-block;
    padding: 14px 38px;
    background: linear-gradient(135deg, var(--accent-color), #d1a555);
    color: #12090b;
    border: none;
    border-radius: 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    min-width: 250px;
    text-align: center;
}

.cta-button:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-3px);
    opacity: 1;
}

/* =========================================
   Sections
   ========================================= */
section {
    padding: 80px 20px;
}

.section-title {
    font-family: 'Lobster', cursive;
    font-size: 44px;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: none;
    color: var(--accent-color);
}

/* =========================================
   Daily Menu Section
   ========================================= */
.daily-menu-section {
    background-color: var(--bg-secondary);
}

/* =========================================
   Menu Grid – Layout
   ========================================= */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.category-title {
    font-size: 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    font-weight: 400;
    letter-spacing: 1px;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 22px;
    align-items: baseline;
}

.item-name {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--text-main);
}

.item-dots {
    flex: 1;
    border-bottom: 2px dotted var(--text-secondary);
    margin: 0 12px;
    opacity: 0.5;
}

.item-price {
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    /* AS REQUESTED: Ceny se nesmí zalamovat */
    color: var(--text-main);
}

/* =========================================
   Layout Utilities
   ========================================= */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.flex-container {
    display: flex;
    align-items: center;
    gap: 80px;
    text-align: left;
}

.flex-container.reverse {
    flex-direction: row-reverse;
}

.section-image {
    flex: 1;
}

.section-image img:not(.slide) {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    display: block;
}

/* =========================================
   Specialty Slideshow (Naše Menu)
   ========================================= */
.specialty-slideshow {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 0;
    padding-bottom: 100%;
    /* Responsive square */
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.specialty-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    border-radius: 0;
}

.specialty-slideshow .slide.active {
    opacity: 1;
    z-index: 2;
}

.section-text {
    flex: 1.2;
}

.section-text p {
    font-family: 'Inter', sans-serif;
    margin-bottom: 22px;
    font-size: 17px;
    color: var(--text-main);
    font-weight: 300;
    line-height: 1.8;
}

.left-align {
    text-align: left;
    margin-bottom: 30px;
}

.menu-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    /* Unified buttons */
    flex-wrap: wrap;
}

/* =========================================
   About Section
   ========================================= */
.about-section {
    background-color: var(--bg-color);
}

/* =========================================
   Menu Overview Section
   ========================================= */
.menu-overview-section {
    background-color: var(--bg-secondary);
}

/* =========================================
   Menu Tabs
   ========================================= */
.menu-tabs-container {
    max-width: 1000px;
    margin: 0 auto 40px auto;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 15px;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}

.menu-tabs-container.grabbing {
    cursor: grabbing;
}

.menu-tabs-container::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    flex: 0 0 auto;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--border-color);
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--accent-color);
    color: var(--bg-color);
    border-color: var(--accent-color);
}

.menu-category {
    display: none;
    animation: fadeIn 0.5s ease;
}

.menu-category.active-tab-content {
    display: block;
}

/* =========================================
   Reference Slider
   ========================================= */
.references-section {
    background-color: var(--bg-color);
}

.reference-slider-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    gap: 30px;
}

.reference-slider {
    flex: 1;
    overflow: hidden;
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
}

.reference-item {
    display: none;
    text-align: center;
    width: 100%;
    animation: fadeIn 0.5s ease;
}

.reference-item.active {
    display: block;
}

.ref-text {
    font-family: 'Lobster', cursive;
    font-size: 26px;
    color: var(--accent-color);
    margin-bottom: 15px;
    line-height: 1.6;
}

.ref-author {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.slider-btn {
    background: transparent;
    border: 1px solid var(--text-main);
    color: var(--text-main);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 24px;
    flex-shrink: 0;
}

.slider-btn:hover {
    background: var(--text-main);
    color: var(--bg-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   Reservation Section
   ========================================= */
.reservation-section {
    text-align: center;
    background-color: var(--bg-secondary);
    color: var(--text-main);
    padding: 80px 20px;
}

.reservation-section .section-title {
    color: var(--text-main);
    margin-bottom: 30px;
}

.reservation-content {
    max-width: 600px;
    margin: 0 auto;
}

.res-phone {
    font-family: 'Lobster', cursive;
    font-size: 52px;
    font-weight: 400;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.res-phone a {
    color: var(--text-main);
}

.res-phone a:hover {
    opacity: 0.7;
}

.res-address {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.res-address a {
    color: var(--text-secondary);
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background-color: var(--bg-color);
    color: var(--text-main);
    padding: 60px 20px;
    border-top: 2px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.footer-col h4,
.footer-col h3 {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    margin-bottom: 22px;
    letter-spacing: 2px;
    font-weight: 600;
}

.footer-col p {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    transition: opacity 0.3s ease;
}

.footer-social-link:hover {
    opacity: 0.7;
}

.footer-social-logo {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.footer-bottom {
    margin-top: 50px;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

/* =========================================
   Menu Page Specific
   ========================================= */
.menu-page-section {
    padding: 80px 20px;
    min-height: 60vh;
}

/* =========================================
   Contact Page Specific
   ========================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.map-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.info-card {
    background-color: var(--bg-secondary);
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.info-card h3 {
    font-family: 'Lobster', cursive;
    font-size: 26px;
    margin-bottom: 18px;
    color: var(--accent-color);
    letter-spacing: 1.5px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.info-card p {
    font-family: 'Inter', sans-serif;
    margin-bottom: 12px;
    font-size: 16px;
    color: var(--text-secondary);
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 768px) {
    .menu-icon {
        display: flex;
    }

    .desktop-nav {
        display: none;
    }

    .reference-slider-container {
        gap: 10px;
        padding: 0 5px;
    }

    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .ref-text {
        font-size: 20px;
    }

    .hero-logo-horizontal {
        min-height: 130px;
        height: 25vw;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-pretitle {
        font-size: 12px;
    }

    .hero-section {
        height: auto;
        min-height: auto;
        padding: 100px 20px 80px;
    }

    .hero-buttons .cta-button {
        min-width: 100%;
        /* Make unified width on mobile */
    }

    .menu-grid {
        grid-template-columns: 1fr;
        max-width: 90%;
        /* AS REQUESTED: Ceny nebudou přetékat - limit wrapper */
        margin-left: auto;
        margin-right: auto;
    }

    .flex-container,
    .flex-container.reverse {
        flex-direction: column;
        gap: 40px;
    }

    .section-image {
        width: 100%;
        display: block;
    }

    .specialty-slideshow {
        width: 100%;
        max-width: 100%;
        padding-bottom: 100%;
        display: block;
        overflow: hidden;
    }

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

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

    .menu-buttons {
        justify-content: center;
    }

    .res-phone {
        font-size: 32px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .map-container {
        height: auto;
    }

    .section-title {
        font-size: 28px;
    }
}

/* =========================================
   Opening Status Bar
   ========================================= */
#opening-status-bar {
    width: 100%;
    padding: 10px 20px;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    z-index: 9998;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

#opening-status-bar.desktop-inline {
    width: auto;
    padding: 0;
    border-bottom: none;
    display: flex;
    align-items: center;
}

#opening-status-bar.status-open {
    background: var(--bg-secondary);
    color: var(--text-main);
}

#opening-status-bar.desktop-inline.status-open {
    background: transparent;
    color: inherit;
}

#opening-status-bar.status-closed {
    background: #000000;
    color: #ffffff;
    border-bottom: none;
}

#opening-status-bar.desktop-inline.status-closed {
    background: transparent;
}

.status-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

#opening-status-bar.desktop-inline .status-bar-inner {
    justify-content: flex-start;
}

.status-badge {
    font-weight: 600;
    padding: 4px 10px;
    /* AS REQUESTED */
    border-radius: 30px;
    /* AS REQUESTED */
    background: var(--text-main);
    color: var(--bg-color);
}

#opening-status-bar.status-closed .status-badge {
    background: #ff0033;
    color: #fff;
}

.status-hours {
    font-weight: 600;
}

/* --- Secondary Nav Inheritance (Desktop Inline) --- */
#opening-status-bar.desktop-inline {
    /* AS REQUESTED: absolutely inherit */
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    letter-spacing: inherit !important;
    text-transform: inherit !important;
}

#opening-status-bar.desktop-inline .status-hours {
    font-weight: inherit !important;
    color: inherit !important;
}

/* --- Mobile Status Bar --- */
@media (max-width: 768px) {
    #opening-status-bar {
        font-size: 12px !important;
        padding: 12px 45px !important;
    }

    .status-badge {
        font-size: 11px !important;
        padding: 3px 8px !important;
    }
}

/* =========================================
   Info Banner Pop-up
   ========================================= */
.banner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    /* Slightly transparent background */
    z-index: 10002;
    /* AS REQUESTED: spans over everything */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.banner-overlay.fade-out {
    opacity: 0;
}

.banner-popup-content {
    background: var(--bg-color);
    position: relative;
    max-width: 500px;
    width: 100%;
    border: 2px solid var(--text-main);
    /* Elegant border */
    padding: 50px 40px 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    /* AS REQUESTED */
    border-radius: 4px;
}

@keyframes popIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.banner-popup-content h2 {
    font-family: 'Playfair Display', serif;
    color: var(--text-main);
    margin-bottom: 20px;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    text-transform: none;
}

.banner-popup-content p {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.banner-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--text-main);
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.banner-close-btn:hover {
    transform: scale(1.1);
    opacity: 0.7;
}