/* ---------- Fonts ---------- */
@font-face {
  font-family: 'h1';
  src: url('/fonts/h1.woff2') format('woff2'),
       url('/fonts/h1.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'p';
  src: url('/fonts/p.woff2') format('woff2'),
       url('/fonts/p.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

h1, h2 {
  color: #E24F1D;
  font-family: 'h1', sans-serif;
}

p, h3 {
  color: black;
  font-family: 'p', sans-serif;
}

main {
  background-color: #F0DED3;
}



/* ---------- Header ---------- */



header {
  background-color: #F0DED3;
}

header nav{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 1rem;
}

.dropdown-button {
  background-color: #F0DED3;
  border: none;
}

.dropdown-button img:hover {
  cursor: pointer;
}

header .dropdown {
  text-align: right;
  align-self: center;
  grid-column: 4;
}

.nav-logo img{
  position: absolute;
  width: 10rem;
  height: 10rem;
  z-index: 99;
}

.nav-logo {
  position: absolute;
  top: -2rem; 
  left: -2rem;
}

.nav-logo p{
  position: absolute;
  top: 0rem; 
  width: 10rem;
  left: 3rem;
  font-size: 2rem;
  color: #fff;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
  font-family: "Jersey 15", sans-serif;
  font-size: 3rem;
  line-height: 2.15rem;
  text-transform: uppercase;
  z-index: 100;
}

.site-nav-desktop, .desktop {
  display: none;
}

.site-nav-mobile {
    text-align: right;
    position: absolute;
    top: 5.5rem;
    left: 0;
    width: 100%;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.site-nav-mobile a {
    color: #000;
    padding: 15px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #ddd;
    transition: 0.3s ease;
    background-color: #F0DED3;
}

.site-nav-mobile a:hover {
  color: #E24F1D;
}

.dropdown.active .site-nav-mobile {
    opacity: 1;
    visibility: visible;
}



/* ---------- Main ---------- */



main {
  padding: 1rem;
}

main h2 {
  font-size: 1.75rem;
}

main p {
  font-size: .75rem;
  font-weight: bold;
  line-height: 1.25rem;
}


/* ---------- Call to Action ---------- */


.home-grid h1 {
  font-size: 1.75rem;
  margin-bottom: 2.5rem;
}

.home-grid p {
  margin-bottom: 3rem;
}


/* ---------- Projects ---------- */



.project-grid {
  display: grid;
}

.project-grid h3 {
  font-size: 1rem;
  margin: 4.5rem 0 3rem;
}

.project-grid img {
  width: 100%;
  border-radius: 5px;
}

.project-img {
  position: relative;
  display: inline-block;
  border-radius: 5px;
}

.project-img:hover {
  transition: box-shadow 0.3s ease-in-out; 
  box-shadow: 10px 5px 5px rgba(0, 0, 0, 0.441);
}

.project-img::before {
  content: "";
  position: absolute;
  top: -3rem; 
  right: -2rem;
  width: 12rem;
  height: 12rem;
  background-image: url("../img/leaf2.webp");
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 1;
  transform: rotate(260deg) scaleX(-1);
}

.project:nth-child(2) .project-img::before {
  content: "";
  position: absolute;
  top: -3rem; 
  right: -1rem;
  width: 10rem;
  height: 10rem;
  background-image: url("../img/leaf.webp");
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 1;
  transform: scaleY(1);
}

.project-img:hover::before {
  filter: drop-shadow(5px 5px 5px rgba(0, 0, 0, 0.4));
  transition: filter 0.3s ease-in-out;
}

.project-img img {
  position: relative;
  z-index: 2;
}



/* ---------- About ---------- */



.about-us {
  margin-top: 4rem;
}

.about-us-img {
  position: relative;
  display: inline-block;
}

.about-us-img img {
  position: relative;
  z-index: 3;
  width: 100%;
}

.about-us-img::before {
  content: "";
  position: absolute;
  top: -3rem; 
  right: -1rem;
  width: 10rem;
  height: 10rem;
  background-image: url("../img/leaf.webp");
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 1;
  transform: scaleY(1);
}

.portfolio-area h3 {
  font-size: 1rem;
  margin: 4.5rem 0 1.5rem 0;
}

.portfolio-links {
  display: grid;
}

.portfolio-links a {
  padding: .75rem .75rem .5rem .75rem;
  margin: .5rem 0;
  text-decoration: none;
  color: #fff;
  font-family: 'p', sans-serif;
  font-size: .75rem;
  background-color: #E24F1D;
  border-radius: 5px;
  width: 100%;
  max-width: fit-content;
  transition: 0.3s ease;
}

.portfolio-links a:hover {
  background-color: #599435;
  color: #000;
}

/* ---------- Applications ---------- */

.applications-use {
  display: grid;
  justify-content: center;
  text-align: center;
}

.logos svg {
  width: 6rem;
  height: 6rem;
  padding: .5rem;
}

/* ---------- Contact ---------- */


.contact-us-button {
  display: flex;
  justify-content: center;
}

.email-button p {
  display: flex;
  font-size: .65rem;
  background-color: #599435;
  border-radius: 1rem;
  transition: 0.3s ease;
  padding: 1rem;
  margin: 0;
}

.email-button p:hover {
  cursor: pointer;
  background-color: #E24F1D;
}

.email {
  padding: 1rem;
}

.contact-us {
  margin: 4rem 0 4rem 0;
  text-align: center;
}

.custom-alert {
  position: absolute;
  border-radius: 1rem;
  width: min-content;
  text-align: center;
  font-family: 'p', sans-serif;
  font-size: .65rem;
  background-color: rgba(215, 202, 195, 0.75); 
  padding: 1rem;
  margin: 1rem 0;     
  left: 50%;   
  transform: translateX(-50%);  
}



/* ---------- Footer ---------- */


footer {
  background-color: #F0DED3;
  padding: 0 1rem;
}

footer hr {
  margin: 0;
  border: none;
  height: 4px;
  background-color: #E24F1D;
}

.footer-nav nav{
  display: grid;
  text-align: center;
  font-family: 'h1', sans-serif;
}

.footer-nav nav a {
  color: #E24F1D;
  text-decoration: none;
  font-size: 1.25rem;
  padding: .5rem 0;
  transition: 0.3s ease;
}

.footer-nav nav a:hover {
  color: #599435;
}

.footer-nav nav a:nth-child(1) {
  padding-top: 2rem;
}

.policy-copyright div{
  display: grid;
  grid-template-columns: auto auto auto;
  text-align: center;
  margin: 2rem auto 1rem auto;
  width: 280px;
}

.policy-copyright div a,
.policy-copyright p{
  color: #E24F1D;
  text-decoration: none;
  font-family: 'p', sans-serif;
  font-size: .75rem;
  transition: 0.3s ease;
}

.policy-copyright div p {
  margin: 0; 
  padding-bottom: 0 !important;
  text-align: center;
}

.policy-copyright p:nth-child(2) {
  text-align: center;
  padding-bottom: 2rem;
  margin: 0;
}

.policy-copyright a:hover {
  color: #599435;
}

@media screen and (min-width: 720px) {

  
/* ---------- Header ---------- */



  header nav{
    padding: 1rem 3rem;
  }

  .nav-logo {
    left: 0rem;
  }

  .site-nav-mobile a {
      padding: 1rem 3rem;
  }


/* ---------- Main ---------- */



  main {
    padding: 1rem 3rem;
  }



/* ---------- Projects ---------- */

  .project-img::before {
    width: 15rem;
    height: 15rem;
    right: -3rem;
    top: -5rem;
  }

  .project:nth-child(2) .project-img::before {
    width: 12rem;
    height: 12rem;
    right: -1.2rem;
    top: -4rem;
  }



/* ---------- About ---------- */



  .about-us-img {
    width: 100%;
  }

  .portfolio-area {
    grid-column: 1 / span 5;
  }

/* ---------- Contact ---------- */



  .email-button p {
    display: flex;
    font-size: .75rem;
    justify-content: center;
    background-color: #599435;
    border-radius: 1rem;
    transition: 0.3s ease;
    padding: 1.8rem 3rem;
    margin: 0;
  }

  .custom-alert {
    font-size: unset;
    padding: 1rem;
    margin: 1rem 0;     
    left: 50%;   
    transform: translateX(-50%);  
  }


  
/* ---------- Main ---------- */



.logos {
  display: flex;
  justify-content: center;
}


/* ---------- Footer ---------- */



  footer {
    padding: 0 3rem;
  }

  .footer-nav {
    width: 620px;
    margin: 0 auto;
  }

  .footer-nav nav a {
    padding-top: 2rem;
  }
}




@media screen and (min-width: 1080px) {
  


/* ---------- Header ---------- */


  header nav{
    padding: 1rem 6rem;
  }

  .nav-logo {
    left: 3rem;
  }

  .nav-logo img{
    width: 13rem;
    height: 13rem;
    top: -1rem;
    left: -1rem;
  }

  .site-nav-desktop {
    display: unset;
    grid-column: 2 / span 3;
    text-align: right;
    margin: 2rem 0;
  }

  .site-nav-desktop a {
    text-decoration: none;
    font-family: 'h1', sans-serif;
    font-size: 1.25rem;
    color: #599435;
    margin-left: 2rem;
    transition: 0.3s ease;
  }

  .site-nav-desktop a:hover {
    color: #E24F1D;
  }

  .dropdown {
      display: none;
  }



/* ---------- Main ---------- */



  main {
    padding: 1rem 6rem;
  }

   .home-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    column-gap: 2rem;
  }

  .home-grid h1 {
    grid-column: 1 / span 2;
    margin-top: 1.5rem;
  }

  .home-grid p {
    grid-column: 3 / span 3;
    margin-top: 1.75rem;
  }



/* ---------- About ---------- */



  .about-us-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    column-gap: 2rem;
  }

  .about-us-grid p {
    margin: 0;
  }

  .about-us-img {
    grid-column: 1 / span 2;
  }

  .about-us-text {
    grid-column: 3 / span 3;
  }

  .about-us-img::before {
    top: -4.5rem; 
    left: 12.5rem;
    width: 12rem;
    height: 12rem;
  }

/* ---------- Projects ---------- */
  
.project-area {
  margin-top: 7rem;
}

  .project-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
    row-gap: 2rem;
  }

  .project {
    padding: 0;
  }

  .project h3 {
    position: relative;
    z-index: 2;
  }


/* ---------- About Us ---------- */

.about-us {
  margin-top: 7rem;
}

/* ---------- Applications ---------- */

.logos svg {
  width: 8rem;
  height: 8rem;
}


/* ---------- Contact ---------- */

  .contact-us {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
    justify-self: center;
    text-align: unset;
  }

  .custom-alert {
    font-size: unset;
    padding: 1.25rem;
    margin: 0;     
    left: 50%;   
    transform: translateX(-50%);  
  }



/* ---------- Footer ---------- */



  footer {
    padding: 0 6rem;
  }

  .footer-nav nav{
    grid-template-columns: repeat(3, 1fr);
  }
}



@media screen and (min-width: 1440px) {



/* ---------- Header ---------- */


  header nav{
    padding: 1rem 10rem;
  }

  .nav-logo {
    left: 7rem;
  }



/* ---------- Main ---------- */



  main {
    padding: 1rem 10rem;
  }


/* ---------- Projects ---------- */
  


  .project-grid {
    grid-template-columns: repeat(3, 1fr);
    place-items: center;
  }

  /* ---------- About Us ---------- */

  .about-us-img {
    width: 60%;
  }



/* ---------- Contact ---------- */



  .contact-us {
      box-shadow: 
    inset 0 5px 5px -5px #000000,
    inset 5px 0 5px -5px #000000;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 1rem 8em 1rem 8rem;
    border-radius: 20px;
    background-color: #D7CAC3;
  }

  .contact-us-button {
    justify-content: right;    
    display: grid;
    width: 50%;
    
  }



/* ---------- Footer ---------- */



  footer {
    padding: 0 6rem;
  }
}



@media screen and (min-width: 1920px) {
/* ---------- Header ---------- */


  header nav{
    padding: 1rem 12rem;
  }

  .nav-logo {
    left: 9rem;
  }



/* ---------- Main ---------- */



  main {
    padding: 1rem 12rem;
  }



/* ---------- Footer ---------- */



  footer {
    padding: 0 12rem;
  }
}