/*--------------- VARIABLES  ------------*/

:root {
  --grey-color: #787878;
  --beige-color: #c6beae;
  --lightgrey-color: #9f9d9c;
  --green-color: #465d4d;
  --darkgrey-color: #6f6f6f;
  --lightbeige-color: #fffaf5;
  --black-color: #222222;
}

/*--------------- FONTS ---------------*/

@font-face {
  font-family: roboto-bold;
  src: url("../fonts/Roboto/Roboto-Bold.ttf");
  font-display: swap;
}

@font-face {
  font-family: roboto-regular;
  src: url("../fonts/Roboto/Roboto-Regular.ttf");
  font-display: swap;
}

@font-face {
  font-family: montserrat-medium;
  src: url("../fonts/Montserrat/Montserrat-Medium.ttf");
  font-display: swap;
}

@font-face {
  font-family: montserrat-light;
  src: url("../fonts/Montserrat/Montserrat-Light.ttf");
  font-display: swap;
}

/*------------- BASE STYLES  ------------*/

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  margin: 0 auto;
}

body {
  font-family: roboto-regular, "Times New Roman", serif;
  margin-top: 105px;
  background-color: var(--darkgrey-color);
  font-size: 14px;
}

h1, h2, h3, h4 {
  font-family: montserrat-light, "Times New Roman", serif;
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 20px;
}

h4 {
  font-size: 16px;
}

p, ul, li{
  color: var(--black-color);
}

a {
  text-decoration: none;
  color: #ffffff;
}

img {
  max-width: 100%;
  margin: 0;
}

/*-------------- CONTAINERS ETC. --------------*/

.wrapper {
  width: 90%;
  margin: 0 auto;
}

.button {
  display: block;
  border-radius: 25px;
  text-transform: uppercase;
  text-align: center;
  margin: 40px auto 5px auto;
  padding: 10px 40px;
  width: 214.19px;
}

.hide {
  display: none;
}

/*------------------ HEADER -------------------*/

.overlay {
  display: none;
}

.overlay--show {
  display: block;
  position: fixed;
  z-index: 9;
  width: 100vw;
  height: 150vh;
  background-color: rgba(0, 0, 0, 0.7);
}

.header {
  position: fixed;
  top: 0;
  z-index: 998;
  width: 100%;
  background-color: var(--darkgrey-color);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
  transition: top 0.3s;
}

.header__bar {
  display: none;
}

