/* NAVIGATION STYLE IS IN style_nav.css */

/*--------- HEADER ---------*/
.header {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow-x: clip;
}

.header:after {
  position: absolute;
  top: -72%;
  left: 35%;
  content: "";
  display: inline-block;
  width: 250vh;
  height: 250vh;
  border-radius: 50%;
  background-image: linear-gradient(
      150deg,
      rgba(21, 86, 181, 0.8) 20%,
      rgba(11, 46, 97, 0.9) 50%
    ),
    url(../../img/06_Zafari/2.JPG);
  background-position: center;
  background-size: cover;
  z-index: -1;
}

/* header - images */
.header__container-images {
  position: absolute;
  top: 18%;
  left: 5%;
}

.header__figure {
  position: absolute;
  width: 60rem;
  height: 45rem;
  outline: 1rem solid var(--color-white);
  box-shadow: 0.7rem 0.7rem 2rem var(--color-shadow-black);
}

.header__figure-1 {
  z-index: 3;
  transform: rotate(-1deg);
}

.header__figure-2 {
  top: 10rem;
  left: 10rem;
  z-index: 2;
  transform: rotate(1deg);
}

.header__figure-3 {
  top: 20rem;
  left: 20rem;
  z-index: 1;
  transform: rotate(-1deg);
}

.header__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* header - text */
.header__container-text {
  position: absolute;
  top: 50%;
  left: 52%;
  transform: translateY(-50%);
  color: var(--color-white);
}

/* header__figure - media */
.header__figure-polygon {
  display: none;
}

/*--------- ABOUT-US ---------*/
.about-us {
  position: relative;
  padding: 10rem 13rem;
  display: flex;
  justify-content: space-between;
}

.about-us:after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  background-image: linear-gradient(transparent, var(--color-bg));
  z-index: -2;
}

.about-us__container-text {
  flex-basis: 48%;
  align-self: center;
  display: grid;
  grid-template-columns: min-content 1fr;
  grid-auto-rows: max-content;
  grid-gap: 2rem;
}

.about-us__box {
  width: 3rem;
  height: 100%;
  background-color: var(--color-blue);
}

.about-us__heading {
  display: block;
}

.about-us__paragraph {
  grid-column: 1/3;
}

.about-us__span {
  font-weight: 600;
  color: transparent;
  background-image: linear-gradient(
    var(--color-orange-light),
    var(--color-orange)
  );
  -webkit-background-clip: text;
  background-clip: text;
  box-decoration-break: clone;
}

.about-us__figure {
  height: 50rem;
  outline: 1rem solid var(--color-white);
  box-shadow: 0.7rem 0.7rem 2rem var(--color-shadow-black);
  transform: rotate(1deg);
  transition: transform 0.3s;
}

.about-us__figure:hover {
  transform: rotate(0);
}

.about-us__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*--------- FUNCTIONALITY ---------*/
.functionality {
  position: relative;
  padding-top: 2vw;
  padding-inline: 10%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-content: space-between;
}

.functionality:after {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  background-color: var(--color-bg);
  z-index: -2;
}

.functionality__container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.functionality__figure {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 30rem;
  height: 30rem;
  margin-bottom: 2rem;
  padding: 3%;
  border-radius: 50%;
  background-image: linear-gradient(
    var(--color-blue-light),
    var(--color-blue-dark)
  );
  text-align: center;
}

.functionality__image {
  height: 80%;
}

.functionality__image[alt="Wrench"],
.functionality__image[alt="spur_gear"] {
  transform: scale(0.8);
}

.functionality__heading {
  text-align: center;
}

/*--------- GALLERY ---------*/
.gallery {
  --gallery-heading-padding: 1rem 5rem;
  --gallery-image-height: 24vw;
  position: relative;
  padding: 10rem 15rem;
  background-color: var(--color-bg);
}

.gallery__container-heading {
  position: relative;
  transition: 0.3s;
}

.gallery__heading {
  text-align: center;
  margin-bottom: 6rem;
  padding: var(--gallery-heading-padding);
  white-space: nowrap;
}

.gallery__heading--black {
  font-weight: 200;
}

.gallery__heading--white {
  position: absolute;
  padding: var(--gallery-heading-padding);
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-white);
  background-image: linear-gradient(
    var(--color-blue-light),
    var(--color-blue-dark)
  );
  clip-path: polygon(10% 0, 55% 0, 45% 100%, 0 100%);
  transition: clip-path 0.3s;
}

.gallery__container-heading:hover .gallery__heading--white {
  clip-path: polygon(55% 0, 100% 0, 90% 100%, 45% 100%);
}

.gallery__container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 8rem;
}

