/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: #111;
  color: #fff;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; } 

/* GLOBALNE UTILITY */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem; 
  width: 100%;
}
/* --- HERO (Tło Obraz hero1.jpg z Ken Burns) --- */

#hero {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden; 
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    
    background-image: url('images/hero1.jpg'); 
    background-size: cover;
    background-position: center center;
    
    animation: kenburns 30s ease-in-out infinite alternate;
}

@keyframes kenburns {
    0% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1.0);
    }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hero-logo {
  width: 200px; 
  height: auto;
  margin-bottom: 1.5rem;
}

.hero-socials a,
.scroll-down,
.hero-language-switcher a,
.lang-separator {
  color: #fff !important;
}

.hero-socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.hero-socials a {
  font-size: 1.3rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.hero-socials a:hover {
  color: #aaa !important;
  transform: scale(1.1);
}

/* STRZAŁKA PRZEWIJANIA W DÓŁ */
.scroll-down {
  display: inline-block;
  font-size: 1.5rem;
  text-align: center;
  animation: bounce 2s infinite;
  transition: opacity 0.3s ease;
}

.scroll-down:hover {
  opacity: 0.7;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(6px);
  }
  60% {
    transform: translateY(3px);
  }
}

/* LANGUAGE SWITCHER */
.hero-language-switcher {
  position: absolute;
  top: 2rem; 
  right: 2rem;
  z-index: 50; 
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

.hero-language-switcher a {
  opacity: 0.8;
  transition: opacity 0.3s ease;
  padding: 0 5px;
}

.hero-language-switcher a:hover {
  opacity: 1;
}

.hero-language-switcher .lang-active {
  color: #ffffff;
  opacity: 1;
  border-bottom: 2px solid #ffffff;
}

.lang-separator {
  color: #fff;
  opacity: 0.5;
  margin: 0 5px;
}

/* --- ABOUT SECTION --- */
#about {
  background: url('images/about_bg.jpg') center/cover no-repeat fixed; 
  color: #ffffff; 
  padding: 0;
  position: relative;
  z-index: 1; 
  min-height: 40vh; 
  display: flex;
  align-items: center; 
}

#about::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.786); 
  z-index: -1; 
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem; 
  width: 100%; 
  text-align: left;
}

.about-text {
  line-height: 1.8;
  padding: 0;
}

.about-text h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem; 
  color: #fff;
}

.about-text p {
  margin-bottom: 1rem; 
  color: #f1f1f1;
  font-size: 1.05rem;
}

.about-text strong {
  color: #fff;
}


.about-buttons {
    display: flex;
    gap: 1rem; 
    margin-top: 2rem;
    flex-wrap: wrap; 
}

.about-btn {
  display: inline-block;
  background: #fff;
  color: #111;
  padding: 0.7rem 1.8rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px; 
  transition: all 0.3s ease; 
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-btn:hover {
  background: #fff;           
  color: #111;                
  transform: scale(1.03);     
}

@media (max-width: 768px) {
  .about-text h2 {
    font-size: 1.8rem;
  }
  .about-container {
    padding: 2rem 1rem; 
  }
  .about-buttons {
      justify-content: flex-start; 
  }
}
/* --- REVIEWS SECTION --- */

.about-reviews-wrapper {
    text-align: center;
    padding-top: 3rem; 
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2); 
}

.reviews-heading {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #fff;
    text-align: center;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    text-align: left;
}

.review-box {
    background-color: rgba(50, 50, 50, 0.706); 
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-text {
    font-style: italic;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    color: #f1f1f1; 
}

.review-author {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-name {
    font-weight: 700;
    color: #fff;
}

.review-stars {
    color: gold; 
    font-size: 1.2rem;
}

.review-cta {
  color: #fff;
  font-weight: 600;
  transition: color 0.3s;
}

.review-cta:hover {
  color: #ddd;
}

@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}
/* --- OFERTA SECTION --- */
#offer {
  background: #fff;
  color: #000;
  padding: 5rem 2rem; 
  text-align: center;
}

