/******************/
/* General styles */
/******************/
:root {
  /* Website colors */
  --dark-80: #1e1e1e;
  --dark-100: #2c2c2c;
  --blue-80: #124fdc;
  --blue-100: #1942a2;
  --white-80: #f8f8f8;
  --white-60: #808080;

  /* Generic colors */
  --black-color: #000;
  --white-color: #fff;
}

/* .header-wrapper__fence-page {
  background-color: aqua;
} */

header {
  background-image: url("../assets/backgrounds/grid-dark.png");
  background-size: cover;
  /* padding: 50px 0; */
}

.header-wrapper-black {
  width: 100%;
  /* position: absolute; */
  /* top: 50px; */
  /* left: 0; */

  /* height: 50px; */
  display: flex;
  align-items: center;
  justify-content: space-between;

  /* temp line to check presence */
  /* background-color: violet; */

  /* margin-bottom: 50px; */
}

/* the underline effect on hover */
.nav-link:after {
  background-color: var(--dark-100);
}

.nav-link,
.nav-link:link,
.nav-link:visited {
  color: var(--dark-100);
}

/* Lets the user know that link is disabled */
.cursor-not-allowed {
  cursor: not-allowed;
}

/* RETURN TO HOMEPAGE - FIXED POSITIONED */
.return-to-homepage {
  display: inline-block;
  position: fixed;
  right: calc((99vw - 1200px) / 2);
  transform: scale(1);
  transition: 0.3s ease-in;
  /* top: 0;
  left: 0; */
  z-index: 10;
  top: 100px;
  /* background-color: palevioletred; */

  top: 170px;
}

.return-to-homepage a:link,
.return-to-homepage a:visited {
  display: flex;
  gap: 20px;
  align-items: center;

  background-color: var(--dark-100);

  padding: 20px 30px;
  border-radius: 50px;
  text-decoration: none;

  transition: all 0.3 ease-out;
}

.return-to-homepage a:hover {
  background-color: var(--blue-80);
  box-shadow: 0 5px 10px 5px rgba(18, 79, 220, 0.3);
}

.return-to-homepage a:active {
  background-color: var(--blue-100);
  box-shadow: 0 5px 10px 5px rgba(25, 66, 162, 0.3);
}

.return-to-homepage_span {
  color: var(--white-color);

  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
}

/* POPUP FORM */
/* Hero form */
.fence-form-container {
  /* temp */
  /* background-color: red; */
  background-color: var(--dark-100);

  /* Structure */
  padding: 40px;
  box-shadow: 0 20px 20px 20px rgba(0, 0, 0, 0.3);

  /* Location */
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 4;
  transform: translate(-50%, -40%) scale(0);
  /* transform: translate(-50%, -40%); */
  transition: 0.5s ease-out;
}

/* Hero form */
.fence-form-heading {
  /* For close icon's absolute positioning */
  position: relative;

  text-align: left;
  color: var(--white-color);
}

/* Hero form */
.fence-form-heading h3 {
  font-size: 32px;
  font-weight: 600;
  text-transform: uppercase;

  margin-bottom: 12px;
}

/* Hero form */
.fence-form-heading p {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;

  max-width: 85%;
}

/* Close icon for form */
/* Hero form */
.fence-form-heading svg {
  cursor: pointer;

  position: absolute;
  top: 4%;
  right: 0;
}

.fence-form-input {
  font-family: Gotham;
  color: var(--white-color);

  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  height: 40px;
  width: 100%;

  border: none;
  border-bottom: 1px solid var(--white-color);

  background: transparent;
  outline: none;

  margin-top: 22px;
}

.fence-form-button {
  color: var(--dark-100);
  font-family: Gotham;
  font-size: 20px;
  font-weight: 400;
  text-transform: uppercase;

  outline: none;
  border: none;
  width: 100%;
  padding: 20px 32px;
  border-radius: 30px;

  cursor: pointer;
  transition: all 0.3s ease-out;

  margin-top: 30px;
}

.fence-form-button:hover {
  color: var(--white-color);
  background-color: var(--blue-80);
}