.gallery__figure {
  width: 100%;
  height: var(--gallery-image-height);
  outline: 1rem solid var(--color-white);
  box-shadow: 0.7rem 0.7rem 2rem var(--color-shadow-black);
  transition: all 0.3s;
  overflow: hidden;
}

.gallery__image {
  width: inherit;
  height: inherit;
  object-fit: cover;
  transition: transform 0.3s;
}

/* figure - hover */
@media (hover: hover) {
  .gallery__figure:hover {
    transform: scale(0.95);
    outline-color: var(--color-blue-dark);
    outline-offset: 1rem;
    box-shadow: 0.7rem 0.7rem 0rem rgba(0, 0, 0, 0);
  }

  .gallery__figure:hover .gallery__image {
    transform: scale(1.1);
  }
}

.gallery__a:link,
.gallery__a:visited {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: var(--gallery-image-height);
  font-size: 3rem;
  background-color: var(--color-blue);
  color: var(--color-white);
  transition: 0.3s;
}

.gallery__a:hover,
.gallery__a:active {
  background-color: var(--color-blue-dark);
  letter-spacing: 0.2rem;
}

/*--------- SERVICES ---------*/
.services {
  display: grid;
  width: 100%;
  grid-template-rows: repeat(2, max-content);
  grid-template-columns: 30% 1fr;
}

.services__image {
  width: 100%;
  height: 20vw;
  object-fit: cover;
}

.services__container-text {
  grid-area: 1 / 2 / -1 / -1;
  padding: 10rem;
  background-image: linear-gradient(
    to right bottom,
    var(--color-blue-light),
    var(--color-blue-dark)
  );
  color: var(--color-white);
}

.services__heading {
  margin-bottom: 5rem;
  text-align: center;
}

.services__span {
  font-weight: 400;
  color: transparent;
  background-image: linear-gradient(
    var(--color-orange-light),
    var(--color-orange)
  );
  -webkit-background-clip: text;
  background-clip: text;
}

.services__a {
  display: inline-block;
  color: var(--color-orange-light);
  font-size: 3rem;
  text-decoration: underline 0.1rem;
}

/*--------- CONTACT ---------*/
.contact {
  position: relative;
  display: grid;
  padding: 20rem;
  grid-gap: 3rem;
  grid-template: repeat(2, 1fr) / repeat(2, 1fr) 2fr;
  background-image: linear-gradient(
      rgba(0, 0, 0, 0.5),
      transparent 20%,
      transparent 80%,
      rgba(0, 0, 0, 0.5)
    ),
    url(../../img/06_Zafari/2.JPG);
  background-position: center;
  background-size: cover;
}

.contact__container {
  --clip-path: 90%;
  padding: 3rem;
  background-image: linear-gradient(
    120deg,
    rgb(11, 46, 97),
    rgba(11, 46, 97, 0.8)
  );
  clip-path: polygon(
    0 0,
    100% 0,
    100% var(--clip-path),
    var(--clip-path) 100%,
    0 100%
  );
  z-index: 1;
  backdrop-filter: blur(6px);
  transition: 0.3s;
}

.contact__container:hover:not([class*="nothover"]) {
  background-color: rgb(11, 46, 97);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 100% 100%, 0 100%);
}

.contact__container-address {
  grid-area: 1 / 3 / 3 / 4;
  white-space: pre-line;
}

.contact__heading {
  color: var(--color-white);
}

.contact__paragraph {
  font-weight: 100;
  color: var(--color-white);
}

.contact__phone {
  white-space: nowrap;
}

.a_phone {
  pointer-events: none;
}

/*--------- FOOTER ---------*/
.footer {
  --color-footer-a: rgb(167, 167, 167);
  display: flex;
  background-image: linear-gradient(rgb(49, 49, 49), rgb(37, 37, 37));
  z-index: 1;
}

.footer__container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
  align-items: center;
  color: var(--color-white);
}

.footer__container-nav {
  margin-bottom: 2rem;
  text-align: center;
}

.footer__heading {
  font-weight: 300;
  color: transparent;
  margin-bottom: 1rem;
  background-image: linear-gradient(rgb(230, 230, 230), rgb(163, 162, 162));
  -webkit-background-clip: text;
  background-clip: text;
  letter-spacing: 1rem;
}

.footer__ul-nav {
  display: flex;
}

.footer__li-nav {
  padding-inline: 1.5rem;
}

.footer__li-nav:not(:last-child) {
  border-right: 1px solid var(--color-footer-a);
}

.footer__a-nav:link,
.footer__a-nav:visited {
  color: var(--color-footer-a);
  font-size: 2.2rem;
  font-weight: 200;
  letter-spacing: 0.2rem;
  transition: color 0.3s;
}

