@import url("https://fonts.googleapis.com/css2?family=Sanchez&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");

:root {
  --bg-light: #ffffff;
  --bg-darker-light: #e9e9e9;
  --bg-dark: #222222;
  --font-red: #d41919;
  --font-light: #eeeeee;
  --font-white: #ffffff;
  --font-dark: #111111;
  --link-dark: #4d4d4d;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  min-height: fill-available;
  min-height: -webkit-fill-available;
  width: 100%;
  background-color: var(--bg-light);
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
}

nav {
  width: 100%;
  height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-dark);
  padding: 15px 50px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.425);
  position: fixed;
  top: 0;
  z-index: 33;
  /* overflow: hidden; */
}

nav .logo {
  font-family: "Sanchez", serif;
  font-weight: bold;
  color: var(--link-dark);
}

nav .logo a {
  color: var(--font-red);
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.541);
  transition: 0.4s;
}

nav .logo a:hover {
  color: var(--bg-darker-light);
}

nav ul.bigScreen {
  list-style-type: none;
  display: flex;
}

nav ul.bigScreen li {
  padding: 0 10px;
}

nav ul.bigScreen a {
  font-size: 18px;
  letter-spacing: 1px;
  text-decoration: none;
  color: var(--font-light);
  text-shadow: none;
  transition: 0.3s;
}

nav a:hover {
  color: var(--font-red);
}

nav .burger {
  display: none;
}

nav .mobile {
  display: none;
}



#heading {
  /* margin-top: 64px; */
  width: 100%;
  height: 264px;
  background-color: var(--bg-light);
  padding: 10px 10%;
  display: flex;
  /* display: grid;
  grid-template-columns: 1fr 1fr 1fr; */
  justify-content: space-between;
  align-items: center;
}

#heading h1 {
  color: var(--font-light);
  
}

#heading .secondHalf {
  font-size: clamp(0.5rem, 1vw, 1.5rem);
}

#heading h2 {
  color: var(--font-red);
  font-size: clamp(1.2rem, 2.2vw, 2.5rem);
}

#heading .absoluteImg {
  /* position: absolute;
  top: 40px;
  right: 100px; */
  height: 180px;
  width: 150px;
  object-fit: cover;
  margin-bottom: 1.5em;
}

section {
  min-height: calc(100vh - 64px);
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* HOME */
#home {
  min-height: calc(100vh - 314px);
  overflow-x: hidden !important;
  background: linear-gradient(to bottom, var(--bg-light), var(--bg-dark));
}

#home h2#thanx {
  color: #111111;
  height: 64px;
  /* margin-bottom: 60px; */
}

#home a#thanx2 {
  font-size: 24px;
  color: #d41919;
  margin-bottom: 25px;
}

#home .homeWrapper {
  /* width: 70%; */
  width: 80%;
  height: 100%;
  display: grid;
  grid-template-columns: 55% 1fr;
  align-items: center;
  z-index: 2;
}

#home .homeImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#home .homeLogo {
  margin-left: -50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-dark);
  padding: 50px;
}

#home .homeLogoContainer {
  height: 90%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  position: relative;
}

#home .homeLogoContainer .carpenter {
  position: absolute;
  top: 47%;
  right: -50px;
  width: 8vw;
}

#home .homeLogoContainer .offers {
  width: 100%;
  align-self: flex-end;
}

#home .homeHeading {
  font-family: "Sanchez", serif;
  text-rendering: optimizeLegibility;
  font-size: 5vw;
  font-weight: 100;
  color: var(--font-light);
  letter-spacing: 2px;
  text-decoration: underline;
  margin-top: -20px;
}

#home h2 {
  font-size: 2vw;
  color: var(--font-red);
}

#home .homeLogoContainer p {
  font-size: 1.2em;
  color: var(--font-light);
  width: 100%;
  letter-spacing: 1px;
}

#home .homeLogoContainer .red {
  text-transform: uppercase;
  color: var(--font-red);
}

#home .line1 {
  width: 200px;
  position: absolute;
  top: 30%;
  right: 3em;
  transform: rotate(5deg);
  opacity: 0.5;
}
#home .line2 {
  width: 200px;
  position: absolute;
  top: 30%;
  left: 1em;
  transform: rotate(5deg);
  opacity: 0.5;
}

