@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --pines-green: #208138;
  --active-color: #c4d630;
  --pines-white: #ececec;
  --pines-gray: #cccccc;
}

::selection {
  background-color: var(--pines-green);
  color: white;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--pines-white);
  font-family: "Lato", sans-serif;
}

/* TOP ********************************************************************* TOP */

.top {
  background-color: var(--pines-green);
  height: 150px;
  display: flex;
  width: 100%;
  color: var(--pines-white);

  /* position: sticky;
  top: 0; 
  z-index: 1000;  */
}

.top_cointainer {
  width: 1440px;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  position: relative;
}

.top_logo {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-left: 20px;
}

.top_logo img {
  width: 100%;
  max-width: 331px;
  height: auto;
}

.top_menu {
  display: flex;
  flex: 2;
  align-items: center;
  justify-content: flex-end;
  font-size: clamp(12px, 1.8vw, 25px);
  padding-right: 20px;
}

.top_menu_separator {
  padding-left: 10px;
  padding-right: 10px;
}

@media (max-width: 768px) {
  .top_menu_separator {
    display: none;
  }
}

.top_menu a {
  cursor: pointer;
  text-decoration: none;
  position: relative;
  color: var(--pines-white);
}

.top_menu a:hover {
  color: var(--active-color);
}

/* .top_menu a:not(:last-child)::after {
  content: "|";
  padding: 0 10px;
  color: var(--pines-white);
} */

/* Hamburger */
.hamburger {
  display: none;
  font-size: 30px;
  cursor: pointer;
  color: var(--pines-white);
  margin-left: auto;
  margin-right: 20px;
}

/* Zmiana hamburger w X */
.hamburger.active::after {
  content: "×";
}

/* RESPONSYWNOŚĆ */
@media (min-width: 1024px) {
  .top_menu a:not(:last-child)::after {
    padding: 0 20px;
  }
}

@media (max-width: 1024px) {
  .top_menu {
    font-size: clamp(10px, 2vw, 20px);
  }
}

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

  .top_menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--pines-green);
    width: 100%;
    text-align: center;
    font-size: 20px;
  }

  .top_logo img {
    max-width: 200px;
  }

  .top_menu a {
    padding-bottom: 20px;
    width: 80%;
    padding: 20px 0;
    border-bottom: 1px solid #ececec;
  }

  .top_menu a:last-child {
    border-bottom: none;
  }

  .top_menu a:not(:last-child)::after {
    content: "";
    padding: 0;
  }

  .top_menu.active {
    display: flex;
  }
}

/* HERO ********************************************************************* HERO */

.hero {
  /* background-color: #c4d630; */
  height: 670px;
  background-image: url(../images/hero_pines_ogrody.jpg);
  background-repeat: no-repeat;
  background-position: top;
  background-size: cover;
}

@media (max-width: 1024px) {
  .hero {
    height: 500px;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 400px;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 300px;
  }
}

.hero_motto {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  color: var(--pines-white);
  padding-top: 100px;
  padding-left: 20px;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 1);
}

.hero_motto_1 {
  font-size: 75px;
  font-weight: 900;
}
.hero_motto_2 {
  font-size: 32px;
  font-weight: 700;
}
.hero_motto_3 {
  font-size: 98px;
  font-weight: 900;
}

@media (max-width: 768px) {
  .hero_motto {
    padding-top: 50px;
  }
  .hero_motto_1 {
    font-size: 55px;
    font-size: clamp(40px, 5vw, 75px);
  }
  .hero_motto_2 {
    font-size: 22px;
    font-size: clamp(20px, 3vw, 32px);
  }
  .hero_motto_3 {
    font-size: 78px;
    font-size: clamp(40px, 6vw, 98px);
  }
}

/* FIRMA PINES *********************************************************** FIRMA PINES */

.firma_pines {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
  /* background-color: bisque; */
}

.firma_pines_header {
  background-color: var(--pines-green);
  color: var(--pines-white);
  height: 100px;
  border-radius: 0px 0px 30px 30px;
  font-family: "Cormorant Garamond", serif;
  font-optical-sizing: auto;
  font-size: 60px;
  font-size: clamp(45px, 5vw, 70px);
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
}

.firma_pines_cointainer {
  display: flex;
  gap: 195px;
  gap: clamp(20px, 10vw, 100px);
  color: #3d3d3d;
  font-size: 25px;
  font-size: clamp(20px, 1.5vw, 25px);
  line-height: 1.8;
  text-align: justify;
  padding-top: 50px;
  padding-bottom: 70px;
}

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

.firma_pines_cointainer p {
  padding-bottom: 20px;
}

