/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@100..900&family=Saira:wght@100..900&display=swap");

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

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: hsl(40, 13%, 36%);
  --first-color-alt: hsl(39, 19%, 17%);
  --title-color: hsl(39, 87%, 12%);
  --text-color: hsl(45, 12%, 40%);
  --white-color: hsl(48, 100%, 99%);
  --dark-color: hsl(39, 86%, 14%);
  --dark-color-alt: hsl(40, 51%, 16%);
  --body-color: #9b9078;
  --body-color-alt: #686050;
  --body-white-color: hsl(0, 0%, 100%);
  --body-first-color: hsl(39, 44%, 74%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat", serif;
  --second-font: "Saira", serif;
  --biggest-font-size: 4.5rem;
  --big-font-size: 2.5rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
  :root {
    --biggest-font-size: 9.5rem;
    --big-font-size: 4rem;
    --h1-font-size: 2rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

input,
button,
body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  background-color: var(--white-color);
  color: var(--text-color);
}

input,
button {
  outline: none;
  border: none;
}

h1, h2, h3, h4 {
  font-family: var(--second-font);
  font-weight: var(--font-medium);
  line-height: 110%;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1260px;
  margin-inline: 1.5rem;
}

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

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

.section__title {
  text-align: center;
  font-size: var(--big-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: 2.5rem;
}

.main {
  overflow: hidden;
  background-color: var(--body-color);
}

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

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

.nav__logo{
  color: var(--white-color);
  font-family: var(--second-font);
  font-weight: var(--font-semi-bold);
  font-size: 1.5rem;
  transition: color .4s;
}

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

.nav__toggle,
.nav__close{
  display: flex;
  color: var(--white-color);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Navigation for mobile devices */
@media screen and (max-width: 1150px){
  .nav__menu{
    position: fixed;
    top: -120%;
    left: 0;
    background-color: var(--body-color);
    width: 100%;
    padding-block: 4rem;
    box-shadow: 0 8px 16px hsla(166, 85%, 8%, .3);
    transition: top .4s;
  }
}

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

.nav__link{
  color: var(--white-color);
  font: var(--font-medium) var(--h1-font-size) var(--second-font);
  line-height: 110%;
  transition: color .4s;
}

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

.nav__close{
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

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

/* Add shadow header */
.shadow-header{
  box-shadow: 0 4px 16px hsla(166, 85%, 8%, .3);
}

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

/*=============== Strona główónna ===============*/
.home__container{
  position: relative;
  padding-top: 3rem;
  row-gap: 0;
}

.home__title{
  color: var(--white-color);
  font-size: var(--biggest-font-size);
  font-weight: var(--font-semi-bold);
  text-align: center;
  font-size: 3.5rem;
  margin-top: -3rem;
}

.home__images{
  position: relative;
  display: grid;
  justify-items: center;
  justify-self: center;
}

.home__shape{
  width: 280px;
  height: 280px;
  background-color: var(--first-color);
  border-radius: 50%;
  clip-path: inset(50% 0 0 0);
  box-shadow: 0 10px 8px hsla(166, 85%, 8%, .3);
}

.home__images img{
  position: absolute;
}

.home__barberpole{
  width: 100px;
  top: 3rem;
}

.home__angelcut{
  max-width: initial;
  width: 300px;
  bottom: -2.5rem;
}

.home__leftwing,
.home__rightwing{
  width: 170px;
   top: 4.5rem;
}

.home__rightwing{
  left: 10.5rem;
}

.home__leftwing{
  right: 10.5rem;
}

.home__aureola{
  width: 110px;
  top: .5rem;
   filter: blur(1px);
}


.home__data{
  margin-top: 2.5rem;
  text-align: center;
}

.home__description{
  color: var(--white-color);
  margin-bottom: 1.5rem;
}

/*=============== Przycisk ===============*/
.button{
  display: inline-flex;
  justify-content: center;
  background-color: var(--first-color);
  color: var(--white-color);
  padding: 1rem 2rem;
  font-weight: var(--font-semi-bold);
  transition: background .4s, box-shadow .4s;
  border-radius: 10px;
  margin: 0.2rem;
}

.button:hover{
  background-color: var(--first-color-alt);
  box-shadow: 0 8px 24px hsla(166, 85%, 8%, .3);
}

.button-dark{
  background-color: var(--dark-color);
}

.button-dark:hover{
  background-color: var(--dark-color);
}

/*=============== Popularne ===============*/
.popular{
  background-color: var(--white-color);
}

.popular .section__title{
  color: var(--title-color);
  margin-top: -4rem;
}

.popular__swiper{
  padding-top: 1.5rem;
}

.popular__card{
  width: 270px;
  display: grid;
  row-gap: 1.5rem;
}

.popular__images{
  position: relative;
  display: grid;
  justify-items: center;
  justify-self: center;
}

.popular__shape{
  width: 195px;
  height: 195px;
  background-color: var(--first-color);
  border-radius: 50%;
  clip-path: inset(50% 0 0 0);
}
.popular__images img{
  position: absolute;
}

.popular__head{
  width: 130px;
  top: -.3rem;
}

.popular__comb{
  width: 60px;
  top: 2.5rem;
  left: -0.5rem;
  filter: blur(0.1px);
  transition: transform .5s .1s;
}

.popular__razor{
  width: 50px;
  right: 0.1rem;
  bottom: 1.5rem;
  rotate: 130deg;
  filter: blur(0.1px);
  transition: transform .5s .1s;
}

.popular__data{
  text-align: center;
}

.popular__name{
  font-size:var(--h1-font-size);
  color: var(--title-color);
  margin-bottom: 0.5rem;
}

.popular__description{
  margin-bottom: 1.5rem;
}

.popular__card:hover .popular__razor{
  transform: translate(.5rem, -1.25rem);
}

.popular__card:hover .popular__comb{
  transform: translate(.3rem, -2.25rem);
}


/* Swiper class */
.swiper{
  overflow: visible;
  margin-inline: initial;
}

/*=============== Lokalizacja ===============*/
.location{
    background-color: var(--white-color)
}

.location__container{
  row-gap: 3rem;
}

.location__data{
  text-align: center;
}

.location .section__title,
.location__description{
  color: var(--title-color);
  margin-bottom: 1.5rem;
}

.location__map{
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center; 
  border-radius: 10px;
}

  .location__google-maps{
  width: 350px;
  height: 300px;
  border-radius: 15px;
  }


.location__shape{
  width: 300px;
  height: 300px;
  background-color: var(--first-color);
  border-radius: 50px;
}

/*=============== Usługi ===============*/
.services{
  background-color: var(--body-first-color);
}

.services .section__title{
  color: var(--dark-color);
  margin-top: -4rem;
}

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

.services__card{
  position: relative;
  background-color: var(--dark-color-alt);
  padding: 1rem .5rem 1.25rem;
  box-shadow: 0 12px 12px hsla(166, 85%, 8%, .3);
  border-radius: 10px;
}

.services__images{
  position: relative;
  display: grid;
  justify-items: center;
  justify-self: center;
}

.services__shape{
  width: 120px;
  height: 120px;
  background-color: var(--first-color);
  border-radius: 50%;
  clip-path: inset(50% 0 0 0);
  box-shadow: 0 4px 6px hsla(166, 85%, 8%, .3);
}

.services__images img{
  position: absolute;
}

.services__head{
  width: 80px;
  top: 0;
  transition: transform .4s;
}

.services__comb{
  width: 30px;
  left: .1rem;
  bottom: 1.5rem;
  rotate: 100deg;
  transition: transform .5s .1s;
}

.services__razor{
  width: 30px;
  top: 2.25rem;
  right: -.1rem;
  rotate: 120deg;
  transition: transform .5s .1s;
}

.services__data{
  margin-top: 1.25rem;
}

.services__name{
  color: var(--white-color);
  font-size: var(--h3-font-size);
  margin-bottom: .75rem;
}

.services__price{
  color: var(--body-color);
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
}

.services__button{
  position: absolute;
  right: .75rem;
  bottom: .75rem;
  width: 30px;
  height: 30px;
  background-color: var(--first-color);
  color: var(--dark-color);
  font-size: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 12px hsla(166, 85%, 8%, .3);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.services__card:hover .services__head{
  transform: translateY(-.35rem);
}

.services__card:hover .services__comb{
  transform: translate(-.25rem, .25rem);
}

.services__card:hover .services__razor{
  transform: translate(-.5rem, -.25rem);
}


/*=============== Kontakt ===============*/
.contact .section__title{
  color: var(--white-color);
  margin-top: -4rem;
}

.contact__container,
.contact__info{
  row-gap: 2rem;
}

.contact__info{
  color: var(--white-color);
  text-align: center;
}

.contact__title{
  font-size: var(--h1-font-size);
  margin-bottom: .5rem;
}
.contact__social{
  display: flex;
  justify-content: center;
  column-gap: 1rem;
}

.contact__social-link{
  font-size: 1.5rem;
  color: var(--dark-color);
  transition: transform .4s;
}

.contact__social-link:hover{
  transform: translateY(-.25rem);
}

.contact__adress{
  font-style: normal;
}

.contact__bukka{
  color: var(--dark-color);
  display: inline-flex;
  column-gap: .5rem;
  margin-top: .5rem;
  font-size: 1.6rem;
}

.contact__bukka span{
  font-size: 1.4rem;
  font-weight: var(--font-semi-bold);
}

.contact__images{
  position: relative;
  display: grid;
  justify-items: center;
  margin-top: 3rem;
}

.contact__shape{
  width: 300px;
  height: 300px;
  background-color: var(--first-color);
  border-radius: 50%;
}

.contact__phone{
  width: 370px;
  position: absolute;
  top: -2.5rem;
  mask-image: linear-gradient(to bottom,
              var(--first-color) 60%,
              transparent 100%);
}

/*=============== FAQ ===============*/
/*=============== FAQ ===============*/
.questions {
  background-color: var(--white-color); /* Tło zgodne z resztą strony */
}

.questions .section__title{
  color: var(--dark-color-alt);
  margin-top: -4rem;
}

.questions__container {
  gap: 1.5rem;
  max-width: 800px; /* Węższe niż reszta, żeby tekst się dobrze czytał */
  margin-inline: auto; /* Wyśrodkowanie kontenera */
}

.questions__item {
  background-color: var(--dark-color-alt); /* Ciemny kolor kart, taki jak w Usługach */
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 4px 12px hsla(166, 85%, 8%, .2);
  overflow: hidden;
  transition: background-color .3s;
}

.questions__item[open] {
  background-color: var(--dark-color); /* Lekka zmiana koloru po otwarciu */
}

.questions__header {
  display: flex;
  align-items: center;
  cursor: pointer;
  column-gap: .75rem;
  list-style: none; /* Ukrywa domyślny trójkącik */
}

/* Ukrywanie domyślnego znacznika details w starszych przeglądarkach */
.questions__header::-webkit-details-marker {
  display: none;
}

.questions__icon {
  font-size: 1.5rem;
  color: var(--first-color); /* Złoty kolor ikon */
}

.questions__item-title {
  font-size: var(--normal-font-size); /* Czytelna wielkość fontu */
  font-family: var(--second-font);
  color: var(--white-color);
  flex-grow: 1; /* Tytuł zajmuje dostępną przestrzeń */
  margin-bottom: 0;
}

.questions__arrow {
  font-size: 1.5rem;
  color: var(--first-color);
  transition: transform .3s;
}

/* Animacja obrotu strzałki po otwarciu */
.questions__item[open] .questions__arrow {
  transform: rotate(180deg);
}

.questions__content {
  padding-top: 1rem;
  padding-left: 2.25rem; /* Wcięcie tekstu pod tytułem */
}

.questions__description {
  font-size: var(--small-font-size);
  color: var(--body-first-color); /* Jasny beżowy tekst */
  line-height: 1.5;
}

.questions__description strong {
  color: var(--white-color);
}

/* Hover effect na komputery */
.questions__item:hover {
  box-shadow: 0 8px 16px hsla(166, 85%, 8%, .3);
}

/*=============== FOOTER ===============*/
.footer{
  background-color: var(--body-first-color);
  padding-block: 4rem 2rem;
}

.footer__container{
  row-gap: 3rem;
  justify-content: center;
  text-align: center;
  justify-items: center;
}

.footer__title{
  font-size: var(--h2-font-size);
  columns: var(--dark-color);
  margin-bottom: 1rem;
}

.footer__pay-blik{
  width: 75px;
  height: 40px;
}

.footer__social,
.footer__pay,
.footer__form{
  display: flex;
  column-gap: 1rem;
}

.footer__social-link{
  font-size: 1.5rem;
  color: var(--dark-color);
  transition: transform .4s;
}

.footer__social-link:hover{
  transform: translateY(-.25rem);
}

.footer__pay-blik,
.footer__money{
  width: 60px;
  height: 30px;
}

.footer__form{
  background-color: var(--dark-color);
  padding: 1rem;
}

.footer__shape{
  color: var(--white-color);
  font-size: var(--h1-font-size);
  justify-content: center;
  display: flex;
  width: 200px;
  height: 50px;
  padding-top: 10px;
  background-color: var(--first-color);
  border-radius: 15px;
}

.footer__copy{
  display: block;
  margin-top: 4rem;
  color: var(--dark-color);
  text-align: center;
  font-size: var(--small-font-size);
}

.footer__author{
  display: block;
  margin-top: 1rem;
  color: hsl(38, 31%, 67%);
  text-align: center;
  font-size: var(--small-font-size);
}

/*=============== SCROLL BAR ===============*/
::-webki-scrollbar{
 background-color: hsl(166, 20%, 30%);
}

::-webki-scrollbar-thumb{
 background-color: hsl(166, 20%, 40%);
}

::-webki-scrollbar-thumb:hover{
 background-color: hsl(166, 20%, 50%);
}

/*=============== SCROLL UP ===============*/
.scrollup{
  position: fixed;
  right: 1rem;
  bottom: -50%;
  background-color: var(--body-color);
  box-shadow: 0 4px 8px hsla(166, 85%, 8%, .4);
  color: var(--white-color);
  display: inline-flex;
  padding: 6px;
  font-size: 1.25rem;
  z-index: var(--z-tooltip);
  transition: bottom .4s, transform .4s;
}

.scrollup:hover{
  transform: translateY(-.5rem);
}

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

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 330px){
  .container{
    margin-inline: 1rem;
  }

  .section__title{
    font-size: 2rem;
  }

  .location__google-maps{
  width: 270px;
  height: 300px;
  border-radius: 15px;
  }

  .home__title{
    font-size: 2.5rem;
  }

  .home__shape{
    width: 250px;
    height: 250px;
  }

    .home__barberpole{
    width: 80px;
    top: 5rem;
  }

  .home__angelcut{
    max-width: initial;
    width: 200px;
    bottom: -2.5rem;
  }

  .home__leftwing,
  .home__rightwing{
    width: 120px;
    top: 6rem;
  }

  .home__rightwing{
    left: 9.5rem;
  }

  .home__leftwing{
    right: 9.5rem;
  }

  .home__aureola{
    width: 90px;
    top: 3rem;
    filter: blur(1px);
  }

  .services__container{
    grid-template-columns: 160px;
    justify-content: center;
  }

  .contact__shape{
    width: 250px;
    height: 250px;
  }

  .contact__phone{
    width: 300px;
    top: -1.5rem;
  }
}

/* For medium devices */
@media screen and (min-width: 576px){
  .home__container,
  .location__container{
    grid-template-columns: 400px;
    justify-content: center;
  }

    .home__title{
    font-size: 3.5rem;
  }

  .location__google-maps{
  width: 500px;
  height: 380px;
  border-radius: 15px;
  }

  .services__container{
    grid-template-columns: repeat(3, 160px);
    justify-content: center;
  }

  .home__barberpole{
    width: 100px;
    top: 3rem;
  }

  .home__angelcut{
    max-width: initial;
    width: 280px;
    bottom: -2.5rem;
  }

  .home__leftwing,
  .home__rightwing{
    width: 190px;
    top: 4rem;
  }

  .home__rightwing{
    left: 10.5rem;
  }

  .home__leftwing{
    right: 10.5rem;
  }

  .home__aureola{
    width: 110px;
    top: 1rem;
    filter: blur(1px);
  }

    .contact__container{
    justify-content: center;
  }

  .contact__info{
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
    column-gap: 6rem;
  }

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

  .footer div:nth-child(3){
    grid-column: 1/3;
  }

}

@media screen and (min-width: 768px){
  .popular__swiper{
    width: 850px;
    overflow-x: clip;
    justify-self: center;
  }

    .location__google-maps{
  width: 700px;
  height: 400px;
  border-radius: 15px;
  }

  .services__container{
    grid-template-columns: repeat(4, 160px);
    justify-content: center;
  }

  .home__barberpole{
    width: 130px;
    top: .5rem;
  }

  .home__angelcut{
    max-width: initial;
    width: 400px;
    bottom: -5.5rem;
  }

  .home__leftwing,
  .home__rightwing{
    width: 250px;
    top: 2rem;
  }

  .home__rightwing{
    left: 11.3rem;
  }

  .home__leftwing{
    right: 11.3rem;
  }

  .home__aureola{
    width: 150px;
    top: -1.75rem;
    filter: blur(1px);
  }

  .home__description{
    padding-top: 50px;
  }

  .contact__container{
    justify-content: center;
  }

  .contact__info{
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
    column-gap: 6rem;
  }

  .footer__container{
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
  }

      .footer__container{
    justify-self: center;
    grid-template-columns: repeat(3, 1fr);
  }

    .footer div:nth-child(3){
    grid-column: 3/3;
  }

}

/* For large devices */
@media screen and (min-width: 1150px){

  .container{
    margin-block: auto;
  }

  .home__container,
  .popular__container,
  .services__container{
    justify-self: center;
  }

      .location__google-maps{
  width: 550px;
  height: 450px;
  border-radius: 15px;
  }

  .section{
    padding-block: 7rem 5rem;
  }

  .section__title{
    margin-bottom: 4rem;
  }

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

  .nav__toggle,
  .nav__close{
    display: none;
  }

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

  .nav__link{
    font-size: var(--normal-font-size);
  }

  .home__container{
    grid-template-columns: 970px;
    max-width: 970px;
    padding-top: 2.5rem;
  }

    .home__title{
    font-size: 6rem;
    padding-bottom: 1rem;
  }

  .popular__container{
    padding-bottom: 2rem;
  }

  .popular__swiper{
    width: 1000px;
  }

    .services__container{
    grid-template-columns: repeat(5, 200px);
    justify-content: center;
  }

  .location__container{
    grid-template-columns: 430px 500px;
    align-items: center;
    column-gap: 8rem;
    padding-block: 2rem;
    justify-self: center;
  }

  .location .section__title{
    font-size: 3rem;
  }

  .contact .section__title{
    font-size: 6rem;
  }

  .contact__container{
    max-width: 2048px;
    gap: 19rem;
  }
  

  .contact__info{
    column-gap: 20rem;
  }

  .contact__images{
    bottom: 30.5rem;
    margin-bottom: -25rem;
  }

  .contact__shape{
    width: 400px;
    height: 400px;
  }

  .contact__phone{
    width: 490px;
    top: -2rem;
  }

  .footer__container{
    justify-self: center;
}

.footer__shape{
  justify-self: center;
height: 60px;
}

}

/* For 2K resolutions (2048 x 1152, 2048 x 1536) */

@media screen and (min-width: 2048px){
  body{
    zoom: 1.3;
  }
}