#home .lines {
  width: 104%;
  height: 2vh;
  position: absolute;
  top: 50%;
  border: 2px dashed black;
  transform: rotate(5deg);
  overflow: hidden;
  opacity: 0.3;
}
#home .lines2 {
  width: 104%;
  height: 2vh;
  position: absolute;
  top: 80%;
  border: 2px dashed black;
  transform: rotate(5deg);
  overflow: hidden;
  opacity: 0.3;
}
#home .lines3 {
  width: 104%;
  height: 2vh;
  position: absolute;
  top: 80%;
  border: 2px dashed black;
  transform: rotate(5deg);
  overflow: hidden;
  opacity: 0.3;
}

#offer {
  padding-top: 121px;
  padding-bottom: 121px;
  background-color: var(--bg-dark);
}

.slider {
  position: relative;
  height: 75vh;
  width: 80%;
  max-width: 90%;
  border-radius: 15px;
  overflow: hidden;
}

.slider img {
  opacity: 0.3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* filter: grayscale(1); */
  animation: animationImg 3s linear infinite;
}

.slider p {
  position: absolute;
  top: 1rem;
  left: 15%;
  font-family: "Roboto", sans-serif;
  font-size: 3vw;
  color: rgb(180, 45, 45);
  background-color: #222222;
  text-shadow: 0 0 3px black;
  padding: 10px 20px;
  letter-spacing: 3px;
  border-radius: 10px;
  animation: animationText 3s linear infinite;
}

@keyframes animationText {
  0% {
    opacity: 0;
    transform: translate(-10%) scale(1);
  }

  50% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: scale(1.2);
  }
}

@keyframes animationImg {
  0% {
    opacity: 0.5;
    transform: scale(1) translate(0);
  }

  20% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: scale(1.05) translate(-20px);
  }
}

/* GALLERY */
#gallery {
  height: 100%;
  padding: 80px;
}

#gallery h2 {
  font-size: clamp(1.2rem, 2.2vw, 2.5rem);
  padding-bottom: 20px;
}

#gallery .grid_gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

#gallery .grid_gallery a {
  display: block;
  width: 100%;
  max-width: 300px;
  height: 250px;
  margin: 0.5em;
  border-radius: 2px;
  overflow: hidden;
}

#gallery .grid_gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

#gallery .grid_gallery img:hover {
  transform: scale(1.07);
  filter: brightness(0.9);
}

/* CONTACT */
section#contact {
  width: 100%;
  display: flex;
  justify-content: space-around;
  background: linear-gradient(to bottom, var(--bg-light), var(--bg-dark));
  position: relative;
}

#contact h2 {
  font-size: 42px;
  color: #d41919;
}

section#contact .grid_container {
  width: 80%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 1em;
  justify-content: center;
  align-items: center;
  padding: 2em;
  background-color: var(--bg-dark);
  color: #eeeeee;
  margin-bottom: 1em;
}

section#contact .grid_box {
  width: 100%;
  height: 100%;
  background-color: #2b2b2b;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* align-items: center;
  align-self: flex-start; */
  padding: 1em;
  line-height: 2;
  border: 1px solid rgba(255, 0, 0, 0.247);
}

section#contact .grid_box p, section#contact .grid_box h3 {
  text-align: center;
}

/* section#contact .grid_box.grid_one {
  margin-left: 4em;
} */

h3.ctx_logo {
  font-size: clamp(1.2rem, 2.0vw, 2rem);
  font-family: "Sanchez", serif;
  /* color: #d41919; */
  text-decoration: underline;
}

#contact #absolutImg {
  position: absolute;
  top: 20%;
  right: 0;
  width: 20vw;
  
}
#contact #absolutImg2 {
  position: absolute;
  top: 20%;
  left: 0;
  width: 20vw;
  transform: scaleX(-1);
}

#contact form {
  width: 700px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: center;
  gap: 1em;
  padding: 1em;
  background-color: #2b2b2b;
  border-radius: 5px;
  
}

#contact form input,
#contact form textarea {
  border: 1px solid rgba(0, 0, 0, 0.14);
  padding: 0.2em 1em;
  border-radius: 5px;
  font-family: inherit;
  font-size: inherit;
  color: #1d1d1d;
  /* border: 2px solid red; */
}

#contact form button,
#contact form textarea {
  grid-column: span 2 / span 2;
}

#contact form button {
  border: none;
  padding: 0.4em 0;
  color: var(--bg-darker-light);
  background: linear-gradient(var(--link-dark), var(--bg-dark));
  font-weight: 600;
  letter-spacing: 2px;
  border-radius: 5px;
  font-family: inherit;
  font-size: inherit;
  transition: 0.5s;
}

#contact form button:hover {
  cursor: pointer;
  background: linear-gradient(var(--bg-dark), var(--link-dark));
}

.footer {
  position: absolute;
  bottom: 5px;
  width: 100%;
  text-align: center;
  /* background-color: #000000; */
  color: var(--bg-darker-light);
  /* padding: 15px 0; */
  font-size: 16px;
}

