:root {
    --button-color: #940000;
    --logo-size: 100px;
    --header-padding: 10px;
    --header-height: calc(var(--logo-size) + 2 * var(--header-padding));
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { 
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans';
    background: #fff;
    line-height: 1.6;
    color: #333;
    margin-top: var(--header-height);
}

header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255,255,255, 1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 100;
    padding: var(--header-padding);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: auto;
}

nav .logo {
    font-family: 'Open Sans';
    font-size: 1.8rem;
    font-weight: 700;
    cursor: pointer;
}

nav .logo img {
    height: var(--logo-size);
    width: auto;
    display: block;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #000;
    font-weight: 600;
    transition: color .3s;
}

nav ul li a:hover {
    color: var(--button-color);
}

nav ul li a.reserve-btn {
    padding: 10px 20px;
    background: var(--button-color);
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    transition: 0.3s;
}

nav ul li a.reserve-btn:hover {
    background: #eee;
    color: #000;
}

.hero {
    height: calc(100vh - var(--header-height));
    margin-top: 40px;
    background: url('fot.jpeg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
    padding: 0 !important;
}

.hero::after {
    content: '';
    position: absolute;
    top:0;
    left:0;
    right:0;
    bottom:0;
    background: rgba(0,0,0,0.4);
}

.hero .hero-content {
    letter-spacing: 5px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: 'Work Sans';
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
}

section {
    scroll-margin: var(--header-height);
}

.about, .menu, .gallery, .contact, .poledni-menu {
    text-align: center;
}

.about h2, .menu h2, .gallery h2, .contact h2 {
    font-family: 'Work Sans';
    font-size: 2.5rem;
    margin-bottom: 20px;
    margin-top: 40px;
}

.poledni-menu h2 {
    font-family: 'Work Sans';
    font-size: 2.5rem;
    margin-bottom: 20px;
    margin-top: calc(40px + var(--header-height));
}

.about p {
    max-width: 800px;
    margin: 0 auto;
}

.menu-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.menu-tabs .tab {
    padding: 10px 20px;
    border: none;
    background: #eee;
    color: #000000;
    cursor: pointer;
    font-weight: 600;
    border-radius: 6px;
    transition: 0.3s;
}

.menu-tabs .tab.active {
    background: var(--button-color);
    color: white;
}

.menu-list {
    display: none;
    max-width: 700px;
    margin: 0 auto;
}

.menu-list.active {
    display: block;
}

.menu-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.menu-row .dish {
    font-family: 'Open Sans';
    font-size: 1.1rem;
    text-align: left;
}

.menu-row .price {
    color: var(--button-color);
    font-weight: 600;
    text-align: right;
}

.price {
    white-space: nowrap;
}

.submenu {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0 40px 0;
}

.submenu .subtab {
    padding: 8px 18px;
    background: #eee;
    color: #000000;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.submenu .subtab.active {
    background: var(--button-color);
    color: white;
}

.submenu-drinks {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0 40px 0;
}

.submenu-drinks .subtab {
    padding: 8px 18px;
    background: #eee;
    color: #000000;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.submenu-drinks .subtab.active {
    background: var(--button-color);
    color: white;
}

.sublist {
    display: none;
}

.sublist.active {
    display: block;
}

.gallery-carousel {
    width: 100%;
    position: relative;
    overflow: hidden;
    margin: 0;
}

.gallery-track {
    width: 100vw !important;
    display: flex;
    gap: 0;
}

.gallery-track {
    animation: galleryScrollLeft 10s linear infinite;
}

@keyframes galleryScrollLeft {
    from { transform: translateX(0); }
    to   { transform: translateX(-100vw); }
}

.gallery-item {
    flex-shrink: 0;
    position: relative;
    width: 25vw;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
    /*mix-blend-mode: overlay;*/
}

.gallery-item:hover img {
    transform: scale(1.1);
    transition: 0.5s;
}

/* Gallery image titles */
.gallery-item {
    position: relative;
    text-align: center;
}

.gallery-item .img-title {
    margin-top: 8px;
    font-size: 14px;
    color: #444;
    font-weight: 600;
}

.big-contact-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-color);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
    margin-bottom: 40px;
}

.big-contact-button:hover {
    background: #eee;
    color: #000;
}

.contact-container {
    /*background: ;*/
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    padding-right: 5rem;
}

