/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;400&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --clr-primary-400: hsl(208, 69%, 22%);
  --clr-primary-300: hsl(215, 64%, 12%);

  --clr-secondary-400: hsl(25, 72%, 49%);
  --clr-secondary-300: hsl(24, 71%, 95%);
  --clr-secondary-100: hsl(0, 0%, 100%);

  --container-color: hsl(208, 69%, 22%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Josefin Sans", sans-serif;
  --accent-font: "Playfair Display", serif;
  --subtitle-font: "Dancing Script", cursive;
  --biggest-font-size: 2.25rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --h4-font-size: 0.75rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
  --smaller-font-size: 0.75rem;

  /*========== Font weight ==========*/
  --font-light: 300;
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}
@media screen and (min-width: 1024px) {
  :root {
    --biggest-font-size: 4rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: #fff;
  color: var(--text-color);
  transition: background 0.4s; /* for dark mode animation */
}

h1 {
  color: var(--title-color);
  font-weight: var(--font-medium);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

p {
  font-weight: var(--font-light);
  line-height: 1.5rem;
}

/*=============== THEME ===============*/
.nav__buttons {
  display: flex;
  align-items: center;
  column-gap: 1rem;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1024px;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.flex {
  display: flex;
}

.mt-1 {
  margin-top: 1rem;
}

.right {
  justify-content: flex-end;
}

.left {
  justify-content: flex-start;
}

.text-center {
  text-align: center;
}

.section {
  padding-block: 4rem;
}

.section__title {
  font-size: var(--h1-font-size);
  font-family: var(--accent-font);
  font-weight: var(--font-light);
  margin-bottom: 2rem;
}

.section__title-small {
  font-size: var(--h2-font-size);
  font-family: var(--accent-font);
  font-weight: var(--font-light);
  color: #c3e3ff;
  margin-bottom: 2rem;
}

.section__subtitle {
  display: block;
  font-size: var(--h4-font-size);
  font-weight: var(--font-light);
  color: var(--first-color);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  width: 100%;
  background-color: var(--body-color);
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  transition: box-shadow 0.3s, background 0.4s;
}

.nav {
  position: relative;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo,
.nav__toggle,
.nav__close {
  display: flex;
  color: var(--title-color);
}

.nav__logo {
  align-items: center;
  column-gap: 0.5rem;
  font-family: var(--accent-font);
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
  transition: color 0.3s;
}

.nav__logo img {
  width: 165px;
}

.nav__logo:hover {
  color: var(--first-color);
}

.nav__toggle {
  font-size: 1.25rem;
  cursor: pointer;
}

@media screen and (max-width: 767px) {
  .container {
    max-width: 100%;
    margin-inline: 0;
  }

  .home__container {
    margin-top: 4rem;
  }

  .home__title {
    font-size: var(--h1-font-size);
  }

  .home__data {
    padding: 1rem;
  }

  .home__description {
    font-size: var(--h2-font-size);
  }

  .home__data .button {
    margin-left: 0;
    margin-top: 1rem;
  }

  .home__data .flex {
    display: grid;
  }

  .nav__menu {
    position: fixed;
    top: -100%;
    left: 0;
    background-color: var(--clr-secondary-100);
    width: 100%;
    box-shadow: 0 8px 20px hsla(19, 64%, 24%, 0.1);
    padding-block: 3.5rem;
    transition: top 0.4s;
  }

  .nav {
    margin: 1rem;
  }

  .home__data {
    text-align: center;
    position: initial;
    width: 100%;
  }

  .home__title {
    font-size: 2rem;
  }

  .orange-dots {
    display: none;
  }

  .work-with-us__img {
    order: 1;
  }

  .section {
    padding-block: 2rem;
  }

  .offer {
    margin-top: 0;
  }

  .home__data .button {
    margin-left: 0;
  }

  .footer {
    padding: 3rem 2rem;
  }

  .footer__content {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.nav__list {
  display: flex;
  flex-direction: column;
  text-align: center;
  row-gap: 2rem;
}

.nav__link {
  color: var(--title-color);
  font-weight: var(--font-medium);
  transition: color 0.4s;
}

.nav__link:hover {
  color: var(--first-color);
}

.nav__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Show menu */
.show-menu {
  top: 0;
}

/* Change background header */
.bg-header {
  box-shadow: 0 2px 8px hsla(19, 64%, 24%, 0.1);
  background-color: var(--clr-secondary-100);
}

/* Active link */
.active-link {
  color: var(--first-color);
}

/*=============== HOME ===============*/
.home {
  position: relative;
}

.home__img {
  width: 100%;
  justify-self: center;
}

.home__title {
  font-family: var(--accent-font);
  margin-bottom: 1rem;
}

.home__title img {
  width: 40px;
}

.home__title div {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 0.5rem;
}

.home__description p {
  margin-right: 1rem;
}

.glass-effect {
  background: rgba(255, 255, 255, 0.552); /* Ustawiamy przezroczyste tło */
  border-radius: 0;
  backdrop-filter: blur(8px); /* Używamy wartości blur dla efektu szkła */
  -webkit-backdrop-filter: blur(
    8px
  ); /* Dla kompatybilności z niektórymi przeglądarkami */
}

/* Icons */

.icons__container-data {
  height: 200px;
  display: flex;
  flex-direction: column; /* Układanie elementów w kolumnę (ikona nad tekstem) */
  justify-content: center; /* Wycentruj w pionie */
  align-items: center;
  text-align: center;
}

.icons__container {
  margin-top: 1rem;
}

.icon-data {
  text-align: center;
}

.icon-img {
  background-color: var(--clr-secondary-300);
  width: 100px; /* Ustaw szerokość */
  height: 100px; /* Ustaw wysokość */
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.icon-img img {
  width: 50%;
  height: 50%;
}

.icon-text {
  margin-top: 15px;
}

.our-offer,
.cooperation,
.privacy-policy,
.contact,
.regulations,
.guarantee,
.faq {
  max-width: 1024px;
  margin: 4rem auto 2rem;
  padding: 0 2rem;
}

.contact p {
  margin-bottom: 1rem;
}

.subpage-subtitle {
  margin: 2rem 0 1rem;
}

.subpage-title {
  margin: 6rem 0 2rem;
}

.regulations ul {
  list-style-type: circle;
}

.regulations li {
  font-weight: var(--font-light);
  margin: 0.5rem;
}

/*=============== BUTTON ===============*/
.button {
  background-color: var(--clr-secondary-400);
  color: #fff;
}

.button-secondary {
  background-color: var(--clr-primary-400);
  color: #fff;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  column-gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0;
  font-weight: var(--font-normal);
  font-size: var(--small-font-size);
  transition: background 0.3s;
  text-transform: uppercase;
}

.button i {
  font-size: 1.2rem;
  transition: transform 0.4s;
}

.button:hover,
.button-secondary:hover {
  background-color: var(--clr-primary-300);
}

.button:hover i,
.button-secondary:hover i {
  transform: translateX(0.25rem);
}

/*=============== OFFER ===============*/

.offer,
.work-with-us {
  position: relative;
  background-color: var(--clr-primary-400);
  color: var(--clr-secondary-100);
}

.offer .button {
  margin-top: 2rem;
}

.offer__description {
  font-size: var(--normal-font-size);
  font-weight: var(--font-light);
}

.offer__container {
  row-gap: 3rem;
}

.offer__data {
  text-align: center;
}

.offer__title img {
  width: 30px;
}

.offer__title div {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 0.5rem;
}

.offer__img {
  width: 300px;
  justify-self: center;
}

.orange-dots {
  position: absolute;
  z-index: -1;
  top: -17.5rem;
  right: 18rem;
  width: 200px;
  height: 400px;
}

/*=============== work-with-us ===============*/
.work-with-us {
  position: relative;
}

.work-with-us__data {
  position: relative;
  text-align: center;
}

.work-with-us__description {
  margin-bottom: 2rem;
}

.work-with-us__data-img {
  width: 25px;
  position: absolute;
  top: 3.5rem;
  right: 1.5rem;
  transform: rotate(30deg);
}

.work-with-us__img {
  width: 300px;
  justify-self: center;
}

.work-with-us__leaf-1,
.work-with-us__leaf-2 {
  position: absolute;
  opacity: 0.2;
}

.work-with-us__leaf-1 {
  width: 80px;
  top: 17rem;
  left: -1rem;
  transform: rotate(15deg);
}

.work-with-us__leaf-2 {
  width: 40px;
  right: -1rem;
  bottom: 12rem;
  transform: rotate(-30deg);
}

/* Gallery */

.gallery .section__title {
  text-align: center;
}

/* Swiper */
.swiper-slide img {
  display: block;
  width: 100%;
  height: 30rem;
  object-fit: cover;
}

.swiper-slide figure {
  position: relative;
  margin: 0;
  overflow: hidden;
}

.swiper-slide figcaption {
  position: absolute;
  bottom: 0;
  color: #fff;
  font-size: 17px;
  font-family: var(--secondary-ff);
  line-height: 29px;
  background-color: var(--black);
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.5rem 0.5rem 0 0;
  padding: 1rem 2rem;
  left: 50%;
  transform: translate3d(-50%, 100%, 0);
  opacity: 0;
  transition: all 0.3s ease-in-out;
}

.swiper-slide-active figcaption {
  transform: translate3d(-50%, 0, 0);
  opacity: 1;
}

.swiper-slide figcaption img {
  width: auto;
  height: auto;
  object-fit: contain;
}

.swiper-custom-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  z-index: 10;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.swiper-custom-nav svg {
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.3s ease-in-out;
}

.swiper-custom-nav svg:hover {
  opacity: 1;
}

.swiper-custom-pagination {
  display: flex;
  width: 100%;
  padding-top: 2rem;
  justify-content: center;
  gap: 1rem;
  font-family: var(--secondary-ff);
  font-size: 17px;
  line-height: 29px;
  font-weight: 500;
  color: var(--black);
}

.swiper-custom-pagination .swiper-pagination-bullet {
  width: auto;
  height: auto;
  border-radius: 0;
  background-color: transparent;
  opacity: 1;
  text-align: center;
}

.swiper-custom-pagination .number {
  opacity: 0;
  transition: all 0.3s ease-in-out;
}

.swiper-custom-pagination .line {
  opacity: 0.3;
  height: 0.25rem;
  width: 0.75rem;
  background-color: var(--black);
  display: block;
  border-radius: 4px;
  transition: all 0.3s ease-in-out;
}

.swiper-custom-pagination .swiper-pagination-bullet-active .number,
.swiper-custom-pagination .swiper-pagination-bullet-active .line {
  opacity: 1;
}

.swiper-custom-pagination .swiper-pagination-bullet-active .line {
  width: 2rem;
}

@media screen and (max-width: 800px) {
  .swiper-slide img {
    height: 20rem;
  }

  .swiper-slide figcaption {
    left: 0;
    transform: none;
    width: 100%;
    border-radius: 0;
    background-color: var(--black-90);
  }

  .swiper-custom-nav {
    display: none;
  }
}

/*=============== cta ===============*/
.cta__container {
  position: relative;
}

.cta__content {
  position: relative;
  background-color: var(--clr-secondary-400);
  border-radius: 0;
  padding: 3rem 1rem 3rem;
  text-align: center;
  overflow: hidden;
}

.cta__img {
  position: absolute;
  width: 250px;
  top: -4.5rem;
  left: -8rem;
}

.cta__data {
  color: #fff;
  font-size: var(--h3-font-size);
}

.cta__content .button-secondary {
  cursor: pointer;
  margin-top: 2rem;
}

.cta__container {
  transition: background 0.4s; /* for dark mode animation */
}

/*=============== FOOTER ===============*/
.footer {
  position: relative;
  padding-block: 3rem 2rem;
  overflow: hidden;
}

.footer__container {
  row-gap: 3rem;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  column-gap: 0.5rem;
  color: var(--title-color);
  font-family: var(--accent-font);
  font-size: var(--h3-font-size);
  font-weight: var(--font-light);
  margin-bottom: 1rem;
  transition: color 0.3s;
}

.footer__logo img {
  width: 195px;
}

.footer__logo:hover {
  color: var(--first-color);
}

.footer__description,
.footer__link,
.footer__information {
  font-size: var(--small-font-size);
}

.footer__content,
.footer__links {
  display: grid;
}

.footer__content {
  gap: 2.5rem;
}

.footer__title {
  font-size: var(--h3-font-size);
  margin-bottom: 1.5rem;
}

.footer__links {
  row-gap: 0.5rem;
}

.footer__link {
  color: var(--text-color);
  transition: color 0.3s;
}

.footer__links {
  font-weight: 300;
}

.footer__link:hover {
  color: var(--first-color);
}

.footer__social {
  display: flex;
  column-gap: 1.25rem;
}

.footer__social-link {
  color: var(--first-color);
  font-size: 1.25rem;
  transition: color 0.3s, transform 0.3s;
}

.footer__social-link:hover {
  color: var(--first-color-alt);
  transform: translateY(-2px);
}

.footer__info {
  display: flex;
}

.footer__info {
  margin-top: 6.5rem;
  flex-direction: column;
  row-gap: 1.5rem;
}

.footer__copy {
  text-align: center;
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
  font-weight: var(--font-light);
}

/* Cookie Bar */

.cookie__bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--clr-primary-300);
  color: #fff;
  padding: 10px 20px;
  text-align: center;
}

.cookie__bar .button:hover {
  background-color: var(--clr-primary-400);
}

#cookie-policy-link {
  color: #fff;
  text-decoration: underline;
}

#accept-cookies {
  border: none;
  cursor: pointer;
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: 0.6rem;
  border-radius: 0.5rem;
  background-color: hsl(19, 8%, 75%);
}
::-webkit-scrollbar-thumb {
  background-color: hsl(19, 8%, 65%);
  border-radius: 0.5rem;
}
::-webkit-scrollbar-thumb:hover {
  background-color: hsl(19, 8%, 55%);
}

.footer {
  padding-block: 4rem 3rem;
  background-color: var(--clr-primary-400);
  color: var(--clr-secondary-100);
}

/* Show Scroll Up*/
.show-scroll {
  bottom: 3rem;
}

.icons__container {
  grid-template-columns: repeat(2, 1fr);
}

/*=============== BREAKPOINTS ===============*/

/* For small devices */
@media screen and (max-width: 340px) {
  .section__title,
  .section__subtitle {
    text-align: center;
  }
  .orange-dots {
    display: none;
  }
  .container {
    margin-inline: 1rem;
  }

  .offer__img {
    order: -1;
  }

  .section {
    padding-block: 4rem 1rem;
  }

  .nav {
    margin: 1rem;
  }

  .home__data {
    text-align: center;
    position: absolute;
    bottom: -5rem;
    width: 450px;
    left: 50%;
    margin-left: -225px;
  }

  .icons__container {
    grid-template-columns: repeat(2, 1fr);
  }

  .work-with-us__data-img {
    right: 0.5rem;
  }

  .cta__content {
    padding: 6rem 1rem 2rem;
  }
  .cta__form {
    flex-direction: column;
    background: none;
    row-gap: 1rem;
  }
  .cta__input {
    width: initial;
    padding: 1rem;
    border-radius: 4rem;
  }
  .cta__button {
    justify-content: center;
  }

  .footer__content {
    gap: 1.5rem;
  }

  .home__container {
    padding-top: 4rem;
  }
}
/* For medium devices */
@media screen and (min-width: 576px) {
  .home__container,
  .offer__container,
  .work-with-us__container,
  .cta__content {
    /* grid-template-columns: 0.7fr; */
    justify-content: center;
  }

  .home__container {
    padding-top: 4rem;
  }

  .home__title {
    font-size: 1.8rem;
  }

  .home__data {
    padding: 2rem;
  }

  .home__data .button {
    margin-left: 2.5rem;
  }

  .orange-dots {
    display: none;
  }

  .gallery {
    margin-bottom: 2rem;
  }

  .nav {
    margin-block: 1rem;
  }

  .home__data {
    text-align: center;
    position: absolute;
    bottom: -5rem;
    width: 500px;
    left: 50%;
    margin-left: -250px;
  }

  .icons__container {
    grid-template-columns: repeat(2, 1fr);
  }

  .work-with-us__container {
    row-gap: 4rem;
  }

  .footer__content {
    grid-template-columns: repeat(2, max-content);
  }
}
@media screen and (min-width: 767px) {
  .nav {
    column-gap: 3rem;
    margin: 1rem;
  }

  .nav__toggle,
  .nav__close {
    display: none;
  }

  .nav__list {
    flex-direction: row;
    column-gap: 3rem;
  }

  .home__title {
    font-size: var(--biggest-font-size);
  }

  .orange-dots {
    display: none;
  }

  .offer {
    margin-top: 2rem;
  }

  .offer__img {
    order: 0;
  }

  .home__data {
    text-align: center;
    position: absolute;
    bottom: -5rem;
    width: 550px;
    left: 50%;
    margin-left: -275px;
  }

  .nav__menu {
    margin-left: auto;
  }

  .icons__container {
    grid-template-columns: repeat(4, 1fr);
  }

  .popular__container {
    grid-template-columns: repeat(2, 250px);
  }

  .footer__content {
    grid-template-columns: repeat(4, max-content);
  }
  .home {
    min-height: 400px;
  }

  .home__container {
    padding-top: 2rem;
  }
}

/* For large devices */
@media screen and (min-width: 1024px) {
  .text-right {
    text-align: right;
  }
  .orange-dots {
    display: block;
  }
  .text-left {
    text-align: left;
  }

  .section__subtitle {
    margin-bottom: 0.75rem;
  }

  .our-services {
    min-height: 400px;
    margin-bottom: 6rem;
  }

  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }

  .home__container {
    position: relative;
    min-height: 100vh;
  }

  .home__data {
    text-align: left;
    position: absolute;
    right: -4rem;
    height: 280px;
    width: 620px;
    top: 50%;
    margin-top: -140px;
  }

  .home__data .left {
    margin-right: 1.5rem;
  }

  .home__title {
    font-size: 3rem;
  }

  .home__description {
    font-size: 1.25rem;
  }

  .home__img {
    width: 800px;
    position: absolute;
    top: 3rem;
    left: -8rem;
  }

  .our-services {
    margin-top: 0;
  }

  .icons__container {
    grid-template-columns: repeat(4, 1fr);
  }

  .offer {
    margin-bottom: 1rem;
    margin-top: 5rem;
    padding-top: 3rem;
  }

  .offer__container {
    grid-template-columns: 470px 420px;
    align-items: center;
    column-gap: 3rem;
    position: relative;
  }
  .offer__data {
    text-align: right;
  }
  .offer__description {
    line-height: 1.5rem;
  }

  .offer__title div {
    column-gap: 1rem;
    justify-content: initial;
  }
  .offer__title img {
    width: 50px;
  }
  .offer__img {
    width: 410px;
    position: absolute;
    right: 2rem;
    bottom: 0;
  }

  .work-with-us__container {
    grid-template-columns: 350px 480px;
    align-items: center;
    column-gap: 5rem;
  }

  .work-with-us__data-img {
    width: 30px;
    top: 5.5rem;
    right: 2.5rem;
  }
  .work-with-us__img {
    width: 480px;
  }

  .cta__content {
    align-items: center;
    padding: 2.5rem 0;
    border-radius: 0;
    padding: 2rem;
    text-align: center;
  }
  .cta .section__subtitle,
  .cta .section__title {
    text-align: center;
  }
  .cta .section__title {
    margin-bottom: 2.5rem;
  }

  .cta__button {
    font-size: var(--normal-font-size);
  }
  .footer__container {
    position: relative;
    grid-template-columns: repeat(2, max-content);
    justify-content: space-between;
  }
  .footer__content {
    column-gap: 4rem;
  }
  .footer__title,
  .footer__link {
    font-size: var(--normal-font-size);
    line-height: 1.3rem;
  }

  .footer__title,
  .footer__description,
  .footer__link,
  .footer__information,
  .footer__copy {
    line-height: 1.3rem;
  }

  .footer__social-link {
    font-size: 1.5rem;
  }
  .footer__info {
    flex-direction: row;
    justify-content: space-between;
    margin-top: 8.5rem;
  }
  .footer__copy {
    order: -1;
  }
  .footer__spinach {
    bottom: -3rem;
    left: 6rem;
  }
  .footer__onion {
    right: 1rem;
  }

  .scrollup {
    right: 3rem;
  }
}
@media screen and (min-width: 1064px) {
  .container {
    margin-inline: auto;
  }
  .icons__container {
    grid-template-columns: repeat(4, 1fr);
  }
  .text-right {
    text-align: right;
  }
  .text-left {
    text-align: left;
  }
  .orange-dots {
    display: block;
  }
}
@media screen and (min-width: 1280px) {
  .icons__container {
    grid-template-columns: repeat(4, 1fr);
  }
  .text-right {
    text-align: right;
  }
  .orange-dots {
    display: block;
  }

  .text-left {
    text-align: left;
  }
}