.footer__a-nav:hover,
.footer__a-nav:active {
  color: var(--color-white);
}

.footer__container-contact {
  display: flex;
  column-gap: 1.5rem;
}

.footer__a-contact:link,
.footer__a-contact:visited {
  opacity: 0.7;
  transition: opacity 0.3s;
}

.footer__a-contact:hover,
.footer__a-contact:active {
  opacity: 1;
}

.footer__contact {
  height: 3.5rem;
}

.footer__copyright {
  opacity: 0.7;
  font-size: 1.4rem;
  font-weight: 100;
  letter-spacing: 0.2rem;
  margin-top: 2rem;
}

.footer__map {
  flex-basis: 40%;
  height: 50vh;
  background-color: var(--color-blue);
}

/* 1800px */
@media (max-width: 112.5em) {
  html {
    font-size: 56%;
  }
  /*--- FOOTER ---*/
  .footer__map {
    height: 48vh;
  }
}

/* 1620px */
@media (max-width: 101.25em) {
  html {
    font-size: 54%;
  }
  /*--- FOOTER ---*/
  .footer__map {
    height: 45vh;
  }
}

/* 1544.96px */
@media (max-width: 96.56em) {
  html {
    font-size: 50%;
  }
  /*--- FOOTER ---*/
  .footer__map {
    height: 40vh;
  }
  /*--- FUNCTIONALITY ---*/
  .funtionality {
    padding-block: 5vw;
  }
}

/* 1440px */
@media (max-width: 90em) {
  html {
    font-size: 46%;
  }
  /*--- FOOTER ---*/
  .footer__map {
    height: 35vh;
  }
}