.header__container {
  width: 90%;
  margin: auto;
  min-height: 130px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo img {
  padding-top: 30px;
  width: 90px;
}

.header__phone, .header__triangle {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  transition: top 0.3s;
}

.header__phone p {
  font-size: 12px;
  text-transform: uppercase;
  color: #ffffff;
  margin-top: 3px;
  margin-bottom: 0;
  line-height: 1;
}

.header__triangle {
  width: 60%;
  max-width: 277px;
}

.phone__icon {
  width: 30px;
  padding-top: 7px;
  margin: auto;
}

.header__navigation {
  font-family: montserrat-medium, "Times New Roman", serif;
  position: fixed;
  top: 0;
  right: 0;
  width: 65vw;
  background-color: var(--lightgrey-color);
  transition: all 1s ease-in-out;
  border-bottom-left-radius: 50px;
  height: 0;
  opacity: 0;
  overflow: hidden;
  z-index: 999;
}

.header__navigation.open {
  height: 550px;
  opacity: 1;
}

.navigation__items {
  text-align: right;
  margin-top: 120px;
  margin-bottom: 40px;
  text-transform: uppercase;
  font-size: 20px;
}

.navigation__item {
  padding: 20px 11% 20px 0px;
}

.navigation__item a:active {
  border-bottom: 5px solid var(--green-color);
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

.navigation__item--social img {
  width: 30px;
  margin-left: 10px;
}

/* ---------- MENU HAMBURGER BUTTON -------- */

/* Styling the menu button */
.menu-btn {
  margin-right: 10px;
  margin-top: 30px;
  cursor: pointer;
  transition: all 0.5s ease-out;
  z-index: 1000;
}

/* Styling the hamburger lines */
.menu-btn .btn-line {
  width: 45px;
  height: 5px;
  margin: 10px 0 10px 0;
  transition: all 0.5s ease-out;
  border-radius: 20%;
  background-color: var(--beige-color);
}

/* Adding transform to the X */
.menu-btn.close {
  transform: rotate(180deg);
}

/* Styling the three lines
    to make it an X */
.menu-btn.close .btn-line:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.menu-btn.close .btn-line:nth-child(2) {
  opacity: 0;
}

.menu-btn.close .btn-line:nth-child(3) {
  transform: rotate(-45deg) translate(10px, -10px);
}


/*------------------------- HOME PAGE  ------------------------*/

.home__landing {
  height: 84vh;
  background: url("../img/Home/landing.jpg") center;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
}

.landing__text {
  width: 95%;
  padding: 20px 0;
  color: var(--beige-color);
  background-color: rgb(31, 31, 31, .8);
  border-radius: 50px 5px 50px;
  font-family: montserrat-light, "Times New Roman", serif;
  text-align: center;
}

.landing__text span {
  font-size: 24px;
  color: var(--lightbeige-color);
}

.home__second {
  background-color: var(--beige-color);
}

.home__second--white {
  background-color: var(--lightbeige-color);
}

.second__photo { 
  width: 80%;
  margin: auto;
  padding: 50px 0 10px 0;
  text-align: center;
}

.second__photo img {
  width: 100%;
  max-width: 350px;
}

.second__text {
  padding-bottom: 30px;
}

.second__headline {
  margin-bottom: 30px;
}

.second__headline--lightbeige {
  color: var(--lightbeige-color);
}

.second__headline--green {
  color: var(--green-color);
}

.second__link {
  background-color: var(--lightbeige-color);
  color: var(--black-color);
}

.second__link:hover {
  background-color: var(--green-color);
  color: var(--lightbeige-color);
}

.home__third {
  background-color: var(--lightbeige-color);
  padding: 20px 0;
}

.home__third h2, h3 {
  color: var(--green-color);
}

.third__iconography {
  text-align: center;
}

.third__iconography div {
  margin-top: 40px;
}

.third__iconography h3 {
  margin-top: 10px;
}

.third__iconography img {
  width: 45%;
  max-width: 150px;
}

.third__headline {
  margin-top: 40px;
}

.third__link {
  border: 2px solid var(--green-color);
  color: var(--black-color);
}

.third__link:hover {
  background-color: var(--green-color);
  color: var(--lightbeige-color);
}

.home__fourth {
  padding-top: 20px;
  position: relative;
}

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

.home__fourth--dark h2, span {
  color: var(--beige-color);
}

.home__fourth--white {
  background-color: var(--lightbeige-color);
  padding-bottom: 20px;
}

.home__fourth--white h2, span {
  color: var(--green-color);
}

.home__circle--1 {
  position: absolute;
  bottom: 20%;
  height: 40%;
  aspect-ratio: 1 / 2;
  background-color: var(--green-color);
  border-radius: 0 40rem 40rem 0;
}

.home__circle--2 {
  position: absolute;
  top: -7.5%;
  right: 0;
  height: 15%;
  aspect-ratio: 1 / 2;
  background-color: var(--beige-color);
  border-radius: 40rem 0 0 40rem;
}

.home__circle--3 {
  position: absolute;
  bottom: 10%;
  height: 30%;
  aspect-ratio: 1 / 2;
  background-color: var(--green-color);
  border-radius: 0 40rem 40rem 0;
}

.home__circle--4 {
  position: absolute;
  top: 20%;
  right: 0;
  height: 15%;
  aspect-ratio: 1 / 2;
  background-color: var(--green-color);
  border-radius: 40rem 0 0 40rem;
}

.fourth__tiles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 13px;
  margin: 30px 0;
}

/* FLIP BOX */

.tiles__tile {
  /* max-width: 170px;
  width: 100%; */
  width: 45.4vw;
  height: 45.4vw;
  min-width: 170px;
  min-height: 170px;
  max-width: 210px;
  max-height: 210px;
  perspective: 1000px;
}

.tiles__tile-container {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.tiles__tile:hover .tiles__tile-container {
  transform: rotateY(180deg);
}

.tile__front,
.tile__back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  background-color: var(--grey-color);
  box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.3);
  border-radius: 6px;

  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;

  padding: 10px;
}

.tile__front--white {
  background-color: var(--lightbeige-color);
}

.tile__front img {
  width: 60%;
}

.tile__back {
  transform: rotateY(180deg);
  background-color: var(--darkgrey-color);
}

.tile__back--green {
  background-color: var(--green-color);
}

.tile__headline {
  margin: 0;
  color: var(--beige-color);
}

.tile__headline--front--green {
  color: var(--green-color);
}

.tile__text {
  color: var(--lightbeige-color);
  font-size: 12px;
}

/*------------------------- FOOTER  ------------------------*/

.footer {
  background-color: var(--green-color);
  padding: 50px 0;
  font-family: montserrat-light, "Times New Roman", serif;
  color: var(--lightbeige-color);
}

