/* RESET */

/*
  1. Use a more-intuitive box-sizing model.
*/
*, *::before, *::after {
    box-sizing: border-box;
  }
  /*
    2. Remove default margin
  */
  * {
    margin: 0;
  }
  /*
    Typographic tweaks!
    3. Add accessible line-height
    4. Improve text rendering
  */
  body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }
  /*
    5. Improve media defaults
  */
  img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
  }
  /*
    6. Remove built-in form typography styles
  */
  input, button, textarea, select {
    font: inherit;
  }
  /*
    7. Avoid text overflows
  */
  p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
  }
  /*
    8. Create a root stacking context
  */
  #root, #__next {
    isolation: isolate;
  }
  
  /* RESET END */

  /* BODY */

  html {
    overflow-x: hidden;
  }

  body {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, 1fr) .18fr;
    overflow-x: hidden;
    height: 100%;
    width: 100%;
  }

  a {
    text-decoration: none;
    color: white;
  }

  /* BODY END */

  /* HEADER START */

  header {
    grid-column: 1/1;
    grid-row: 1/2;
    width: 100%;
  }

  .header-container {
    grid-column: 1/1;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    opacity: 1;
    transition: opacity 1s ease-in-out;
  }

  .header-image {
    width: 100%;
    height: 100%;
    grid-column: 1/4;
  }

  .logo {
    grid-column: 2/3;
    justify-self: center;
    align-self: start;
    width: 220px;
    height: 220px;
    margin-top: -50px;
    cursor: pointer;
    position: absolute;
  }

    /* NAV STYLES */

    .icon-container {
      grid-column-start: 3;
      grid-column-end: 4;
      position: absolute;
      justify-self: end;
      margin-top: 3%;
      margin-right: 5%;
    }

    .nav-icon-one {
      width: 40px;
      border: 2px solid white;
      grid-column-start: 3;
      grid-column-end: 4;
      justify-self: center;
      position: relative;
    }
  
    .nav-icon-two {
      width: 40px;
      border: 2px solid white;
      grid-column-start: 3;
      grid-column-end: 4;
      justify-self: center;
      margin-top: 6px;
    }
  
    .nav-icon-three {
      width: 40px;
      border: 2px solid white;
      grid-column-start: 3;
      grid-column-end: 4;
      justify-self: center;
      margin-top: 6px;
    }

    @keyframes rotate {
      0% {
        transform: rotate(0);
      }
  
      100% {
        transform: rotateY(-180deg);
      }
    }
  
    .icon-container:hover {
      cursor: pointer;
    }

    .click-icon {
      animation: rotate .5s ease-in-out 1;
    }

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

    .navigation {
      grid-column: 3/4;
      justify-self: end;
      position: absolute;
      background: linear-gradient(109.6deg, rgb(36, 45, 57) 11.2%, rgb(16, 37, 60) 51.2%, rgb(0, 0, 0) 98.6%);
      height: 100%;
      width: 0;
      transition: width 0.5s ease-in-out;
      height: 129%;
    }

    .exit {
      width: 25px;
      height: 25px;
      margin: 5% 0 0 5%;
    }

    .exit:hover {
      cursor: pointer;
    }

    ul {
      list-style-type: none;
      grid-row: 1/4;
      line-height: 100px;
      font-size: 1.2rem;
    }

    .service {
      display: grid;
      grid-template-columns: 1fr;
      height: 25%;
      grid-row: 2/3;
      align-self: start;
    }

    .sunday {
      grid-column: 1/2;
      grid-row: 2/3;
      display: none;
      justify-self: center;
      align-self: start;
    }

    .tuesday {
      grid-column: 1/2;
      grid-row: 3/4;
      display: none;
      justify-self: center;
      align-self: start;
    }

    .cena {
      grid-column: 1/2;
      grid-row: 4/5;
      display: none;
      justify-self: center;
      align-self: start;
    }

    .vigil {
      grid-column: 1/2;
      grid-row: 5/6;
      display: none;
      justify-self: center;
      align-self: start;
    }

    /* NAV END */

    /* MAIN CONTENT STYLES */

    main {
      grid-row: 2/3;
      grid-column: 1/2;
      display: flex;
      justify-content: center;
      align-items: center;
      background-color: rgba(0, 0, 0, 0);
      transition: background-color 1s ease-in-out;
    }

    .contact-box {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      grid-template-rows: auto;
      width: min(1100px, 90%);
      min-height: 700px;
      will-change: box-shadow;
      box-shadow: 1px 1px 20px 1px white;
      transition: box-shadow 1s ease-in-out;
      border-radius: 30px;
      overflow: hidden;
      background-color: white;
      opacity: 1;
      transition: opacity 1s ease-in-out;
    }


    h1 {
      grid-column: 2/3;
      grid-row: 1/2;
      justify-self: center;
      align-self: start;
      color: black;
      margin-top: 5%;
      transition: color 1s ease-in-out;
    }

    form {
      grid-column: 2/3;
      grid-row: 2/7;
      height: 100%;
      display: grid;
      grid-template-columns: 1fr;
      grid-template-rows: repeat(3, 1fr) 1fr 1fr;
    }

    .form-description {
      grid-column: 1/2;
      grid-row: 1/3;
      align-self: start;
    }

    .form-image {
      grid-column: 1/2;
      grid-row: 1/7;
      height: 100%;
      width: 100%;
      object-fit: cover;
      display: block;
    }

    .header-image, .form-image {
      object-fit: cover;
    }

    .form-row1 {
      grid-row: 1/2;
      align-self: start;
      justify-self: center;
    }

    .form-row2 {
      grid-row: 2/3;
      align-self: start;
      justify-self: center;
    }

    .form-row3 {
      grid-row: 3/4;
      justify-self: center;
      align-self: start;
    }

    .form-row4 {
      grid-row: 4/5;
      justify-self: center;
      align-self: start;
    }

    .form-row1, .form-row2, .form-row3, .form-row4 {
      width: 100%;
      display: flex;
      justify-content: center;
    }

    .form-input {
      width: 100%;
      max-width: 400px;
      padding: 12px;
      border-radius: 10px;
      border: 1px solid #ccc;
    }

    textarea {
      min-height: 120px;
      resize: vertical;
    }

    button {
      grid-row: 5/6;
      height: 40px;
      width: 75px;
      justify-self: center;
      align-self: center;
    }

    /* FOOTER */