.firma_pines_left {
  flex: 1;
}

.firma_pines_right {
  flex: 1;
}

.firma_pines_right img {
  width: 100%;
  height: auto;
  max-width: 641px;
}

@media (max-width: 768px) {
  .firma_pines_right img {
    height: auto;
    width: 100%;
    max-width: 768px;
  }
}

.firma_pines_right img:first-of-type {
  border-radius: 0 20px 0 0;
}

.firma_pines_right img:last-of-type {
  border-radius: 0 0 0 20px;
}

.firma_pines_bottom_logo {
  /* background-color: bisque; */
  text-align: center;
  margin-bottom: -4px;
}

.firma_pines_bottom_logo img {
  width: 100%;
  max-width: 234px;
  height: auto;
}

/* OFERTA ****************************************************************** OFERTA */

.oferta {
  background-color: aqua;
  width: 100%;
  /* height: 700px; */
  background-image: url(../images/oferta_bg.jpg);
  padding-bottom: 60px;
  background-size: cover;
}

@media screen and (max-width: 768px) {
  .oferta {
    background-size: auto;
  }
}

.oferta_header {
  font-family: "Cormorant Garamond", serif;
  font-optical-sizing: auto;
  font-size: 60px;
  font-size: clamp(45px, 5vw, 70px);
  font-weight: 700;
  color: var(--pines-green);
  padding-top: 50px;
  padding-bottom: 50px;
  text-align: center;
  padding-left: 20px;
  padding-right: 20px;
}

.oferta_container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 50px;

  grid-auto-rows: 1fr;
}