.footer__logo {
  width: 70%;
  max-width: 400px;
  margin: 0 auto;
}

.footer__adress {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 30px 0;
}

.footer__adress span {
  color: var(--lightbeige-color);
  margin: 3px 0;
}

.footer__adress--bold {
  font-weight: bold;
  color: var(--lightbeige-color);
}

.footer__links {
  text-align: center;
}

.footer__links, .footer__links span {
  font-weight: bold;
  color: var(--lightbeige-color);
}

.footer__social img {
  width: 40px;
  margin: 20px 8px 40px 8px;
}

/*---------------OFERTA.HTML -----------------------------  */

.offer__strips {
  padding: 50px 0;
  background-color: var(--beige-color);
}

.offer__strips h2 {
  color: var(--lightbeige-color);
}

.strips__container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.strips__strip {
  display: flex;
  align-items: center;
  box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.3);
  border-radius: 5px;
  margin-bottom: 8px;
  width: 100%;
  max-width: 450px;
}

.strips__strip img {
  width: 50px;
  margin: 10px 20px;
}

.strips__strip span {
  color: var(--lightbeige-color);
  font-size: 18px;
}

.strips__strip--green {
  background-color: var(--green-color);
}

.strips__text {
  width: 100%;
  max-width: 450px;
  font-style: italic;
}

.strips__text ul {
  list-style-type: disc;
  list-style-position: inside;
  margin-bottom: 12px;
}

/*--------------- RODO -----------------------------  */

.policy {
  padding: 50px 0;
  background-color: var(--lightbeige-color);
}

.policy h2 {
  color: var(--green-color);
}

/*---------------KONTAKT.HTML -----------------------------  */

.contact__offices {
  padding: 50px 0;
  background-color: var(--beige-color);
  color: var(--lightbeige-color);
}

.contact__offices span {
  color: var(--lightbeige-color);
}

.offices__container {
  padding-bottom: 60px;
}

.offices__localization {
  margin: 20px 0;
  text-align: center;

}

.adress__map {
  text-align: center;
  margin: 10px 0 30px 0;
}

.adress__map iframe {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1 / 0.86;
}

/*---- CONTACT FORM ----*/

.contact__sendmessage {
  background-color: var(--green-color);
  border: 1px solid var(--lightbeige-color);
  border-radius: 40px;
  max-width: 452px;
  margin: auto;
}

.contact__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 0;
  width: 90%;
  margin: auto;
}

.contact__header {
  max-width: 400px;
  width: 100%;
}

.contact__form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact__input {
  max-width: 400px;
  width: 100%;
  padding: 8px 12px;
  margin-bottom: 15px;
  border: 1px solid var(--lightbeige-color);
  border-radius: 13px;
  background-color: var(--beige-color);
}

.contact__message {
  max-width: 400px;
  width: 100%;
  min-height: 200px;
  padding: 12px;
  margin-bottom: 15px;
  resize: none;
  border: 1px solid var(--lightbeige-color);
  border-radius: 13px;
  background-color: var(--beige-color);
}

.contact__message::placeholder, .contact__input::placeholder {
  color: var(--black-color);
}

.contact__submit {
  padding: 8px 12px;
  border: 1px solid var(--lightbeige-color);
  border-radius: 13px;
  background-color: var(--green-color);
  color: white;
  display: block;
}

.contact__submit:active {
  border: 1px solid var(--green-color);
  background-color: var(--beige-color);
  color: var(--green-color);
}

.contact__permission {
  font-size: 10px;
  max-width: 400px;
  color: var(--lightbeige-color);
}

/*------------------------------------ MEDIA QUERRY   ----------------------------------*/


@media (min-width: 550px) {
  .fourth__tiles {
    gap: 30px;
  }
}

@media (min-width: 800px) {

  body {
    margin-top: 105px;
  }  

  .wrapper {
    width: 80%;
  }

  .home__second, .home__third, .home__fourth {
    padding: 30px 0;
  }

/*-------------- HEADER ------------*/

.header__phone, .header__triangle, .menu-btn {
  display: none;
}

.header__logo img {
  padding-top: 0;
  width: 100px;
}

.header {
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
}

.header__container {
  min-height: 100px;
  width: 20%;
  justify-content: center;
  margin-left: 5%;
}

.header__navigation {
  position: static;
  height: auto;
  width: 65%;
  max-width: 800px;
  border-bottom-left-radius: 0;
  opacity: 1;
  background-color: var(--darkgrey-color);

  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 5%;
  z-index: unset;
}

.navigation__items {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  margin: 0;
  width: 100%;

  text-align: center;
}

.navigation__item a {
  color: var(--beige-color);
}

.navigation__item {
  padding: 0;
}

.navigation__item--social {
  display: none;
}

.header__bar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 40px;
  display: flex;
  justify-content: space-evenly;

  background-color: var(--beige-color);
}

