:root {
  --text-black: #000000;
  --text-yellow: #f5f0e0;
  --text-white: #ffffff;
  --bg-brown: #643c37;
  --bg-yellow: #f5f0e0;
  --bg-white: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  list-style: none;
  text-decoration: none;
}

/* Focus styles for keyboard accessibility (WCAG 2.4.7) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--bg-brown);
  outline-offset: 2px;
}

.header--bg a:focus-visible,
.header--bg button:focus-visible,
#contact a:focus-visible,
#contact button:focus-visible,
.footer a:focus-visible {
  outline-color: var(--text-yellow);
}

body {
  margin: 0;
  font-family: "Raleway", "Roboto", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only-focusable:focus {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: auto;
  height: auto;
  padding: 0.75rem 1.5rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--bg-brown);
  color: var(--text-yellow);
  font-size: 1rem;
  text-decoration: none;
}

.container {
  max-width: 1600px;
  width: 80%;
  margin: 0 auto;
}

.row {
  display: flex;
}

/* Header and Navigation */
.header--bg {
  background-color: var(--bg-brown);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  color: var(--text-yellow);
}

.nav__logo-img {
  object-fit: contain;
  width: 150px;
}

.nav__list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  transition: all 0.3s ease-in-out;
}

.nav__item {
  font-size: 1rem;
  font-weight: 400;
  margin-left: 1rem;
}

.nav__item a {
  text-decoration: none;
  color: var(--bg-yellow);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.nav__item a:hover,
.nav__item a.active {
  border-bottom-color: var(--text-yellow);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  position: relative;
  text-align: center;
  background: none;
  border: none;
  padding: 12px 7px;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--text-yellow);
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: 0.25s ease-in-out;
}

.hamburger span:nth-child(1) {
  top: 0px;
}
.hamburger span:nth-child(2) {
  top: 8px;
}
.hamburger span:nth-child(3) {
  top: 16px;
}

/* Content */
.content {
  max-width: 1600px;
  width: 80%;
  margin: 0 auto;
  padding-top: 3.125em;
  padding-bottom: 3.125em;
}

.content__row {
  display: flex;
  gap: 2rem;
}

.content__row + .content__row {
  margin-top: 1rem;
}

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

.content h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 600;
}

#contact>div>h2 {
  color: var(--text-yellow);
}

.content p {
  margin: auto 0;
  font-size: 1rem;
}

/* About Section */
.about__row {
  display: flex;
  gap: 3rem;
  flex-direction: row;
    justify-content: center;
    align-content: center;
    flex-wrap: nowrap;
}

.about__img {
    border-radius: 0.75rem;
  max-width: 300px;
  max-height: 700px;
  object-fit: cover;
}

.about__text {
  max-width: 500px;
  align-self: center;
  line-height: 1.7;
}

.about__text p {
  margin-bottom: 1em;
}

.about__text p:last-child {
  margin-bottom: 0;
}

/* Reference Section */
.ref__row {
  display: flex;
  justify-content: space-between;
  gap: 2em;
}

.ref {
  width: 100%;
}

.ref h4 {
  font-size: 1.5rem;
  font-weight: 200;
  margin-bottom: 0.25em;
  margin-left: 0.5em;
}

.ref q {
  font-style: italic;
  font-size: 1rem;
  max-width: 500px;
}

/* Card Section */
.card__wrapper {
  display: flex;
  justify-content: center;
  gap: 5rem;
}

.card {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease-out;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: scale(1.02);
}

.card__img {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  background: rgb(0, 0, 0);
  border-radius: 0.75rem 0.75rem 0 0;
}

.card__img img {
  position: absolute;
  opacity: 0.8;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.card__img h2 {
  color: var(--text-white);
  font-weight: 200;
  position: relative;
  top: 250px;
  left: 0%;
  z-index: 1;
  text-align: left;
  padding-left: 1rem;
}

.card__content {
  padding: 1.25rem;
  background-color: var(--bg-white);
  border-radius: 0 0 0.75rem 0.75rem;
  width: 100%;
  flex: 1;
}

.card__content h4 {
  font-weight: 500;
  margin-bottom: 0.25em;
}

.card__content li {
  color: gray;
  font-weight: 200;
  font-size: 1rem;
  margin-bottom: 0.25em;
}

.card__content p {
  margin-top: .75em;
}

#contact {
  background-color: #643c37;
}

.form__honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.contact__form {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 80%;
  max-width: 800px;
  margin: 0 auto;
}

.form__left,
.form__right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact__form label {
  font-size: 0.875rem;
  color: var(--text-yellow);
  margin-bottom: -0.5rem;
}