.footer a {
  text-decoration: none;
  color: var(--font-red);
  letter-spacing: 1px;
  transition: 0.3s;
}

.footer a:hover {
  color: orange;
}

/* MEDIA QUERIES */
/* MEDIA QUERIES */
/* MEDIA QUERIES */

@media screen and (max-width: 1000px) {
  #home .homeWrapper {
    width: 94%;
  }

  #contact #absolutImg, #contact #absolutImg2 {
    display: none;
  }

  #gallery {
    height: 100%;
    padding: 20px;
  }

  section#contact .grid_container {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    margin-top: 1em;
  }

  section#contact .grid_box {
    font-size: 12px;
    padding: 5px;
    justify-content: center;
    align-items:center;
    text-align: center;
  }

  section#contact .grid_box h3 {
    padding-bottom: 0;
  }
}


@media screen and (max-width: 700px) {
nav {
  padding: 15px ;
}

  nav ul.bigScreen {
    display: none;
  }

  nav .burger {
    display: block;
    position: absolute;
    right: 20px;
    width: 40px;
    height: 32px;
    z-index: 55;
  }

  nav .burger:hover {
    cursor: pointer;
  }

  nav .burger span {
    display: block;
    width: 100%;
    height: 4px;
    background-color: var(--bg-darker-light);
    transition: 0.5s;
  }

  .spn1 {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: 0% 0%;
  }
  
  .spn2 {
    position: absolute;
    top: 14px;
    left: 0;
    opacity: 1;
    transition: 0.3s ease-in-out;
  }
  
  .spn3 {
    position: absolute;
    top: 28px;
    left: 0;
    transform-origin: 0% 100%;
  }

  .spn1-trnsfrm {
    transform: rotate(45deg);
  }
  
  .spn2-trnsfrm {
    width: 0;
       opacity: 0;
  }
  
  .spn3-trnsfrm {
    transform: rotate(-45deg);
  }

  nav .mobile {
    display: block;
    position: absolute;
    top: -500px;
    left: 0;
    width: 100vw;
    background-color: #111111;
    text-align: center;
    transition: 1s;
  }

  nav .mobile.active {
    display: block;
    top: 64px;
    left: 0;
  }
  nav .mobile li {
    display: block;
  }
  
  nav .mobile li a {
    display: block;
    color: #e9e9e9;
    padding: 30px 0;
    text-decoration: none;
  }
  
  nav .mobile li a:hover {
    background-color: #2b2b2b;
  }

  section {
    min-height: 100%;
  }

  #heading {
    display: none;
  }

  #home .homeWrapper {
    width: 100%;
    height: 100%;
    grid-template-columns:1fr;
  }

  #home .homeLogo {
    margin-left: 0;
  }

  #home h2 {
    font-size: 16px;
  }

  #home .homeLogoContainer .carpenter {
    position: absolute;
    top: 17%;
    right: -50px;
    width: 80px;
  }

  #home .lines, #home .lines2 {
    display: none;
  }

  #offer {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .slider {
    position: relative;
    width: 95%;
    /* max-width: 90%; */
    border-radius: 15px;
    overflow: hidden;
  }

  @keyframes animationImg {
    0% {
      opacity: 0.3;
      transform: scale(1) translate(0);
    }
  
    20% {
      opacity: 1;
    }
  
    90% {
      opacity: 1;
    }
  
    100% {
      opacity: 0;
      transform: scale(1.05) translate(-10px);
    }
  }

  #gallery {
    padding: 10px;
  }

  #gallery h2 {
    font-size: 22px;
    padding: 1em 0;
  }

  #contact {
    padding: 20px;
  }

  #contact h2 {
    font-size: 32px;
  }

  #contact h3 {
    font-size: 14px;
    padding-bottom: 1em;
  }

  #contact form {
    max-width: 100%;
  }

  #contact h3.ctx_logo {
    font-size: 14px;
  }
}

@media screen and (max-width: 400px) {

  #home .homeLogoContainer .offers {
    font-size: 14px;
  }
  #home .homeLogoContainer .carpenter {
    position: absolute;
    top: 17%;
    right: -40px;
    width: 70px;
  }

  #gallery .grid_gallery a {
    display: block;
    width: 100%;
    height: 250px;
    margin: 0.5em;
    border-radius: 2px;
    overflow: hidden;
  }

  #contact {
    padding: 10px;
  }

  section#contact .grid_container {
    padding: 1em;
    border-radius: 5px;
    margin-bottom: 2em;
  }
}