/* GLOBAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Playfair Display', serif;
  line-height: 1.6;
  color: #111;
}

/* NAVBAR */
nav {
  display: flex;
  justify-content: center;  /* wyśrodkowanie całego kontenera */
  align-items: center;
  gap: 60px;                /* odstęp między logo a menu */
  padding: 10px 0;
  background-color: #fff; 
  position: sticky;
  top: 0;
  z-index: 10;
}

nav .logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #166534;
}

nav .nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav .nav-links a {
  text-decoration: none;
  color: #166534;
  font-weight: 600;
  transition: color 0.3s;
}

nav .nav-links a:hover {
  color: #22c55e;
}

/* HEADER / SLIDER */
header {
  width: 100vw;
  height: 50vh;
  position: relative;
  overflow: hidden;
}

.slides {
  display: flex;
  width: 400%;
  height: 50%;
  transition: transform 0.6s ease;
}

.slide {
  width: 100vw;
  height: 50vh;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}

.slider-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 95%;
  text-align: center;
  color: #fff;
  text-shadow: 1px 1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000;
  z-index: 2;
}

.slider-text h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  margin: 0 0 10px 0;
  line-height: 1.1;
}

.slider-text p {
  font-size: clamp(1rem, 2.5vw, 1.8rem);
  margin: 0;
}

/* Slider buttons */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.3);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 3;
}

.prev { left: 10px; }
.next { right: 10px; }

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.5);
}

/* SEKCJE */
section {
  min-height: 20vh;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  color: #166534
}



/* Overlay dla czytelności tekstu */
section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
}

/* FADE-IN ANIMACJA */
.fade-section {
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* FOOTER */
footer {
  background: #166534;
  color: #d1fae5;
  text-align: center;
  padding: 20px 40px;
}

.logo {
  font-family: 'Pacifico', cursive;
  font-size: 1.8rem; /* większy i bardziej wyrazisty */
  font-weight: normal; /* Pacifico nie potrzebuje bold */
  color: #16a34a; /* zielony */
  text-decoration: none;
  transition: color 0.3s;
}

.logo:hover {
  color: #22c55e; /* jaśniejszy zielony po hover */
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 kolumny */
  grid-auto-rows: 300px;                 /* wysokość wiersza – można zmieniać */
  gap: 20px;                             /* odstęp między zdjęciami */
  margin-top: 20px;
}

.grid-item {
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

.grid-item:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

/* Responsywność – 2 kolumny na tabletach */
@media screen and (max-width: 900px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsywność – 1 kolumna na telefonach */
@media screen and (max-width: 600px) {
  .grid-container {
    grid-template-columns: 1fr;
  }
  .grid-item {
    grid-auto-rows: 180px;
  }
}