:root {
  --body-color: #fdfaf6;             
  --nav-color: #ffe0b2;             
  --secondary-text-color: #ffffff;   
  --formbutton: #b3541e;             
  --text-color: #2d2d2d;            
  --small--distance: 1em;
  --medium--distance: 1.5em;
  --large--distance: 6em;
  --hover-color: #e46b15;           
  --footer-color: #ffe8cc;           
  --color-bg-box: #e5ded6;           
}



html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  color: var(--text-color);
  line-height: 1.5;
  background-color: var(--body-color);
}

#burger-container {
  width: auto;
  order: 2;
}

#carousel-section {
  position: relative;
  width: 100%;
  max-width: 1102px;
  margin: 50px auto;
  overflow: visible;
  border-radius: 15px;
}

/* ---------- COOKIE POPUP ---------- */

.cookie-banner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    max-width: 90%;
    width: 350px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    z-index: 99999;
}

.cookie-banner::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}

.cookie-content {
    text-align: center;
}

.cookie-buttons {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

#cookie-consent-banner.hidden {
    display: none !important;
}

#cookie-accept,
#cookie-decline {
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
}

#cookie-accept {
    background: #d4e4d5;
    color: rgb(0, 0, 0);
}

#cookie-decline {
    background: #d4e4d5;
    color: rgb(0, 0, 0);
}



#carousel {
  display: flex;
  scroll-behavior: smooth;
  overflow-x: auto;
  scrollbar-width: none;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.3);
  padding: 10px;
  align-items: stretch;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
#carousel::-webkit-scrollbar {
  display: none; 
}

#carousel #content {
  display: flex;
  gap: 1rem;
}
#carousel {
  scroll-snap-type: x mandatory;
}
#carousel img {
  min-width: 200px;
  border-radius: 10px;
  transition: transform 0.3s;
  width: 350px;
  height: 350px;
  object-fit: cover;
  scroll-snap-align: center;
}
#carousel img:hover {
  transform: scale(1.05);
}

#prev, #next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.6);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: background-color 0.3s;
}
#prev:hover, #next:hover {
  background-color: rgba(0,0,0,0.9);
}
#prev { left: 1rem; }
#next { right: 1rem; }

#prev svg, #next svg {
  width: 24px;
  height: 24px;
  fill: white;
}
.icons {
  display: flex;
  justify-content: center;
  gap: 1.2em;
  margin-top: 1em;
}

.text--bold {
  font-weight: bold;
}

.flex {
  display: flex;
}

.flex--column {
  flex-direction: column;
}

.sticky {
  position: sticky;
  top: 0;
  background-color: var(--nav-color);
  font-size: 1em;
  z-index: 9999;
}

#burger {
  display: none;
  background: none;
  background-color: var(--nav-color);
  border: none;
  font-size: 3em;
  color: var(--text-muted);
  vertical-align: top;
  cursor: pointer;
}

.items-center {
  align-items: center;
}

.just-center {
  justify-content: center;
}

.navigace {
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.3s;
}

.navigace--hover:hover {
  background-color: var(--hover-color);
}

.right {
  justify-content: flex-end;
}

.margin-left {
  margin-left: 1em;
}

.list {
  list-style: none;
  gap: 1.5em;
}

.left {
  margin-right: auto;
}

.margin-right {
  margin-right: 1em;
}

.logo {
  width: auto;
  height: 6vw;
}

header {
  background-image: url('bagr.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 6.25em 1.25em;
  text-align: center;
  height: 60vh;
  scroll-margin-top: 10em;
}

.header__hero-content__title {
  margin: 0 0 1rem;
}

.header__hero-content__subtitle {
  font-size: 2em;
  margin-bottom: 1em;
}

.header__hero-content__btn {
  color: var(--header-btn-color);
  font-weight: bold;
  font-size: 1.5em;
  letter-spacing: 1px;
  transition: background 0.3s, color 0.3s;
  text-align: center;
}

.button {
  padding: 0.75rem 1.5rem;
  border: 1px solid #2a3b5d;
  text-decoration: none;
}

.card--limited {
  max-width: 500px;
  font-size: 1.3em;
}

.card {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}
.text--center{
  text-align: center;
}

.center {
  justify-content: center;
  align-items: center;
}

.border {
  border: 2px solid black;
  padding: 0.8em 1em;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  min-width: 140px;
}

.about-container {
  gap: 8rem;
  text-align: left;
}

.margin--top--large {
  margin-top: var(--large--distance);
}

.margin--top--large-first {
  margin-top: 10em;
}

.margin--bottom--large {
  margin-bottom: var(--large--distance);
}

.icon--medium {
  font-size: 1.5em;
}

.grid {
  display: grid;
}

.grid--even {
  grid-template-columns: repeat(2, 1fr);
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  gap: 7em;
}

.flex--horizontal {
  flex-direction: column;
}

.margin--top--small {
  margin-top: var(--small--distance);
}

.flex--even-space__half__icon-container {
  gap: 1vw;
}

.flex--even-space__half__icon-container img {
  align-self: center;
  height: 2em;
  width: 3em;
}

.form--container {
  flex-direction: column;
  max-width: 500px;
  gap: 10px;
}
.gdpr-label {
    margin-top: 10px;
    text-align: center;
    gap: 5px;
    font-size: 14px;
}

.gdpr-label a {
    color: #0066cc;
    text-decoration: underline;
}

.gdpr-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.form--container__input {
  padding: 10px;
  border: none;
  background-color: var(--color-bg-box);
  color: var(--text-light);
}

.form--container__button {
  background-color: var(--formbutton);
  color: #fff;
  padding: 10px;
  border: none;
  cursor: pointer;
}

.form--container__button:hover {
  background-color: var(--hover-color);
}



.services {
  padding: 60px 20px;
}


.services p{
  text-align: left;
  margin: 0.8em;
}



.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}


