* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  display: grid;
  grid-template-areas:
    'header'
    'main'
    'footer';
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 1440px;
  margin: 0 auto;
  font-family: 'Montserrat', sans-serif;

  & > header {
    grid-area: header;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: rgba(7, 23, 62, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.618);
    display: flex;
    padding: 15px;
    border-bottom: 1px solid rgba(30, 29, 29, 0.035);
  }

  & .brand {
    text-align: center;
    padding: 10px;
    width: 100%;

    & h1 {
      font-size: 1.9rem;
      margin: 5px 0 0 0;
    }

    & p {
      font-size: 0.8rem;
      font-weight: 500;
    }
  }

  & > main {
    grid-area: main;
    padding-top: 130px;
    position: relative;

    & .catalog-grid {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 20px;
      padding: 20px;

      & .card {
        width: 100%;
        max-width: 290px;
        height: 130px;
        background: #07173e;
        position: relative;
        display: flex;
        overflow: hidden;
        border-radius: 9px;
        z-index: 1;
        cursor: pointer;
        transition:
          transform 1s cubic-bezier(0.34, 1.56, 0.64, 1),
          box-shadow 1s cubic-bezier(0.34, 1.56, 0.64, 1);

        &:hover {
          transform: translateY(-3px) scale(1.03);
          box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
        }

        & a {
          display: flex;
          place-content: center;
          place-items: center;
          width: 100%;
          height: 100%;
          text-decoration: none;
          color: white;
          z-index: 2;
        }

        & h3 {
          font-size: 0.8rem;
          font-weight: 600;
          letter-spacing: 1px;

          &:hover {
            color: #32cd32;
          }
        }
      }
    }
  }

  & > footer {
    grid-area: footer;
    padding: 20px;
    background: #07173e;
    color: white;

    & .content-footer {
      display: flex;
      flex-direction: column;
      gap: 20px;

      & .footer-top {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 20px;
      }

      & .footer-bottom {
        border-top: 1px solid white;
        text-align: center;
        padding-top: 10px;
        margin-top: 10px;

        & .copyright {
          font-size: 0.7rem;
          opacity: 0.8;
        }
      }

      & h3 {
        font-size: 0.7rem;
        font-weight: bold;
        margin-bottom: 8px;
        letter-spacing: 0.5px;
      }

      & .contact-info {
        & p {
          font-size: 0.7rem;
          margin: 7px 0;
          display: flex;
          align-items: center;
          gap: 8px;

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

            &:hover {
              color: #32cd32;
            }
          }
        }
      }

      & .social-icons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 13px;
        width: fit-content;

        & h3 {
          margin-bottom: 4px;
          text-align: center;
        }

        & .icons-row {
          display: flex;
          gap: 13px;
        }

        & a {
          color: white;
          font-size: 1.2rem;

          &:hover {
            color: #32cd32;
          }
        }
      }
    }
  }
}

.whatsapp-float {
  position: fixed;
  bottom: 60px;
  right: 5px;
  background-color: #25d366;
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 9998;
  text-decoration: none;
  font-size: 28px;
  transition: transform 0.3s ease;

  &:hover {
    transform: scale(1.1);
  }
}

/* RESPONSIVE - Mobile First (min-width) */

@media (min-width: 768px) {
  body > header {
    & .brand h1 {
      font-size: 2.5rem;
    }
  }
  body > main .catalog-grid {
    flex-direction: row;
    align-items: center;
    margin-top: 20px;
    justify-content: center;
  }

  body > main .catalog-grid .card {
    flex: 1 1 280px;
    min-height: 260px;
  }

  body > footer .content-footer .footer-top {
    flex-direction: row;
  }

  .whatsapp-float {
    bottom: 170px;
  }
}

@media (min-width: 1024px) {
  body > header {
    padding: 25px 80px;

    & .brand h1 {
      font-size: 3rem;
    }
  }

  body > main .catalog-grid .card {
    max-width: 400px;
  }

  body > footer .content-footer .footer-top {
    padding: 0 30px;
  }

  .whatsapp-float {
    bottom: 200px;
  }
}