/* When form is open */
.fence-form-container.active {
  transform: translate(-50%, -40%) scale(1);
}

/* .fence-content.hide {
  transform: scale(0);
  transition: 0.5s;
} */

/* SECTION FENCE */
.section-fence {
  background-image: url("../assets/backgrounds/grid-dark.png");
  /* background-size: cover; */
  background-size: contain;

  background-position: center;

  padding: 150px 0;
}

.header_fence-page {
  /* temp */
  height: 110px;
  /* background-color: darkblue; */
}

.fence-heading-container {
  /* padding-top: 50px; */
  margin-top: 50px;
  display: flex;
  gap: 30px;
  margin-bottom: 75px;
}

.fence-heading-container svg {
  transform: translate(-50%, -50%);
}

.fence-heading-container h2 {
  color: var(--black-color);
  font-size: 40px;
  font-weight: 600;
  text-transform: uppercase;
  max-width: 400px;
}

.fence-description {
  display: flex;
  /* gap: 50px; */
}

.description-text {
  width: 45%;
}

.description-text p {
  color: var(--white-60);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;

  margin-bottom: 30px;
}

.description-text ul {
  list-style: none;
  background-color: var(--white-80);
  /* width: 90%; */
  padding: 20px 0px 20px 32px;

  margin-bottom: 30px;
}

.description-text li {
  color: var(--dark-100);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  width: 85%;

  margin-bottom: 16px;
}

.description-text li:last-child {
  margin-bottom: 0;
}

.buttons-fence {
  display: flex;
  /* gap: 5%; */
  justify-content: space-between;
}

.button-calculate,
.button-mount {
  width: 48%;
  font-size: 16px;
  font-weight: 400;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.7px;

  padding: 20px 0;
  border-radius: 50px;
  border: none;

  cursor: pointer;
  transition: all 0.3s ease-out;
}

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

.button-mount {
  color: var(--dark-100);
  background-color: var(--white-color);
  border: 1px solid var(--dark-100);

  letter-spacing: -0.5px;
}

.button-calculate:hover,
.button-mount:hover {
  color: var(--white-color);
  background-color: var(--blue-80);
}

/* Image part */
.description-image3d {
  width: 55%;
}

model-viewer {
  width: 100%;
  height: 100%;
}

/********************/
/* SECTION FEATURES */
/********************/

.fence-features {
  background-image: url("../assets/backgrounds/grid-white-hero.png");
  background-color: var(--dark-100);
  background-size: cover;
  background-position: center;
  padding: 100px 0;

  color: var(--white-color);
}

.fence-features h2 {
  font-size: 40px;
  text-transform: uppercase;

  margin-bottom: 30px;
}

.features-text {
  display: flex;
  gap: 50px;
}

.features-text p {
  width: 50%;

  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
}

/********************/
/* SECTION MOUNTING */
/********************/

.section-mounting {
  background-image: url("../assets/backgrounds/grid-dark.png");
  background-size: contain;
  background-position: center;
  padding: 100px 0;
}

.heading-mounting {
  display: flex;
  gap: 30px;
  margin-bottom: 75px;
}

.heading-mounting svg {
  transform: translate(-50%, -50%);
}

.heading-mounting h2 {
  color: var(--black-color);
  font-size: 40px;
  font-weight: 600;
  text-transform: uppercase;
  max-width: 400px;
}

.mounting-description {
  display: flex;
  /* gap: 50px; */
  justify-content: space-between;
}

.mounting-column {
  width: 48%;
}

.width-100 {
  width: 100%;
}

.mounting-column p {
  background-color: var(--white-80);
  height: 280px;
  padding: 30px;

  color: var(--dark-100);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;

  margin-bottom: 100px;
}

.mounting-column.width-100 p {
  height: unset;
  max-height: 280px;
}

.column-img {
  position: relative;
  height: 550px;
  overflow: hidden;

  /* background-color: brown; */
}

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

