@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400&display=swap");
/*------------BASIC SETUP*------------/
/*-----main colors-----*/

:root {
  --main-color: #fff;
  --main-color-darker: #f0f0f0;
  --main-color-text: #555;
  --main-color-detail: #800000;
  --main-color-detail-darker: #570b0a;
  --main-color-shadow: #c2c2c2;
}

/*-----other-----*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background-color: var(--main-color);
  color: var(--main-color-text);
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  font-size: 26px;
  width: 100%;
  margin: 0 auto;
  scroll-behavior: smooth;
}

#about-us-section,
#offer-section,
#gallery-section,
#contact-section,
#houses,
#buildings,
#elevations,
#other,
#renovations,
#interiors {
  scroll-margin-top: 100px;
}

.main-container {
  display: flex;
  flex-direction: column;
}

.section {
  padding-right: 12%;
  padding-left: 12%;
}
/*-----------headings--------------*/

h1 {
  flex-basis: 100%;
  text-align: center;
  text-transform: uppercase;
  font-weight: 300;
  padding-top: 3%;
  letter-spacing: 2px;
}

h1::after {
  display: block;
  height: 2px;
  background-color: var(--main-color-detail);
  content: " ";
  width: 100px;
  margin: 25px auto 60px auto;
}

/*-----------------------------HEADER-------------------------------*/

.header__div {
  height: 60vh;
  background-image: linear-gradient(
      rgba(0, 0, 0, 0.5) 30px,
      rgba(0, 0, 0, 0.85) 300px,
      rgba(0, 0, 0, 0.5) 550px
    ),
    url(../images//logo/newHouseResized.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 0% 35%;
}

.header__paragraph {
  color: var(--main-color-darker);
  display: block;
  text-align: center;
  position: relative;
  left: 0px;
  top: 50%;
  font-weight: 300;
  font-size: 200%;
  letter-spacing: 4px;
  animation: showup 4s linear;
}

@keyframes showup {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
/*----------------------NAV-----------------------------------*/

.nav {
  height: 2.2em;
  display: flex;
  position: sticky;
  top: 0;
  z-index: 2;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  text-transform: uppercase;
  background-color: var(--main-color-detail-darker);
  box-shadow: 5px 5px 20px var(--main-color-text);
}

.divider {
  width: 30%;
}

.options {
  width: 60%;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.nav a:link,
.nav a:visited {
  margin-left: 2%;
  margin-right: 2%;
  color: var(--main-color-darker);
  text-decoration: none;
  border-bottom: 2px solid var(--main-color-detail-darker);
  transition: border-color 400ms ease-out;
  font-size: 0.8em;
}

.nav a:hover,
.nav a:active {
  border-color: 2px solid var(--main-color-darker);
}

.nav__logo {
  height: 80%;
  margin-left: 1%;
  width: auto;
  overflow: hidden;
}

.nav__logo img {
  width: 100%;
  height: 100%;
}

/*----------------------ABOUT US-----------------------------------*/

.about-us-section__div {
  display: flex;
  align-items: center;
  padding-bottom: 5%;
}

.about-us-section__image-div {
  min-width: 12em;
  min-height: 12em;
  background-color: var(--main-color-detail);
  border-radius: 50%;
  background-image: url(../images/normal/uzytkowe03.jpg);
  background-size: cover;
  background-position-x: -90px;
}

.about-us-section__description {
  margin-left: 8%;
  font-size: 0.8em;
  text-align: justify;
}

.about-us-section__description p {
  padding-bottom: 0.4rem;
}

/*----------------------------OFFER-------------------------------*/

.offer-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background-color: var(--main-color-darker);
  padding-bottom: 3%;
}

.offer-section__card {
  width: 8em;
  height: 8em;
  background-color: var(--main-color);
  margin: 1% 2.5%;
  text-align: center;
  border: var(--main-color-darker) solid 1px;
  box-shadow: 5px 5px 20px var(--main-color-shadow);
  position: relative;
  overflow: hidden;
  opacity: 0.6;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.offer-section__card:hover {
  opacity: 1;
}

.offer-section__card i {
  font-size: 1.8em;
  padding-bottom: 10%;
}

.offer-section__card p {
  font-size: 0.8em;
  font-weight: 400;
}

.offer-section a:link,
.offer-section a:visited {
  display: block;
  color: var(--main-color-text);
  text-decoration: none;
  text-transform: uppercase;
  padding-top: 30%;
  padding-bottom: 30%;
}

.offer-section a:hover,
.offer-section a:active {
  color: var(--main-color-detail);
  transition: color 0.3s linear;
}

.offer-section__card span {
  transition: 0.5s;
  opacity: 0;
}

.offer-section__card:hover span {
  opacity: 1;
}

.offer-section__card span:nth-child(1) {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--main-color-detail));
  animation: translate-span-to-right 2s linear infinite;
  animation-delay: 1s;
}

.offer-section__card span:nth-child(2) {
  position: absolute;
  top: 0;
  right: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--main-color-detail));
  animation: translate-span-to-bottom 1s linear infinite;
}