@media screen and (max-width: 768px) {
  .oferta_container {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
}

.oferta_1,
.oferta_2,
.oferta_3,
.oferta_4 {
  width: 100%;
  height: auto;

  display: flex;
  flex-direction: column;
}

.oferta_1 img,
.oferta_2 img,
.oferta_3 img,
.oferta_4 img {
  width: 100%;
  height: 100%;
  height: auto;
  max-width: 696px;
  object-fit: cover;
  border-radius: 50px 0 0 0;
}

.oferta_1 p,
.oferta_2 p,
.oferta_3 p,
.oferta_4 p {
  background-color: var(--pines-green);
  font-size: 20px;
  color: var(--pines-gray);
  min-height: 150px;
  padding: 30px;
  line-height: 1.5;
  border-radius: 0 0 50px 0;
  flex: 1;
}

.oferta_small_header {
  font-size: 25px;
  line-height: 1.3;
}

@media screen and (max-width: 768px) {
  .oferta_container {
    grid-template-columns: 1fr; /* jedna kolumna */
    grid-template-rows: auto; /* wiersze dopasowują się do treści */
    grid-auto-rows: auto; /* ważne! resetuje wcześniejsze 1fr */
    gap: 30px; /* pionowy odstęp między blokami */
  }

  .oferta_1 p,
  .oferta_2 p,
  .oferta_3 p,
  .oferta_4 p {
    flex: none; /* wyłączenie równania wysokości */
    min-height: auto; /* dopasowanie do zawartości */
  }
}

.oferta_1 p span,
.oferta_2 p span,
.oferta_3 p span,
.oferta_4 p span {
  font-weight: 900;
  display: inline-block;
  padding-bottom: 20px;
}

.oferta_h1_container {
  display: flex;
  flex-wrap: wrap; /* pozwala elementom przejść do kolejnego wiersza */
  gap: 50px; /* odstępy między elementami */
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}

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

.oferta_h1 {
  font-size: clamp(20px, 1.5vw, 25px);
  line-height: 1.8;
  flex: 0 0 calc(50% - 25px); /* każda kolumna zajmuje 50% minus połowa gap */
}

.oferta_h1 h1 {
  font-size: 25px;
  color: var(--pines-gray);
  display: flex;
  align-items: center;

  background-color: var(--pines-green);
  background-color: #7c7c7c;
  padding-left: 20px;
  padding-top: 10px;
  padding-bottom: 10px;
  height: auto;
  min-height: 100px;
  margin-bottom: 20px;
  border-radius: 20px 0px;
  line-height: 1.3;
}

.oferta_h1_big {
  font-size: 60px;
  padding-right: 20px;
}

/* O NAS ****************************************************************** O NAS */

.o_nas {
  width: 100%;
  /* height: 800px; */
  height: auto;
  background-color: #d7e1da;
  display: flex;
}

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

.o_nas_left {
  /* background-color: blue; */
  flex: 1;
  background-image: url(../images/o_nas.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 0 0 50px 0;
  /* height: 10000px; */
}

@media screen and (max-width: 768px) {
  .o_nas_left {
    flex: none;
    height: 400px;
    margin-right: 40px;
    border-radius: 0 50px 50px 0;
    /* background-position: center; */
  }
}

.o_nas_right {
  /* background-color: violet; */
  flex: 1;

  display: flex;
  flex-direction: column;
}

.o_nas_header {
  color: var(--pines-green);
  font-family: "Cormorant Garamond", serif;
  font-size: 60px;
  font-size: clamp(45px, 5vw, 70px);
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 20px;

  width: auto;
  max-width: 720px;
}

.o_nas_text {
  color: #3d3d3d;

  gap: clamp(20px, 10vw, 100px);
  font-size: 25px;
  font-size: clamp(20px, 1.5vw, 25px);
  line-height: 1.8;
  text-align: justify;
  padding-bottom: 70px;
  padding-left: 40px;
  width: auto;
  max-width: 720px;
  padding-right: 40px;
}

.o_nas_logo {
  display: block;
  margin: 0 auto;
  margin-bottom: -21px;
}

.o_nas_text p {
  padding-bottom: 40px;
}

.o_nas_footer {
  background-color: #b2ceba;
  width: auto;
  margin-top: -50px;
  width: 100%;
  height: 100px;
}

/* GALERIA ****************************************************************** GALERIA */

.galeria {
  background-image: url(../images/galeria_bg.jpg);
  background-size: cover;
  background-color: #c4d630;
  /* height: 500px; */
  height: auto;
  padding-bottom: 80px;
}

@media (max-width: 768px) {
  .galeria {
    padding-bottom: 20px;
  }
}

.galeria_cointainer {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;

  /* background-color: aqua; */
}

.galeria_header {
  color: var(--pines-green);
  font-family: "Cormorant Garamond", serif;
  font-size: 60px;
  font-size: clamp(45px, 5vw, 70px);
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
}

.galeria_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* grid-auto-rows: 220px; */
  gap: 20px;
}

.galeria_item {
  overflow: hidden;
  border-radius: 20px;
}

.galeria_item6 {
  border-radius: 20px 20px 0 0;
}

.galeria_item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* układ */

.galeria_item1 {
  grid-row: span 2;
}

.galeria_item2 {
  grid-column: span 2;
}

.galeria_button {
  background-color: var(--pines-green);
  grid-column: 4 / 5;
  grid-row: 3 / 4;
  height: 50px;
  margin-top: -19px;
  border-radius: 0 0 20px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.galeria_button a {
  text-decoration: none;
  color: var(--pines-gray);
}

.galeria_button a:hover {
  color: var(--active-color);
}

@media (max-width: 768px) {
  .galeria_grid {
    grid-template-columns: repeat(2, 1fr);
    /* grid-auto-rows: 220px; */
    gap: 20px;
  }

  /* reset wszystkich wcześniejszych spanów */
  .galeria_item1,
  .galeria_item2,
  .galeria_item3,
  .galeria_item4,
  .galeria_item5,
  .galeria_item6 {
    grid-column: auto;
    grid-row: auto;
  }

  /* ostatni rząd: pusty + przycisk */
  .galeria_button {
    grid-column: 2 / 3; /* przycisk w drugiej kolumnie */
    grid-row: auto; /* będzie w kolejnym rzędzie po elementach */
  }

  /* opcjonalnie: pusty div, żeby pierwsza kolumna w ostatnim rzędzie była pusta */
  .galeria_grid::after {
    content: "";
    display: block;
    grid-column: 1 / 2;
  }
}

.galeria_show_gallery_button {
  display: flex;
  justify-content: center; /* poziomo */
  align-items: center; /* pionowo */
  width: 100%;
  height: 100%;
  text-align: center;
  border-radius: 0 0 20px 20px;
}

.galeria_no_bottom_radius {
  border-radius: 0 !important;
}

/* ZAUFALI ****************************************************************** ZAUFALI */

.zaufali_header {
  background-color: #92bd9d;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 60px;
  font-size: clamp(45px, 5vw, 70px);
  font-weight: 700;
  color: var(--pines-green);
}

.zaufali_bg {
  background-color: #aeccb6;
  position: relative;
  overflow-x: hidden; /* zapobiega przesuwaniu w poziomie */
}

.zaufali_cointainer {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 50px 40px 10px 40px;
  display: flex;
  align-items: flex-start; /* albo flex-start */
}

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

.zaufali_left {
  /* background-color: red; */
  flex: 1;
  display: flex;
  justify-content: center;
}

.zaufali_left img {
  max-width: 628px;
  width: 100%;
  padding-right: 20px;
}

@media (max-width: 768px) {
  .zaufali_left img {
    max-height: 400px;
    width: auto;
    padding-bottom: 20px;
    /* display: none; */ /*** zastanowic sie czy display none na mobilnych */
  }
}

.zaufali_right {
  background-color: #92bd9d;
  flex: 1;
  border-radius: 30px;

  padding: 70px;
  /* padding: 30px 20px 30px 70px; */
  line-height: 1.7;
  font-size: clamp(18px, 2vw, 25px);
  color: #396744;

  /* nowa metoda na pełną szerokość tła */
  position: relative;
  overflow: hidden;
}

/* STOPKA ****************************************************************** STOPKA */

.footer_logo {
  background-color: #aeccb6;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  padding-top: 50px;
}

.footer_logo img {
  width: 100%;
  max-width: 234px;
  height: auto;
}

.footer_motto {
  background-color: var(--pines-green);
  display: flex;
  justify-content: center;
  text-align: center;
  color: var(--pines-white);
  padding: 30px;
  margin-top: -2px;

  font-size: 30px;
  font-family: "Cormorant Garamond", serif;
  font-optical-sizing: auto;
}

.footer_bg {
  background-image: url(../images/footer_kontakt_bg.jpg);
}

.footer_kontakt {
  display: flex;
  flex-direction: column;
  color: var(--pines-white);

  width: 100%; /* <- zamiast 1440px */
  max-width: 1440px; /* <- ograniczenie do dużych ekranów */
  margin: 0 auto;
  box-sizing: border-box; /* zabezpiecza paddingi i marginesy */
  padding: 0 20px; /* opcjonalnie, żeby treść nie przyklejała się do krawędzi */
}

.footer_kontakt_header {
  /* background-color: #92bd9d; */
  display: flex;
  font-size: 70px;
  font-size: clamp(45px, 5vw, 70px);
  font-family: "Cormorant Garamond", serif;
  font-optical-sizing: auto;
  justify-content: center;
  padding-top: 50px;
}

.footer_kontakt_dane_cointainer {
  display: flex;
  width: 100%;
  font-size: 40px;
  padding-top: 60px;
  font-size: clamp(18px, 5vw, 40px);
}

.footer_kontakt_adress {
  /* background-color: springgreen; */
  flex: 1;
  display: flex;
  justify-content: center;
}

.footer_kontakt_tel {
  /* background-color: bisque; */
  flex: 1;
  display: flex;
  justify-content: center;
}

.footer_kontakt_email {
  display: flex;
  /* background-color: #208138; */
  justify-content: center;
  align-items: center;
  padding-top: 20px;
  font-size: clamp(18px, 5vw, 40px);
}

.footer_kontakt_email a {
  text-decoration: none;
  color: var(--pines-white);
}

.footer_kontakt_rights_cointainer {
  display: flex;
  padding-top: 50px;
}

.footer_kontakt_rights {
  /* background-color: blueviolet; */
  padding-top: 50px;
  font-size: 15px;
  opacity: 0.5;
  display: flex;
  justify-content: center;
  padding-bottom: 20px;
  flex: 4;
}

.footer_kontakt_rights a {
  text-decoration: none;
  color: var(--pines-white);
  padding-left: 10px;
}

.footer_kontakt_rights a:hover {
  color: var(--active-color);
}

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

  .footer_kontakt_adress,
  .footer_kontakt_tel,
  .footer_kontakt_rights {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 10px 0;
  }
}

/* BACK TO TOP ******************************************************** BACK TO TOP */

#backToTop {
  position: fixed;
  bottom: 30px;
  /* top: 30px; */
  right: 30px;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background-color: var(--pines-green);
  color: white;
  cursor: pointer;
  display: none;
  /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); */
  transition: all 0.3s ease;
  font-size: 32px; /* dla Material Icons */
  display: flex;
  justify-content: center;
  align-items: center;
}

#backToTop:hover {
  background-color: var(--active-color);
  transform: translateY(-3px);
  opacity: 1;
}

/* GALLERY ******************************************************** GALLERY */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.gallery-item {
  width: 200px;
  height: 200px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s;
  border-radius: 20px;
}

@media (max-width: 768px) {
  .gallery-item {
    width: calc(25% - 15px); /* 4 w rzędzie */
    width: 100px;
    height: 100px;
  }
}

.gallery-item:hover {
  transform: scale(1.05);
}

.lightbox {
  display: none; /* domyślnie ukryty */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

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

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

.lightbox-controls span {
  position: absolute;
  top: 50%;
  font-size: 60px;
  color: white;
  cursor: pointer;
  user-select: none;
  padding: 10px;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}