.offer-intro-text {
    padding: 20px 0;
    text-align: center;
    margin-bottom: 20px;
}

.offer-intro-text h2 {
    font-size: 1.5rem; 
    margin-bottom: 10px;
    font-weight: 700;
}

.offer-intro-text p {
    font-size: 1rem;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .offer-intro-text {
        max-width: 800px;
        margin: 0 auto 40px auto;
    }

    .offer-intro-text h2 {
        font-size: 2rem;
    }
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.offer-box {
  background-color: #f9f9f9;
  padding: 2rem;
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  display: flex; 
  flex-direction: column;
  /* Domyślny stretch z Gridu powinien zapewnić równe wysokości kart */
  justify-content: space-between;
}

.offer-content {
  flex-grow: 1; 
  text-align: left;
  /* KLUCZOWE: Użycie Flexboxa dla treści wewnętrznej */
  display: flex;
  flex-direction: column;
}

/* 💡 NOWOŚĆ: Kontener górnej treści (nagłówek i opis) */
.offer-top-content {
    /* KLUCZOWE: Sprawia, że ta sekcja zajmuje całą wolną przestrzeń w pionie,
       wypychając .offer-lists na dół karty, niezależnie od długości opisu */
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-bottom: 1rem; 
}

/* 💡 NOWOŚĆ: Kontener list (Zestaw zawiera) */
.offer-lists {
    /* Ta sekcja ma stałą wysokość i nie rozciąga się */
    flex-shrink: 0; 
}

.offer-box:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.offer-box header {
  text-align: center;
  margin-bottom: 1rem;
}

.offer-box h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0;
}

.offer-box .price {
  font-weight: 600;
  font-size: 1rem;
  color: #555;
}

/* ZMNIEJSZENIE MARGINESU OPISU */
.offer-desc {
  font-size: 0.95rem; 
  line-height: 1.5; 
  color: #333;
  text-align: center; 
  margin-bottom: 0.5rem; 
}

/* KOREKTA MARGINESU H4 */
.offer-box h4 {
  margin: 0 0 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
}

/* KOREKTA MARGINESU STRONG */
.offer-box strong {
  font-weight: 700; 
  margin-top: 1rem; 
  margin-bottom: 0.5rem;
  display: block;
  font-size: 1rem;
  color: #111;
  padding-top: 0.5rem;
  border-top: 1px solid #ddd;
}

.offer-box ul {
  list-style: none;
  text-align: left;
  margin-bottom: 1rem;
  padding-left: 0;
}

.offer-box ul li {
  color: #333;
  padding: 0.4rem 0 0.4rem 1.8rem;
  border-bottom: 1px solid #eee;
  position: relative;
  line-height: 1.4;
  font-size: 0.95rem;
}

.offer-box ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.3rem;
  color: #111; 
  font-weight: 700;
  font-size: 1rem;
}

.subitem {
  font-size: 0.9rem;
  color: #555;
  display: block;
  margin-top: 0.2rem;
}

.offer-btn {
  display: block; 
  width: 100%;
  text-align: center;
  background: #111;
  color: #fff;
  padding: 0.7rem 1.6rem;
  font-weight: 600;
  border-radius: 6px;
  transition: background 0.3s ease;
  margin-top: 1.5rem;
  flex-shrink: 0; 
}

.offer-btn:hover {
  background: #333;
}

.offer-box.featured {
  background: #e9e9e9;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}
.offer-box.featured:hover {
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2); 
}

.badge {
  position: absolute;
  top: -12px; 
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem; 
  font-weight: 600;
  border-radius: 6px;
}

@media (max-width: 768px) {
  .offer-box {
    padding: 1.5rem;
  }
  .offer-box h3 {
    font-size: 1.2rem;
  }
}


/* --- PORTFOLIO SECTION --- */
#portfolio {
  padding: 5rem 0;
  background: linear-gradient(to bottom, #ffffff, #fff);
  color: #000;
  text-align: center;
}