.form__left input,
.form__right textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  background-color: #f5f0e0;
  font-family: inherit;
}

.form__right textarea {
  height: 100%;
  min-height: 180px;
  resize: vertical;
}

.form__left input:focus,
.form__right textarea:focus {
  outline: none;
  border: 2px solid var(--bg-brown);
  box-shadow: 0 0 0 3px rgba(100, 60, 55, 0.2);
}

.contact__form button {
  width: 100%;
  padding: 12px 24px;
  background-color: #000000;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background-color 0.3s;
}

.contact__form button:hover {
  background-color: #333;
}

@media (max-width: 768px) {
  .contact__form {
    flex-direction: column;
  }
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.parallax-container {
  overflow: hidden;
  position: relative;
}

.about__img {
  width: 100%;
  height: auto;
}

/* Responsive Design */
@media screen and (max-width: 1366px) {
  .container {
    width: 95%;
  }

  

  .ref__row {
    flex-direction: row;
    justify-content: space-between;
  }

  .ref {
    width: 48%;
  }

  .card__wrapper {
    gap: 0;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .card {
    width: 48%;
    margin-bottom: 2rem;
  }

  .card__content {
    width: 100%;
  }
}

@media screen and (max-width: 1023px) {
  .container {
    width: 90%;
  }

  .header {
    flex-direction: column;
    align-items: center;
  }

  .nav__logo {
    margin-bottom: 1rem;
  }

  .nav__list {
    justify-content: center;
  }

  .about__row {
    gap: 1rem;
    flex-direction: column;
    align-items: center;
  }

  .about__img {
    max-width: 100%;
    margin-bottom: 1rem;
  }

  .ref__row {
    flex-direction: column;
  }

  .ref {
    width: 100%;
    margin-bottom: 2rem;
  }

  .card__wrapper {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 100%;
    max-width: 400px;
    margin-bottom: 2rem;
  }

  .card__content {
    width: inherit;
  }
}

@media screen and (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav__list {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-brown);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out,
      padding 0.3s ease-out;
  }

  .nav__list.show {
    max-height: 500px; /* Adjust this value based on your content */
    opacity: 1;
    padding: 1rem 0;
  }

  .nav__item {
    margin: 0.5rem 0;
    text-align: center;
    width: 100%;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .nav__list.show .nav__item {
    opacity: 1;
    transform: translateY(0);
  }

  .nav__item a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-yellow);
    font-size: 1.2rem;
  }

  .hamburger.open span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
  }

  .hamburger.open span:nth-child(2) {
    opacity: 0;
    left: -60px;
  }

  .hamburger.open span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
  }
}

@media screen and (max-width: 767px) {
  .nav__list {
    flex-direction: column;
    align-items: center;
  }

  .nav__item {
    margin: 0.5rem 0;
  }

  .about__text {
    text-align: left;
  }

  .ref q {
    font-size: 0.9rem;
  }

  .card__img h2 {
    font-size: 1.5rem;
  }
}

/* Sticky Header */
.sticky {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.sticky + main {
  padding-top: 80px;
}
.hamburger {
  z-index: 1000;
  position: relative;
}

.nav__list.show {
  z-index: 999;
  position: absolute;
  top: 100%; 
  left: 0;
  right: 0;
  background-color: var(--bg-brown); 
}

header.sticky .nav__list.show {
  position: fixed;
  top: 60px;
}

/* Footer */
.footer {
  background-color: #333;
  color: #fff;
  padding: 60px 0 30px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer__wrapper {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 40px;
}

.footer__column {
  flex: 1;
  padding: 0 20px;
}

.footer__heading {
  color: #fff;
  margin-bottom: 1rem;
}

.footer__text {
  margin-bottom: 0.5rem;
}

.footer__bold {
  font-weight: 600;
}

.footer__list {
  list-style-type: none;
  padding: 0;
}

.footer__list-item {
  margin-bottom: 0.5rem;
}

.footer__link {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__link:hover {
  color: #fff;
}

.footer__logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer__logo-img {
  max-width: 150px;
  height: auto;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
}

.footer__bottom > div {
  width: 33%;
}

.footer__copyright {
  font-size: 0.9rem;
}

.footer__social {
  display: flex;
  justify-content: end;
}

.footer__social-link {
  margin-left: 15px;
  color: #ddd;
  transition: color 0.2s ease;
}

.footer__social-link:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .footer__wrapper {
    flex-direction: column;
    align-items: center;
  }

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

  .footer__logo {
    order: -1;
    margin-bottom: 30px;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer__bottom > div {
    width: 100%;
  }

  .footer__social {
    margin-top: 20px;
    justify-content: center;
  }
}

.footer__social-link:hover {
  color: #fff; /* Bílá barva při najetí myší */
}

.footer__copyright {
  color: #bbb; /* Světle šedá barva pro copyright text */
}

  .slider-container {
    width: 100%;
    min-height: 500px;
    position: relative;
    overflow: hidden;
    height: 80%;
  }

  .swiper-container {
    width: 100%;
    height: 100%;
    height: 70vh;
  }

  .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    position: relative;
  }

  .slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-white);
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
  }

  .slide-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .slide-content p {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .slide-button {
    background-color: var(--bg-yellow);
    color: var(--bg-brown);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: bold;
  }

  .slide-button:hover {
    background-color: var(--bg-brown);
    color: var(--bg-yellow);
  }

  .swiper-pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
  }

  .swiper-button-next,
  .swiper-button-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--bg-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
  }

  .swiper-button-next {
    margin-right: 20px;
  }

  .swiper-button-prev {
    margin-left: 20px;
  }

  .swiper-pagination-bullet-active {
    background: var(--bg-white) !important;
  }

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

  .swiper-button-next, .swiper-button-prev {
    color: var(--bg-white) !important;
    background: none;
  }