.bar__item {
  display: flex;
  align-items: center;
}

.bar__item a {
  color: var(--lightbeige-color);
  font-family: montserrat-light, "Times New Roman", serif;
}

.bar__item img {
  margin-right: 12px;
  width: 25px;
}

.landing__text {
  width: auto;
  padding: 2vw 10vw;
}

.third__iconography {
  display: flex;
  justify-content: space-between;
}

.third__iconography div {
  width: 45%;
}

.third__iconography p {
  max-width: 400px;
  margin: auto;
  text-align: justify;
}

.home__circle--1 {
  top: 50%;
  bottom: 50%;
  transform: translateY(-50%);
  height: 50%;
}

.home__circle--2 {
  top: -15%;
  right: 0;
  height: 35%;
  aspect-ratio: 1 / 2;
  background-color: var(--beige-color);
  border-radius: 40rem 0 0 40rem;
}

.strips__strip {
  margin-bottom: 12px;
}

.offices__localization {
  display: flex;
}

.localization__adress {
  width: 50%;
}

.adress__map iframe {
  width: 95%;
  max-width: 400px;
}

}

@media (min-width: 1000px) {

  .footer {
    padding: 60px 0;
    display: flex;
    justify-content: space-around;
  }

  .footer__logo, .footer__adress, .footer__links {
    width: 33%;
  }

  .footer__logo {
    text-align: center;
  }
  
  .footer__logo img {
    width: 80%;
  }

  .footer__social img {
    margin: 20px 8px 20px 8px;
  }

  /*--------------------- OFERTA HTML  ------------------*/

  .relative {
    position: relative;
  }

  .strips__container {
    width: 50%;
  }

  .strips__text {
    position: absolute;
    right: 0%;
    width: 50%;
    max-width: none;
    padding-left: 82px;
  }

  .strips__text p, .strips__text ul {
    max-width: 450px;
  }

}


@media (min-width: 1200px) {

  .home__second, .home__third, .home__fourth {
    padding: 80px 0 60px 0;
  }

  .home__second {
    display: flex;
  }

  .home__second--reverse {
    flex-direction: row-reverse;
  }

  .second__text {
    width: 50%;
    margin-left: 0;
    margin-top: auto;
    margin-bottom: auto;
    padding-bottom: 0;
  }

  .second__text--reverse {
    margin-left: 10%;
  }

  .second__photo { 
    width: 30%;
    padding-top: 0;
  }

  .second__photo--reverse { 
    margin-left: 0;
  }
  
  .second__photo img {
    max-width: 100%;
    max-width: 450px;
  }

  .fourth__tiles {
    padding-left: 8%;
    padding-right: 8%;
  }

  .tiles__tile {
    max-width: 220px;
    max-height: 220px;
  }

  .tile__headline {
    font-size: 20px;
  }
  
  .tile__text {
    font-size: 14px;
  }

}


@media (min-width: 1400px) {

  .navigation__items {
    font-size: 22px;
  }

  .fourth__tiles {
    padding-left: 12%;
    padding-right: 12%;
  }

  .strips__container {
    width: 60%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
  }
  
  .strips__text {
    align-self: self-start;
    width: 40%;
    font-size: 16px;
  }

  .strips__strip {
    flex-direction: column;
    width: 45%;
    max-width: 380px;
    padding: 15px 0;
    margin-bottom: 0;
  }

  .strips__strip img {
    width: 100px;
  }

  .strips__strip span {
    font-size: 22px;
  }

  .offices__flex {
    display: flex;
  }

  .offices__container {
    width: 50%;
  }

  .offices__localization {
    flex-direction: column;
  }

  .localization__adress {
    width: 100%;
  }

  .contact__sendmessage {
    width: 50%;
  }
}

@media (min-width: 1700px) {

  body {
    font-size: 15px;
  }

  h1 {
    font-size: 34px;
  }
  
  h2 {
    font-size: 26px;
  }
  
  h3 {
    font-size: 22px;
  }
  
  h4 {
    font-size: 18px;
  }

  .navigation__items {
    font-size: 22px;
  }

  .fourth__tiles {
    padding-top: 20px;
  }

  .contact__container {
    padding: 50px 0;
  }
}