.service-card {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.3);
  padding: 10px;
  align-items: stretch;
}

.image-placeholder {
  width: 100%;
  height: 12em;
}

.service-card h3 {
  text-align: left;
  font-weight: bold;
  margin: 0.8em;
  min-height: 3.2em;
  display: flex;
  align-items: flex-end;
}


.service-card p {
  line-height: 1.4;
}

.container {
  top: 40%;
  left: 10%;
  position: absolute;
  text-align: left;
  backdrop-filter: blur(4px);
  padding: 1em;
  border-radius: 25%;
}

.width-button {
  width: 5em;
  font-size: 2em;
}

.width-button:hover {
  background-color: var(--hover-color);
  color: var(--secondary-text-color);
}

.border:hover {
  background-color: var(--hover-color);
  color: var(--secondary-text-color);
}

h1 {
  font-size: 5.5em;
}

h2 {
  font-size: 2.5em;
}

.footer {
  background-color: var(--footer-color);
  padding: 1em;
}

#main-page-button {
  display: none;
}

section {
  scroll-margin-top: 10em;
}

@media screen and (max-width: 1200px) {
  .grid--even {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--medium--distance);
    justify-items: center;
    text-align: center;
  }

  .form--container__input {
    width: 35em;
  }

  .margin--top--large-first {
    margin-top: 5em;
  }
}

@media screen and (max-width: 860px) {
  .flex {
    flex-direction: column;
  }

  #main-nav {
    flex-direction: row;
    justify-content: space-between; /* burger vlevo, logo vpravo */
    align-items: center;
  }
  .left{
    margin-right: 0;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr); 
  }

  .about-container {
    gap: 0em;
  }

  .card--limited {
    max-width: 500px;
    font-size: 1em;
    margin-left: 1em;
    margin-right: 1em;
  }

  .border {
    border: none;
  }

  #burger-container {
    display: block;
    order: 1;
  }

  #burger {
    display: block;
  }

  #main-page-button {
    display: block;
  }

  .logo-container {
    display: flex;
    order: 2;
    margin-left: auto;
    justify-content: center;
    align-items: center;
  }

  #nav-list {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1em;
    width: 100%;
    background-color: var(--nav-color);
    padding: 1em 0;
  }

  #nav-list.active {
    display: flex;
  }

  header {
    background-image: none;
    padding: 6.25em 1.25em;
    text-align: center;
    height: 60vh;
    scroll-margin-top: 10em;
  }

  .container {
    top: none;
    left: none;
    position: static;
    text-align: center;
    backdrop-filter: blur(4px);
    padding: 1em;
    border-radius: 0%;
    margin: 1em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .logo{
    width: auto;
    height: 8vh;
  }
}




@media screen and (max-width: 500px) {
  #carousel img {
    width: 250px;
    height: 250px;
  }

  .flex {
    flex-direction: column;
  }
  .logo{
    width: auto;
    height: 10vh;
  }
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 90%;
  }

  .grid--even {
    display: flex;
    flex-direction: column;
  }

  .form--container__input {
    width: 80%;
    max-width: 30em;
    margin-left: auto;
    margin-right: auto;
    padding: 1em;
    box-sizing: border-box;
  }
  .form--container__button{
    width: 80%;
    max-width: 30em;
    margin-left: auto;
    margin-right: auto;
  }

  h1 {
    font-size: 3.5em;
  }

  .header__hero-content__subtitle {
    font-size: 1.5em;
    margin-bottom: 1em;
  }

  .width-button {
    width: 100%;
    max-width: 4em;
    font-size: 1.5em;
  }
}