.container {
  padding: 0;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.grid {
  display: grid;
  grid-template-columns: 1fr; /* Mobile-First: 1 kolumna */
  gap: 0; /* Potwierdzamy brak przerw między elementami siatki */
  margin-top: 0;
  width: 100%; 
}

/* 💡 NOWY KONTENER DLA PRZYCIĘCIA */
.grid-item {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden; /* KLUCZOWE: Ukrywa skalowany obraz i jego marginesy */
  cursor: pointer;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
  border: none;
  
  /* 💡 KLUCZOWA ZMIANA: Skalujemy obraz, aby ukryć marginesy (1080px -> 1030px efektywnie) */
  /* Jeśli margines wynosi ok. 5% na krawędzi (50px z 1080px), powiększamy o 1.1x */
  transform: scale(1.05); 
}

/* EFEKT HOVER */
.grid-item:hover img { 
  /* Zapewniamy, że efekt hover też działa na przyciętym obrazie */
  transform: scale(1.10); /* Większe powiększenie podczas hovera */
  z-index: 10;
}

/* RESPONSYWNOŚĆ GRIDU (bez zmian, działa na .grid) */
@media (min-width: 576px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
}

/* --- LIGHTBOX STYLES --- */
.lightbox {
  position: fixed;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  background: rgba(0,0,0,0.95);
  display: none; /* Domyślnie ukryty, kontrolowany przez JS */
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: pointer;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.lightbox-content img {
  display: block;
  width: auto; /* Pozwala na pełny rozmiar 1080px */
  max-width: 100%; 
  max-height: 100vh;
  object-fit: contain; /* Upewnia się, że cały obraz jest widoczny */
}



/* --- FOOTER / CONTACT --- */
#contact {
  background-color: #111;
  padding: 2rem 2rem;
  text-align: center;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.socials a {
  color: #fff;
  font-size: 1.5rem;
  transition: 0.3s;
}

.socials a:hover { color: #888; }


/* --- COOKIE BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1a1a1a; 
    color: #fff;
    padding: 1rem 2rem;
    display: flex; /* Domyślnie JS będzie je ustawiać na 'flex' lub 'none' */
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    font-size: 0.9rem;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.cookie-banner p {
    margin: 0;
    padding-right: 1.5rem;
    line-height: 1.4;
    flex-grow: 1;
}

.cookie-banner .cookie-link {
    color: #aaa;
    text-decoration: underline;
    margin-left: 5px;
}

.cookie-btn {
    background-color: #fff;
    color: #111;
    border: none;
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    font-weight: 700;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    flex-shrink: 0; 
}

.cookie-btn:hover {
    background-color: #eee;
    transform: scale(1.02);
}

.cookie-banner.fade-out {
    opacity: 0;
}

.cookie-banner .fa-cookie-bite {
    color: #fff; 
    font-size: 1.2rem;
    margin-right: 10px;
}

.cookie-banner p strong {
    font-weight: 700;
    color: #fff;
}

/* Responsywność dla Cookies */
@media (max-width: 600px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    .cookie-banner p {
        padding-right: 0;
        margin-bottom: 0.8rem;
    }
    .cookie-btn {
        width: 100%;
    }
}

/* --- SCROLL-UP ARROW (POPRAWIONE) --- */
.scroll-up {
  color: #111; 
  display: inline-block;
  font-size: 1.5rem;
  text-align: center;
  margin: 0%;
  padding-top: 5rch;
  animation: bounce 2s infinite;
  transition: opacity 0.3s ease;
}

.scroll-up:hover {
  opacity: 0.7;
}

/* Ponowne użycie klatek kluczowych, aby pasowały do ruchu w górę */
@keyframes bounce-up {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-6px);
  }
  60% {
    transform: translateY(-3px);
  }
}
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    z-index: 1001;
    transition: 0.3s;
}

.lightbox-arrow:hover {
    background: rgba(0,0,0,0.8);
}

.lightbox-arrow.left { left: 1rem; }
.lightbox-arrow.right { right: 1rem; }

.lightbox-arrow i {
    pointer-events: none;
}
