/* Reset i ogólne ustawienia */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f8f6;
  color: #333;
  line-height: 1.6;
}

/* Nagłówek */
header {
  background-color: #6b4c2f;
  color: white;
  padding: 2rem 1rem;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
}

header p {
  margin-top: 0.5rem;
  font-size: 1.2rem;
}

/* Pasek nawigacyjny */
nav {
  background-color: #3b2f1c;
  display: flex;
  justify-content: center;
  overflow-x: auto;
  white-space: nowrap;
  padding: 10px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav a {
  color: #fff;
  text-decoration: none;
  padding: 10px 15px;
  margin: 0 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: 5px;
}

nav a:hover,
nav a.active {
  background-color: #5b4529;
}

/* Sekcje */
section {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: auto;
}

/* Galeria zdjęć */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.gallery img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.02);
  cursor: pointer;
}

/* Listy */
ul {
  padding-left: 1.2rem;
}

/* Kontakt i mapa */
.contact iframe {
  width: 100%;
  height: 300px;
  border: none;
  margin-top: 1rem;
}

/* Stopka */
footer {
  text-align: center;
  background-color: #6b4c2f;
  color: white;
  padding: 1rem;
  font-size: 0.9rem;
}

/* Responsywność */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.8rem;
  }

  header p {
    font-size: 1rem;
  }

  .gallery {
    grid-template-columns: 1fr;
  }
}

/* Dodatkowe style responsywne dla mniejszych ekranów */
@media (max-width: 480px) {
  nav {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  nav a {
    width: auto;
    flex-shrink: 0;
    margin: 0 5px;
    padding: 10px 10px;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  section {
    padding: 1.5rem 1rem;
  }

  .contact iframe {
    height: 200px;
  }
}

/* Styl zmniejszonego paska menu po scrollowaniu */
nav.nav-shrink {
  padding: 5px 10px;
  transition: padding 0.3s ease;
}