@media (max-width: 768px) {
  .slide-content h2 {
    font-size: 1.5rem;
  }

  .slide-content p {
    font-size: 0.875rem;
  }

  .swiper-container {
    height: 50vh;
  }
}

/* ===========================
   Contact Form Privacy Notice
   =========================== */
.form__privacy-notice {
  font-size: 0.8rem;
  color: var(--text-yellow);
  width: 100%;
  text-align: center;
  margin-top: 0.5rem;
}

.form__privacy-notice a {
  color: var(--text-yellow);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.form__privacy-notice a:hover {
  color: var(--text-white);
}

/* ===========================
   Subpage Header
   =========================== */
.subpage-header {
  background: var(--bg-brown);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.subpage-header a {
  color: var(--text-yellow);
  text-decoration: none;
  transition: color 0.3s ease;
}

.subpage-header a:hover {
  color: var(--text-white);
}

.subpage-header__logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.subpage-header__back {
  font-size: 0.95rem;
  font-weight: 500;
}

/* ===========================
   Privacy Policy Page
   =========================== */
.privacy-policy {
  max-width: 800px;
  width: 90%;
  margin: 0 auto;
  padding: 3rem 0 4rem;
  color: var(--text-black);
  line-height: 1.8;
}

.privacy-policy h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: left;
}

.privacy-policy h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  text-align: left;
  color: var(--bg-brown);
}

.privacy-policy p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.privacy-policy li {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.privacy-policy ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.privacy-policy ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.privacy-policy a {
  color: var(--bg-brown);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.privacy-policy a:hover {
  color: #3a2220;
}

/* Privacy Policy Table */
.privacy-policy table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.privacy-policy th,
.privacy-policy td {
  border: 1px solid #ccc;
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
}

.privacy-policy th {
  background-color: var(--bg-yellow);
  font-weight: 600;
}

.privacy-policy tr:nth-child(even) {
  background-color: #fafafa;
}

/* Privacy Policy Responsive */
@media (max-width: 768px) {
  .subpage-header {
    padding: 0.75rem 1rem;
  }

  .subpage-header__logo img {
    height: 40px;
  }

  .subpage-header__back {
    font-size: 0.85rem;
  }

  .privacy-policy {
    padding: 2rem 0 3rem;
  }

  .privacy-policy h1 {
    font-size: 1.5rem;
  }

  .privacy-policy h2 {
    font-size: 1.15rem;
  }

  .privacy-policy table {
    font-size: 0.8rem;
  }

  .privacy-policy th,
  .privacy-policy td {
    padding: 0.5rem;
  }

  /* Responsive table: stack on very small screens */
  .privacy-policy table,
  .privacy-policy thead,
  .privacy-policy tbody,
  .privacy-policy th,
  .privacy-policy td,
  .privacy-policy tr {
    display: block;
  }

  .privacy-policy thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }

  .privacy-policy tr {
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    overflow: hidden;
  }

  .privacy-policy td {
    border: none;
    border-bottom: 1px solid #eee;
    padding: 0.5rem 0.75rem;
  }

  .privacy-policy td:last-child {
    border-bottom: none;
  }

  .privacy-policy td::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--bg-brown);
    margin-bottom: 0.25rem;
  }
}

@media (max-width: 767px) {
  .privacy-policy {
    width: 95%;
  }
}