footer {
  grid-column: 1/4;
  grid-row: 3/4;
  background-color: white;
}

.footer-container {
grid-column-start: 1;
grid-column-end: 4;
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: 1fr;
width: 100%;
height: 200px;
}

.footer-brand {
  grid-column: 1/2;
  grid-row: 1/2;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  align-self: center;
  margin-left: 15%;
}

.footer-logo {
  width: 50px;
  height: 50px;
}

.long-logo {
  width: 105px;
  height: auto;
}

.footer-container ul li a {
  color: black;
  text-decoration: underline;
}

.footer-list {
  grid-column: 1/3;
  grid-row: 1/2;
  justify-self: center;
  align-self: center;
  margin-right: 30%;
  font-size: 1rem;
  font-weight: bold;
  line-height: 3.5;
}

.insta {
  height: 18px;
  width: 18px;
  grid-column: 3/4;
  grid-row: 1/2;
  justify-self: end;
  align-self: center;
  margin-right: 25%;
}

.insta:hover {
  cursor: pointer;
}

/* EMAILJS MESSAGE BOX */

.message-container {
  display: flex;
  grid-row: 2/3;
  grid-column: 1/2;
  justify-self: center;
  align-self: center;
  z-index: 10;
  border-radius: 15px;
  background-color: white;
  will-change: box-shadow;
  box-shadow: 1px 1px 20px 1px white;
  transition: box-shadow 1s ease-in-out;
  min-height: 100px;
  min-width: 100px;
  opacity: 1;
  transition: opacity 1s ease-in-out;
}

.message-box {
  color: black;
  font-size: 1rem;
  text-align: center;
  align-self: center;
  width: 99%;
}

/* MEDIA QUERIES */

@media (max-width: 1600px) {
  
}

@media (max-width: 1440px) {
  
}

@media (max-width: 1280px) {
  
}

@media (max-width: 1100px) {

  .footer-list {
    margin-left: 8%;
  }
}