/* 1344px */
@media (max-width: 84em) {
  /*--- HEADER ---*/
  .header {
    background-image: linear-gradient(
        150deg,
        rgba(21, 86, 181, 0.8) 20%,
        rgba(11, 46, 97, 0.9) 50%
      ),
      url(../../img/06_Zafari/2.JPG);
    background-position: center;
    background-size: cover;
    overflow: visible;
  }

  .header:after {
    display: none;
  }

  .header__container-images {
    display: none;
  }

  .header__figure-polygon {
    display: block;
    width: 100%;
    height: 100%;
    clip-path: polygon(0 0, 40% 0, 32% 100%, 0 100%);
    overflow: hidden;
  }

  .header__image-polygon {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .header__container-text {
    position: absolute;
    top: 50%;
    left: 40%;
    transform: translateY(-50%);
  }

  /*--- ABOUT US ---*/
  .about-us {
    background-image: linear-gradient(
      to right bottom,
      var(--color-blue),
      var(--color-blue-dark)
    );
    color: var(--color-white);
  }

  .about-us:after {
    display: none;
  }

  .about-us__box {
    background-color: var(--color-bg);
  }

  /*--- FUNCTIONALITY ---*/
  .functionality {
    padding-block: 7vw;
  }

  /*--- GALLERY ---*/
  .gallery {
    --gallery-image-height: 35vw;
  }

  .gallery__container {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__figure {
    outline: 1.5rem solid var(--color-white);
    box-shadow: 0.7rem 0.7rem 2rem var(--color-shadow-black);
  }

  .gallery__figure:last-of-type {
    display: none;
  }

  /*--- CONTACT ---*/
  .contact {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact__container-address {
    grid-area: 2 / 2 / 3 / 4;
  }
}

/* 1210px */
@media (max-width: 75.625em) {
  html {
    font-size: 40%;
  }

  /* FUNCTIONALITY */
  .functionality {
    padding-inline: 10vw;
  }

  /* CONTACT */
  .contact__paragraph {
    font-size: 4rem;
  }

  /* FOOTER */
  .footer__map {
    flex-basis: 50%;
    height: 35vh;
  }

  .footer__a-nav:link,
  .footer__a-nav:visited {
    font-size: 3rem;
  }

  .footer__contact {
    height: 5rem;
  }

  .footer__copyright {
    font-size: 2.5rem;
  }
}

/* 1040px 
 - navigation trigger */
@media (max-width: 65em) {
  html {
    font-size: 38%;
  }

  /* FUNCTIONALITY */
  .functionality {
    padding-block: 10vw;
    grid-template-columns: repeat(2, 1fr);
    grid-row-gap: 5vw;
  }

  .functionality__figure {
    width: 25vw;
    height: 25vw;
  }

  .functionality__heading {
    font-size: 6.5rem;
  }
}

/* 1000px */
@media (max-width: 62.5em) {
  /* ABOUT US */
  .about-us {
    display: block;
    padding-inline: 16rem;
  }
  .about-us__figure {
    display: none;
  }

  /* CONTACT */
  .contact {
    grid-template: repeat(3, 1fr) / repeat(2, 1fr);
  }

  .contact__container-address {
    grid-area: 3 / 1 / 4 / 3;
  }

  /* FOOTER */
  .footer {
    flex-direction: column;
  }

  .footer__container {
    padding-block: 5rem;
  }

  .footer__heading {
    margin-bottom: 1rem;
  }

  .footer__li-nav {
    padding-inline: 4rem;
  }

  .footer__a-nav:link,
  .footer__a-nav:visited {
    font-size: 3rem;
  }

  .footer__container-contact {
    column-gap: 4rem;
  }

  .footer__contact {
    height: 6rem;
  }

  .footer__copyright {
    font-size: 2rem;
  }

  .footer__map {
    width: 100%;
    flex-basis: 40vh;
    order: -1;
  }
}

/* 860px */
@media (max-width: 53.75em) {
  html {
    font-size: 35%;
  }
  /* HEADER */
  .header__figure-polygon {
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 55%);
  }

  .header__container-text {
    top: 60%;
    left: 10%;
    transform: none;
  }

  .header__heading {
    font-size: 10rem;
  }
  .header__paragraph {
    font-size: 4rem;
  }

  /* ABOUT US */
  .about-us__container-text {
    display: block;
  }
  .about-us__heading {
    font-size: 8rem;
    font-weight: 100;
    text-align: center;
    margin-bottom: 2rem;
  }

  .about-us__paragraph {
    font-size: 4rem;
  }

  .about-us__box {
    display: none;
  }

  /* GALLERY */
  .gallery {
    --gallery-image-height: 70vw;
  }

  .gallery__container {
    grid-template-columns: 1fr;
    grid-gap: 15rem;
  }

  .gallery__heading {
    margin-bottom: 9rem;
    font-size: 8rem;
  }

  .gallery__figure {
    outline: 2.5rem solid var(--color-white);
  }

  .gallery__figure:last-of-type {
    display: block;
  }

  .gallery__a:link,
  .gallery__a:visited {
    width: 80%;
    height: auto;
    padding-block: 3rem;
    justify-self: center;
  }

  /* contact */
  .a_phone {
    pointer-events: auto;
  }
}

/* 720px */
@media (max-width: 45em) {
  html {
    font-size: 32%;
  }

  /* ABOUT US */
  .about-us {
    padding: 15rem 10rem;
  }

  /* GALLERY */
  .gallery__a:link,
  .gallery__a:visited {
    font-size: 4rem;
  }

  /* CONTACT */
  .contact {
    grid-template: repeat(5, max-content) / 1fr;
    padding: 15rem;
  }

  .contact__container-address {
    grid-area: auto;
  }

  /* FOOTER */
  .footer__container-nav {
    margin-bottom: 3rem;
  }

  .footer__heading {
    font-size: 5rem;
  }

  .footer__ul-nav {
    flex-direction: column;
  }

  .footer__li-nav:not(:last-child) {
    border-right: none;
  }

  .footer__a-nav:link,
  .footer__a-nav:visited {
    font-size: 4rem;
  }
}

/* 560px */
@media (max-width: 35em) {
  html {
    font-size: 30%;
  }

  /* HEADER 
    .header__figure-polygon {
        clip-path: polygon(0 0, 100% 0, 100% 55%, 0 65%);
    }

    .header__container-text {
        top: 70%;
        left: 10%;
        transform: none;
    } */

  .header__paragraph {
    padding-right: 3rem;
  }

  /* FUNCTIONALITY */
  .functionality {
    grid-template-columns: 1fr;
  }

  .functionality__figure {
    width: 40vw;
    height: 40vw;
  }

  .functionality__heading {
    font-size: 7rem;
  }

  /* GALLERY */
  .gallery {
    padding: 10rem 0;
  }
  .gallery__container {
    grid-gap: 0;
  }

  .gallery__heading {
    font-size: 7rem;
  }

  .gallery__figure {
    outline: none;
    box-shadow: 0.7rem 0.7rem 2rem var(--color-shadow-black);
    box-shadow: none;
  }

  .gallery__a:link,
  .gallery__a:visited {
    margin-top: 5rem;
  }

  /* FOOTER */
  .footer__map {
    flex-basis: 30vh;
  }
}

/* 400 */
@media (max-width: 25em) {
  /* HEADER */
  .header__container-text {
    left: 8%;
  }

  .header__heading {
    font-size: 6rem;
  }

  .header__paragraph {
    font-size: 3.2rem;
    padding-right: 2rem;
  }

  /* GALLERY */
  .gallery__heading {
    font-size: 6rem;
  }

  /* CONTACT */
  .contact {
    padding: 10rem;
  }
}