.contact-info p {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.contact-map {
    width: 100%;
    min-height: 350px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
} 

footer {
    margin-top: 80px;
    background: #f8f8f8;
    padding: 40px 0;
    text-align: center;
}

footer p {
    color: #777;
}

.reservation-container {
    max-width: 600px;
    margin: 60px auto;
    margin-top: calc(var(--header-height) + 60px) !important;
    padding: 30px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    font-family: 'Open Sans';
}

.reservation-container h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 28px;
    font-weight: 600;
}

.form-page {
    display: none;
}

.form-page.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

label {
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

input, select, textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}

textarea {
    resize: vertical;
    height: 100px;
}

.reservation-container button {
    width: 100%;
    padding: 14px;
    background: var(--button-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

button:hover {
    background: var(--button-color);
}

#mbcontent {
    width: 340px;
    margin: auto;
}

#popupgdpr h2 {
    margin-top: 25px;
}

#mbcontent #menubotsub {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  max-width: 520px;
  margin: 0 auto;
  padding: 6px 0;
}
#mbcontent #mbtext {
  width: 220px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 1rem;
}
#mbcontent #mbsubmit {
  flex: 0 0 auto;
  padding: 8px 14px;
  font-size: 0.95rem;
  border-radius: 8px;
  background: var(--button-color);
  color: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  cursor: pointer;
  box-sizing: border-box;
  align-self: stretch;
  height: auto;
  width: auto !important;
}
#mbcontent #menubotsub input[type="submit"],
#mbcontent #menubotsub button {
  width: auto !important;
}
#mbcontent #menubotsub input[type="checkbox"],
#mbcontent #mbgdprlabel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  vertical-align: middle;
}
#mbcontent #mbgdprlabel {
  margin: 0;
  cursor: pointer;
  font-weight: 600;
  color: #111;
}
#mbcontent #mbgdpr {
  width: 14px;
}
#mbcontent #menubotsub input[type="checkbox"] {
  margin-right: 6px;
}
#mbcontent #menubotsub .mb-gdpr-inline {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    nav ul {
        gap: 10px;
    }

    .contact-container {
        grid-template-columns: 1fr;
        padding-right: 0;
    }
    
    .contact-map {
        min-height: 250px;
    }

    .menu-tabs {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        margin: 20px 0 30px 0;
    }

    .submenu-drinks {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        margin: 20px 0 30px 0;
    }

    button:hover {
        background: none;
    }

    input[type="date"],
    input[type="time"],
    select {
        width: 100% !important;
        text-align: left;
        padding: 14px;
        min-width: 0 !important;
        color: #000;
        -webkit-appearance: none;
        appearance: none;
    }

    .gallery-item {
        width: 50vw;
    }

    .gallery-track {
        animation: galleryScrollLeft 10s linear infinite;
    }

    @keyframes galleryScrollLeft {
        from { transform: translateX(0); }
        to   { transform: translateX(-200vw); }
    }
}

/* HAMBURGER BUTTON */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: #333;
  border-radius: 3px;
  transition: 0.3s;
}

/* MOBILE MENU */
.mobile-menu {
  display: none;
  position: absolute;
  top: var(--header-height);
  right: 0;
  width: 100%;
  background: white;
  flex-direction: column;
  padding: 20px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 999;
  text-align: center;
}

.mobile-menu li {
  padding: 15px 25px;
  border-bottom: 1px solid #eee;
}

.mobile-menu li a {
  color: #333;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
}

/* ACTIVE MENU */
.mobile-menu.active {
  display: flex;
}

/* MOBILE ONLY */
@media (max-width: 768px) {
  nav ul { display: none; } /* hide desktop menu */

  .hamburger {
    display: flex;
  }
}

.lightbox-modal {
  display: none;
  position: fixed;
  top:0;
  left:0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  overflow: hidden;
}

.lightbox-img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
  transition: transform 0.3s;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 3rem;
  color: white;
  cursor: pointer;
  z-index: 1010;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1010;
  user-select: none;
}

.lightbox-arrow.left { left: 20px; }
.lightbox-arrow.right { right: 20px; }

.lightbox-caption {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.3rem;
    text-shadow: 0 0 15px rgba(0,0,0,0.8);
    padding: 8px 16px;
    z-index: 50;
    text-align: center;
}

@media (max-width: 768px) {
  .lightbox-img { max-width: 100%; max-height: 70%; }
  .lightbox-arrow { font-size: 2.5rem; }
}