@media (max-width: 1024px) {
  .contact-box {
    width: 92%;
  }

  .form-input {
    max-width: 320px;
  }

  textarea {
    width: 320px;
  }

  .logo {
    width: 180px;
    height: 180px;
  }

  .footer-list {
    margin-left: 10%;
  }

}

@media (max-width: 900px) {

  .footer-list {
    margin-left: 18%;
  }
}

@media (max-width: 800px) {
  .footer-list {
    margin-left: 22%;
  }
}

@media (max-width: 768px) {
  main {
    padding: 50px 0;
  }

  .contact-box {
    grid-template-columns: 1fr;
    width: 92%;
    min-height: auto;
  }

  .form-image {
    height: 300px;
  }

  h1 {
    grid-column: 1/2;
    margin-top: 30px;
  }

  form {
    grid-column: 1/2;
    padding-bottom: 40px;
  }

  .form-input {
    max-width: 500px;
    width: 85%;
  }

  textarea {
    width: 85%;
  }

}

@media (max-width: 428px) {
  body {
    width: 100%;
    overflow-x: hidden;
  }

  .logo {
    width: 150px;
    height: 150px;
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    margin-top: -10%;
    z-index: 1;
  }

  .icon-container {
    position: absolute;
    top: 20px;
    right: 8%;
    margin-top: 0;
    margin-right: 0;
    z-index: 2;
  }

  .nav-icon-one, .nav-icon-two, .nav-icon-three {
    width: 40px;
    border: 1.9px solid white;
  }

  .navigation {
    grid-column: 1/4;
    justify-self: start;
    position: fixed;
    left: 0;
    right: 0;
    background: linear-gradient(109.6deg, rgb(36, 45, 57) 11.2%, rgb(16, 37, 60) 51.2%, rgb(0, 0, 0) 98.6%);
    z-index: 100;
    height: 0;
    width: 100vw;
    overflow-y: auto;
    transition: height 0.5s ease-in-out
  }

  .contact-box {
    width: 95%;
    border-radius: 20px;
  }

  #contact-form {
    margin-top: 30px;
  }

  .form-image {
    height: 220px;
  }

  .form-input {
    width: 90%;
    font-size: 1rem;
  }

  textarea {
    width: 90%;
  }

  button {
    width: 120px;
    height: 45px;
  }

  h1 {
    font-size: 2rem;
    text-align: center;
  }

  footer {
    grid-column: 1/2;
    height: 100%;
  }

  .footer-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
    padding: 10px 0;
  }

  .footer-list {
    grid-row: 1/2;
    grid-column: 1/3;

    display: flex;
    justify-content: space-around;
    width: 100%;
    margin: 0;
    padding: 10px 0;
    font-size: 0.9rem;
  }

  .footer-brand {
    grid-row: 2/3;
    grid-column: 1/2;

    display: flex;
    align-items: center;
    justify-content: flex-start;
    justify-self: start;

    gap: 8px;
    margin-left: 25px;
  }

  .footer-logo {
    width: 45px;
    height: 45px;
  }

  .long-logo {
    width: 80px;
    height: auto;
  }

  .insta {
    grid-row: 2;
    grid-column: 2/3;

    justify-self: center;
    align-self: center;

    margin-left: 70px;
    margin-right: 0;
  }

}

@media (max-width: 375px) {
  .logo {
    width: 130px;
    height: 130px;
  }

  .nav-icon-one, .nav-icon-two, .nav-icon-three {
    width: 32px;
  }

  h1 {
    font-size: 1.7rem;
  }

  .form-image {
    height: 180px;
  }

  .form-input {
    width: 92%;
    padding: 10px;
  }

  textarea {
    width: 92%;
    min-height: 100px;
  }

  .footer-list {
    font-size: 0.8rem;
  }
}

@media (max-width: 320px) {
  .logo {
    width: 110px;
    height: 110px;
  }

  h1 {
    font-size: 1.5rem;
  }

  .form-input {
    font-size: 0.9rem;
  }

  button {
    width: 100px;
    height: 40px;
    font-size: 0.9rem;
  }

  .footer-list {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
  }

  .footer-container {
    gap: 15px;
  }
  
  .long-logo {
    width: 80px;
    height: 80px;
  }
}
