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

body {
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  color: var(--text-color);
}

/* BARVY */
:root {
  --primary-color: #674337;
  --secondary-color: #3F302D;
  --text-color: #737373;
  --text-color-white: #ffffff;
}

/* HEADER */
header {
  display: flex;
  justify-content: center;
  padding: 25px 0;
}

nav ul {
  display: flex;
  gap: 35px;
  list-style: none;
  padding: 12px 35px;
  border-radius: 999px;
  background: var(--primary-color);
  font-weight: bold;
}

nav a {
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.3px;
  color: var(--text-color-white);
}

nav .active {
  color: var(--secondary-color);
}

/* HERO */
.hero {
  width: 100%;
  height: 420px;
  background-image: url("./images/interier_kavarny_orizle.jpg");
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
}

/* PRODUCTS */

.products {
  max-width: 1200px;
  margin: 70px auto 100px;
  padding: 0 20px;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}

.product-card {
  background: white;
  border-radius: 14px;
  padding: 30px;
  border: 1px solid #e7e7e7;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);

  transition: 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-card img {
  width: 100%;
  max-width: 180px;
  display: block;
  margin: 0 auto 25px;
}

.product-card h3 {
  color: var(--secondary-color);
  font-size: 24px;
  margin-bottom: 12px;
  line-height: 1.2;
}

.product-card p {
  color: var(--text-color);
  font-size: 16px;
  margin-bottom: 22px;
}

.product-card a {
  text-decoration: none;
  color: var(--secondary-color);
  font-weight: bold;
  font-size: 15px;
}

/* MOBILE CAROUSEL */

@media (max-width: 768px) {

  .products {
    display: flex;
    overflow-x: auto;
    gap: 20px;

    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;

    padding-bottom: 10px;
  }

  .products::-webkit-scrollbar {
    display: none;
  }

  .product-card {
    min-width: 100%;
    scroll-snap-align: center;
  }

  .product-card h3 {
    font-size: 22px;
  }

}

/* TITLE */

.title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  max-width: 1100px;
  margin: 20px auto;
  padding: 0 20px;
}

/* OBRAZEK */
.title-image {
  flex: 1;
}

.title-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

/* TEXT */
.title-content {
  flex: 1;
}

.title h1 {
  font-size: 42px;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.title p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-color);
  max-width: 400px;
}


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

  .title p {
    max-width: 100%;
  }

  .title-image img {
    height: 250px;
  }
}

/* CONTACTS */
.contacts {
  display: flex;
  justify-content: center;
  gap: 80px;
  max-width: 1100px;
  margin: 80px auto 128px auto;
  padding: 0 20px;
}

.contact-box {
  flex: 1;
  max-width: 300px;
}

.contact-box h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--secondary-color);
  border-top: 1px solid #ccc;
  padding-top: 20px;
}

.contact-box p {
  font-size: 18px;
  color: var(--text-color);
}

/* ABOUT */

.about {
  max-width: 900px; /* užší jako na designu */
  margin: 90px auto 100px;
  padding: 0 20px;
}

.about h2 {
  font-size: 34px;
  margin-bottom: 25px;
  color: var(--secondary-color);
}

.about p {
  margin-bottom: 18px;
  font-size: 18px;
  line-height: 1.8;
}

/* GALLERY */

.gallery-section {
  max-width: 1200px;
  margin: 0 auto 120px;
  padding: 0 20px;
}

.gallery-slider {
  width: 100%;
}

.gallery-slider .swiper-wrapper {
  margin-bottom: 35px; /* místo pro scrollbar */
  align-items: stretch;
}

.gallery-slider .swiper-slide {
  border-radius: 18px;
  overflow: hidden;
  height: auto !important;
}

.gallery-slider img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  border-radius: 18px;
}

/* SCROLLBAR */

.gallery-slider .swiper-scrollbar {
  position: relative !important;
  margin-top: 20px;

  width: 100% !important;
  height: 6px !important;

  background: #ddd;
  border-radius: 999px;
}

.gallery-slider .swiper-scrollbar-drag {
  background: var(--primary-color);
  border-radius: 999px;
}

/* MOBILE */

@media (max-width: 768px) {

  .gallery-slider img {
    height: 280px;
  }

}

/* FOOTER */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 45px 60px;
  flex-wrap: wrap;
  gap: 30px;
  background: var(--primary-color);
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 30px; /* mezera mezi left a links */
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-color-white);
}

.footer-logo {
  width: 32px;
  height: 32px;
  object-fit: cover;
}

.footer-title {
  font-size: 20px;
  font-weight: bold;
}

.footer-links {
  display: flex;
  gap: 30px;
}

.footer-social {
  display: flex;
  gap: 30px;
}

.footer-links a {
  text-decoration: none;
  font-size: 13px;
  color: var(--secondary-color);
  font-weight: bold;
}

/* HOVER */
.footer-links a:hover {
  color: var(--text-color-white);
  transition: 0.2s ease;
  opacity: 1;
}

nav ul li a:hover {
  color: var(--secondary-color);
  transition: 0.2s ease;
  opacity: 1;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  header {
    padding: 20px 0;
  }

  nav ul {
    gap: 20px;
    padding: 10px 25px;
  }

  .hero {
    height: 260px;
  }

  .contacts {
  flex-direction: column;
  gap: 30px;
  }

  .about {
    max-width: 100%;
    margin: 60px auto;
  }

  .about h2 {
  font-size: 28px;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 25px;
  }

  .footer-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .footer-links,
  .footer-social {
    flex-direction: column;
    gap: 12px;
  }
}