.columng-img-heading {
  display: flex;
  width: 275px;
  justify-content: space-between;

  position: absolute;
  top: -2%;
  left: -19.5%;
  transform: rotate(-90deg) translate(-50%, -50%);
  /* align-items: center; */
}

.left-adjust {
  left: 20%;
}

.columng-img-heading svg {
  transform: translate(-50%, 25%);
}

.columng-img-heading h3 {
  color: var(--dark-100);
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  max-width: 400px;
}

.column-img img {
  height: 100%;
  padding-left: 50px;
}

/******************************/
/******************************/

/* MOBILE version (380-480px) */
/* (max-width: 480px) */
@media screen and (max-width: 480px) {
  header {
    padding: 0;
  }

  /* MOBILE NAV */
  .header-wrapper.show .nav-link,
  .header-wrapper.show .nav-link:link,
  .header-wrapper.show .nav-link:visited {
    color: var(--white-color);
  }

  /* Change nav icons stroke on click for mobile nav */
  .nav-icons svg > path {
    fill: var(--white-80);
  }

  .nav-icons svg > rect {
    stroke: var(--white-80);
  }

  .return-to-homepage {
    top: 100px;
    right: calc((99vw - 360px) / 2);
  }

  /* Fence form */
  .fence-form-container {
    width: 80%;
  }

  .fence-form-heading h3 {
    font-size: 20px;
    line-height: 1.5;

    margin-bottom: 12px;
  }

  .fence-form-heading p {
    font-size: 14px;

    max-width: 85%;
  }

  .fence-form-heading svg {
    top: -25%;
    right: -10%;

    height: 12px;
    width: 12px;
  }

  .fence-form-input {
    font-size: 14px;

    height: 40px;
  }

  .fence-form-button {
    font-size: 16px;

    width: 100%;
    padding: 10px 32px;

    margin-top: 30px;
  }

  .section-fence {
    padding: 100px 0 100px 0;
    background-size: contain;
  }

  .gap-15 {
    gap: 15px;
  }

  .fence-heading-container h2 {
    font-size: 32px;
  }

  .title-euro-mobile {
    font-size: 24px !important;
  }

  .fence-description {
    flex-direction: column-reverse;
    gap: 30px;
  }

  .description-image3d {
    width: 100%;
    height: 250px;
  }

  .description-text {
    width: 100%;
  }

  .description-text p {
    font-size: 16px;
  }

  .description-text ul {
    padding: 20px;
  }

  .description-text li {
    font-size: 16px;
  }

  .buttons-fence {
    flex-direction: column;
    gap: 20px;
  }

  .button-calculate,
  .button-mount {
    width: 100%;
  }

  /********************/
  /* SECTION FEATURES */
  /********************/

  .fence-features {
    background-size: contain;
  }

  .fence-features h2 {
    font-size: 24px;
  }

  .features-text {
    flex-direction: column;
    gap: 30px;
  }

  .features-text p {
    width: 100%;

    font-size: 16px;
    line-height: 1.8;
  }

  /********************/
  /* SECTION FEATURES */
  /********************/

  .mounting-description {
    flex-direction: column;
    gap: 70px;
  }

  .mounting-column {
    width: 100%;
  }

  .mounting-column p {
    background-color: var(--white-80);
    height: unset;
    padding: 20px;

    margin-bottom: 50px;
  }

  .column-img {
    position: relative;
    height: unset;
    width: 100%;
    overflow: unset;
  }

  .columng-img-heading {
    width: unset;
    position: unset;
    transform: unset;

    display: block;
    margin-bottom: 30px;
    text-align: center;
  }

  .columng-img-heading svg {
    display: none;
  }

  .column-img img {
    height: unset;
    width: 80%;
    padding-left: unset;

    display: block;
    margin: 0 auto;
  }

  /* Fixing bold elements for mobile */
  .fence-form-heading h3,
  .fence-heading-container h2,
  .fence-features h2,
  .heading-mounting h2 {
    font-weight: unset;
    -webkit-text-stroke: 1px;
  }

  .columng-img-heading h3 {
    font-weight: unset;
    -webkit-text-stroke: 0.5px;
  }
}
