:root {
  --clr-bg: #FAF7F3;             /* základní pozadí */
  --clr-text: #001114;           /* základní text */
  --clr-highlight: #005772;      /* zvýrazňující barva (tlačítka, linky) */
  --clr-hover: #003953;          /* hover barva pro tlačítka */
  --clr-box: #f2f2ed;           /* světlejší boxy (ceník, galerie) */
  --clr-hero-overlay: #00222a66; /* poloprůhledná vrstva */
  --clr-btn-text: #ffffff;       /* barva textu na tlačítku */
  --clr-blink: #00CC88;          /* zelená blikající tečka */
  --clr-white: #fff;            /* bílá */
}

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

::selection {
  background-color: var(--clr-highlight);
  color: #fff; 
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  font-size: 17px;
  scroll-behavior: smooth;
  text-align: center;
}

a {
  text-decoration: none;
  color: inherit;
}

.active-link {
  color: var(--clr-highlight) !important;
  font-weight: 600;
}

header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 999;
  background-color: rgba(250, 247, 243, 0.7); /* Můžete nahradit i touto variantou: background-color: var(--clr-bg); s menší průhledností */
  backdrop-filter: blur(4px);
  padding: 0.8rem 0;
  transition: padding 0.3s ease;
  text-align: left;
}

header.scrolled {
  padding: 1.2rem 0;
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

.logo h2 {
  font-weight: 600;
  color: var(--clr-highlight);
  font-size: 1.5rem;
}

nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

nav ul li {
  position: relative;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  transition: background-color 0.3s;
}

nav ul li:hover {
  background-color: var(--clr-box);
}

.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--clr-text);
  border-radius: 2px;
}

@media (max-width: 768px) {
  nav ul {
    position: absolute;
    top: 60px;
    right: 0;
    background-color: var(--clr-bg);
    flex-direction: column;
    gap: 0;
    width: 160px;
    border-radius: 8px;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
  }
  nav ul li {
    border-bottom: 1px solid var(--clr-highlight);
    padding: 0.8rem 1rem;
  }
  .hamburger {
    display: flex;
    padding-left: 35%;
  }
  nav ul.open {
    max-height: 300px;
  }
}

.hero {
  width: 100%;
  height: 100vh;
  background: url('hero.webp') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  color: var(--clr-white);
  text-align: left;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--clr-hero-overlay);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin-left: 3rem;
  animation: fadeDown 1.5s ease forwards;
  opacity: 0;
  transform: translateY(-20px);
}

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

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  font-weight: 300;
}

.btn-cta {
  padding: 0.9rem 1.8rem;
  background-color: var(--clr-highlight);
  color: var(--clr-btn-text);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s;
  text-align: center;
  font-size: 1.1rem;
}

.btn-cta:hover {
  background-color: var(--clr-hover);
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

section {
  padding: 3rem 0;
}

section h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s forwards;
  color: var(--clr-highlight);
}

.section-subtitle {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1.2s forwards;
  animation-delay: 0.2s;
}

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

.about-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.about-photo {
  position: relative;
  width: 600px;
  max-width: 100%;
  border-radius: 8px;
  overflow: hidden;
  margin: 0 auto;
}

.about-photo img {
  width: 100%;
  display: block;
  border-radius: 8px;
}

.about-photo img {
  transition: transform 0.3s ease; 
}

.about-photo img:hover {
  transform: scale(1.10);
}

.about-photo:hover {
  cursor: grab;
}


.photo-blur {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 35%;
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0, 0, 0, 0.477));
}

.name-box {
  position: absolute;
  left: 1rem;
  bottom: 0.5rem;
  text-align: left;
  color: var(--clr-white);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.name-box h3 {
  margin-bottom: 0.2rem;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: -2%;
}

.name-box p {
  font-size: 1.4rem;
  font-weight: 300;
  margin-bottom: 2%;
}

.about-text {
  max-width: 400px;
  margin: 0 auto;
}

.about-text h3 {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--clr-highlight);
}

.about-text p {
  margin: 1rem 0;
}

.order-button {
  padding: 0.8rem 1.5rem;
  background-color: var(--clr-highlight);
  color: var(--clr-btn-text);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.order-button:hover {
  background-color: var(--clr-hover);
}

.live-status {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--clr-blink);
  box-shadow: 0 0 0 0 rgba(0,204,136, 0.7);
  animation: pulse 2s infinite;
}


@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0,204,136, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(0,204,136, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0,204,136, 0);
  }
}

.price-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.price-card {
  /* width: 300px;
  height: 150px;  */
  width: 250px;
  height: 150px;
  display: flex;
  align-items: center;
  background-color: var(--clr-box);
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: left;
  box-sizing: border-box; /* zajistí, že padding se počítá do celkové velikosti */
  overflow: hidden;       /* pokud by text přesahoval, skryjeme */
}

.price-card:hover {
  border-color: var(--clr-highlight);
  cursor: grab;
}

.price-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.price-content h3 {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.2;
}

.price-content .price {
  margin-top: 0.4rem;
  color: var(--clr-highlight);
  font-size: 1.2rem;
  font-weight: 600;
}

.no-gap-bottom {
  margin-bottom: 0;
  padding-bottom: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 sloupce */
  gap: 1rem; 
  max-width: 1200px;
  margin: 0 auto;
}


.gallery-grid img {
  width: 100%;
  height: 220px;       /* pevná výška pro jednotný vzhled */
  object-fit: cover;   /* oříznutí místo deformace */
  border-radius: 8px;  /* případně lehké zaoblení rohů */
}

.cta-banner {
  width: 100%;
  margin: 0 auto;
  background-color: var(--clr-highlight);
  color: var(--clr-btn-text);
  padding: 2rem 2rem;
  display: flex;
  align-items: flex-start;   /* zarovnání horních okrajů */
  justify-content: space-between;
  gap: 1rem;
}

.cta-inside {
  display: flex;
  margin: 0 auto;
  gap: 1rem;
    /*width: 50%;*/
}

.opening {
  flex: 0 0 50%;
  text-align: left;
}

.cta-banner h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.cta-banner p {
  margin-bottom: 1rem;
}

.cta-btn {
  background-color: var(--clr-btn-text);
  color: var(--clr-text);
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
}

.cta-btn:hover {
  background-color: var(--clr-box);
}

.opening-table, .opening-table th, .opening-table td {
  text-align: left;
}

footer {
  padding: 2rem 1rem;
  background-color: var(--clr-bg);
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  margin-top: 0;
}

@media (max-width: 768px) {
  header {
    text-align: left;
  }
  .hero-content {
    margin-left: 1.5rem;
  }
  .hero h1 {
    font-size: 2.4rem;
  }
  .hero p {
    font-size: 1.1rem;
  }
  .about-wrapper {
    flex-direction: column;
  }
  .about-text {
    margin-bottom: 1.5rem;
  }
  .cta-banner {
    flex-direction: column;
    align-items: center;
    padding: 2rem 2rem;
    width: 100%;
  }
  .opening, .mapouter {
    flex: 1 1 100%;
    max-width: 100%;
    text-align: center;
  }
  .cta-inside {
    display: inline;
    width: 100%;
  }
  .opening-table, .opening-table th, .opening-table td {
    text-align: left;
    margin: 0 auto;
  }
}