.offer-section__card span:nth-child(3) {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to left, transparent, var(--main-color-detail));
  animation: translate-span-to-left 1s linear infinite;
  animation-delay: 1s;
}

.offer-section__card span:nth-child(4) {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to top, transparent, var(--main-color-detail));
  animation: translate-span-to-top 1s linear infinite;
}

@keyframes translate-span-to-right {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes translate-span-to-bottom {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

@keyframes translate-span-to-left {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes translate-span-to-top {
  0% {
    transform: translateY(100%);
  }
  100% {
    transform: translateY(-100%);
  }
}
/*----------------------------OFFER-DETAILS------------------------*/
/*-----houses------*/
.offer-houses__container,
.offer-elevations__container,
.offer-buildings__container,
.offer-renovations__container,
.offer-interiors__container,
.offer-other__container {
  display: flex;
  flex-wrap: wrap;
  font-size: 0.8em;
  padding-bottom: 3%;
}

.offer-houses__content-container,
.offer-elevations__content-container,
.offer-other__content-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.offer-houses__image,
.offer-buildings__image {
  padding-right: 5%;
  overflow: hidden;
  width: 20;
}

.offer-houses__image img,
.offer-buildings__image img,
.offer-other__image img {
  width: 100%;
  height: auto;
}

.offer-houses__description,
.offer-elevations__description,
.offer-buildings__description,
.offer-other__description {
  width: 60%;
}

.offer-houses__description p,
.offer-elevations__description p,
.offer-buildings__content-container p,
.offer-other__content-container p {
  padding-bottom: 2%;
  text-align: justify;
}

/*-----elevations------*/
.offer-elevations,
.offer-renovations,
.offer-other {
  background-color: var(--main-color-darker);
}

.offer-elevations__image,
.offer-other__image {
  padding-left: 5%;
  overflow: hidden;
}

.offer-elevations__image img {
  width: 100%;
  height: auto;
}

/*----buildings-----*/
.offer-buildings__content-container {
  display: flex;
  justify-content: center;
  align-items: top;
}

/*-----renovations-----*/
.offer-renovations__description {
  padding: 0 5% 2% 5%;
  text-align: justify;
}

.offer-renovations__description p,
.offer-interiors__description p {
  padding-bottom: 2%;
}

.offer-renovations__description li,
.offer-interiors__description li {
  padding-bottom: 0.5%;
}

/*-----interiors-------*/
.offer-interiors__description {
  padding: 0 5% 0 5%;
  text-align: justify;
}

.offer-interiors__description ul {
  padding-bottom: 2%;
}
/*-------------------GALLERY---------------*/
.gallery {
  display: flex;
  flex-direction: column;
}

.gallery img {
  width: 100%;
  height: 100%;
}

.gallery figure {
  margin: 5px 5px 5px 5px;
  width: 150px;
  height: 150px;
}

.gallery__part {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-transform: uppercase;
}

.gallery__part h4 {
  padding-bottom: 1%;
  font-weight: 300;
  letter-spacing: 3px;
  color: var(--main-color-detail);
}

.gallery__part hr {
  width: 100%;
  height: 1px;
  background-color: #800000;
  margin-bottom: 0em;
  margin-top: 0em;
  opacity: 0.6;
  border: 0.5px solid #800000;
}

.gallery__part span {
  height: 3.5px;
}

.gallery__part__subgallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 3% 0 6% 0;
}

/*----------------------------CONTACT--------------------------*/

.contact-section {
  background-color: var(--main-color-darker);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-section__informations h4 {
  font-weight: 300;
  letter-spacing: 5px;
  color: var(--main-color-detail);
  margin: 0 0;
  padding-bottom: 5%;
  text-align: center;
  font-size: 0.8em;
}

.contact-section__container {
  display: flex;
  justify-content: center;
  padding-bottom: 4%;
}

.contact-section__circle {
  width: 70px;
  height: 70px;
  background-color: var(--main-color-detail-darker);
  opacity: 85%;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 120ms ease-out;
}

.contact-section__circle:hover {
  opacity: 1;
}

.contact-section__column {
  margin: 0 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-wrap: wrap;
}
.contact-section__title {
  font-weight: 400;
  padding-top: 1em;
  padding-bottom: 0.8em;
}

.contact-section__info {
  font-size: 0.8em;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5% 0;
}

.contact-section__info p:first-child {
  font-weight: bold;
}

.contact-section__info span {
  display: flex;
}

.contact-section__icon {
  color: var(--main-color);
  font-size: 1.2em;
}

/*------------------------FOOTER----------------------*/

.footer {
  height: 20vh;
  background-color: #242424;
  color: #cacaca;
  font-size: 0.8em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
