@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --primary-black: #2c2a28;
  --soft-grey: #f6f1eb;
  --border-color: #e0e0e0;
}
body {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  background-color: #f6f1eb;
  color: var(--primary-black);
  letter-spacing: 1px;
  width: 100dvw;
  overflow-x: hidden;
  will-change: auto;
}

header-main {
  position: sticky;
  top: 0;
  z-index: 10000;
}

h1,
h2 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 1px;
  font-weight: bold;
  color: #2c2a28;
}

section {
  width: 100dvw;
  overflow-x: hidden;
  margin-bottom: 4rem;
}

.home {
  background-image: url("./src/1765190208191-one-hpcorpo-hero-d-5760x2520px-2_2520x5760.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f6f1eb;
}
.hero {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  min-height: 80dvh;
  margin-left: 56px;
  gap: 32px;
  h1 {
    font-size: 120px;
    color: #2c2a28;
  }
  p {
    color: #2c2a28;
    font-size: 50px;
  }
}
#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1),
    rgba(0, 0, 0, 0.3)
  );
  z-index: 0;
}
#hero {
  position: relative;
  overflow: hidden;
}

#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 0;
}

#hero.fade::after {
  opacity: 1;
}

#hero {
  position: relative;
  overflow: hidden;
  height: 100vh;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

/* current sits on top */
.slide.current {
  z-index: 2;
}

/* next sits under */
.slide.next {
  z-index: 1;
}
.slider-dots {
  position: absolute;
  bottom: 2rem;
  left: 39%;
  display: flex;
  gap: 1rem;
  padding: 10px 12px;
  border-radius: 999px;

  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);

  box-shadow:
    0 6px 25px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  z-index: 2;
}

.slider-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.5);
  transition: all 0.25s ease;
}

.slider-dots .active {
  background: #fff;
  transform: scale(1.4);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}
.buttons {
  background-color: #d4c092;
  color: #2c2a28;
  font-size: 3rem;
  padding: 24px;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  border: none;
  cursor: pointer;
  z-index: 10;
  a {
    text-decoration: none;
    color: #2c2a28;
  }
}
.buttons:hover {
  background-color: #b4a37e;
}
.buttons:active {
  background-color: #e2d7c0;
}

.featured {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  gap: 5rem;
  h1 {
    font-size: 50px;
    margin-top: 3rem;
  }

  #product-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    flex-wrap: wrap;
    width: 100%;
  }

  .product-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 25rem;
    height: 30rem;
    transition:
      transform 0.1s ease,
      box-shadow 0.1s ease;
    background: aliceblue;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    will-change: transform;
    border-radius: 5px;
    padding: 1rem;
    cursor: pointer;
  }

  .product-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }

  .product-card img {
    width: 100%;
    height: auto;
    display: block;
    overflow: hidden;

    border-radius: 5px;
    object-fit: cover;
  }

  .product-info {
    text-align: center;
    padding-top: 15px;
  }

  .product-info h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 5px;
  }

  .product-info p {
    margin: 5px 0 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
  }
}

.about-us {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 5rem 2rem;
  background-color: var(--primary-black);
  color: var(--soft-grey);

  .inner {
    display: flex;
    align-items: stretch;
    gap: 4rem;
    width: 100%;
  }
  .text-about {
    width: 50%;
    /* flex: 1; */
    display: flex;
    flex-direction: column;
    gap: 2rem;
    h1 {
      font-size: 5rem;
      color: var(--soft-grey);
      margin-bottom: -2rem;
    }
    .line {
      height: 3px;
      width: 23rem;
      border: 0;
      background-color: #d4c092;
    }

    h2 {
      font-size: 2.5rem;
      color: var(--soft-grey);
    }
    p {
      font-size: 1.5rem;
      line-height: 1.2;
    }
    button {
      background-color: #d4c092;
      color: #2c2a28;
      font-size: 25px;
      padding: 1rem;
      text-decoration: none;
      font-family: "Montserrat", sans-serif;
      font-weight: 600;
      border: none;
      cursor: pointer;
      width: 20rem;
      text-wrap: nowrap;
    }
    button:hover {
      background-color: #b4a37e;
    }
    button:active {
      background-color: #e2d7c0;
    }
  }

  img {
    width: 50%;
    max-width: 1000px;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
  }
}
@media (max-width: 1450px) {
  .featured {
    gap: 2rem;
    .product-card {
      width: 17rem;
      height: 22rem;
    }
  }
  .about-us .inner {
    max-width: 1300px;
    gap: 2.5rem;

    .text-about {
      p {
        font-size: 1rem;
      }
      h2 {
        font-size: 2em;
      }
    }
  }

  .trustees #trustee-grid .trustee-card {
    width: 18rem;
    height: 23rem;
    gap: 1rem;
  }
}

@media screen and (max-width: 850px) {
  #hero {
    max-height: 75vh !important;
    margin-top: -2rem;
    touch-action: pan-y;
    overflow: hidden;
  }
  .hero {
    align-items: center;
    margin: 0;
    margin-top: 12rem;
    text-align: center;
    h1 {
      display: none;
    }
    p {
      display: none;
    }
    button {
      font-size: 1rem;
    }
  }
  .featured {
    text-align: center;
    gap: 2rem;
    h1 {
      font-size: 1.5rem;
      text-wrap: nowrap;
    }

    .product-card {
      width: 20rem;
      height: 25rem;
    }
  }

  .about-us {
    img {
      display: none;
    }
    .text-about {
      width: 100%;
      align-items: center;
      justify-content: center;
      text-align: center;
      h1 {
        font-size: 4rem;
        margin-bottom: -2rem;
        text-wrap: nowrap;
        color: var(--soft-grey);
      }
      hr.line {
        width: 20rem;
      }
      h2 {
        font-size: 2rem;
        width: 20rem;
      }
      p {
        font-size: 1rem;
        width: 20rem;
        margin: 0;
        padding: 0;
      }
      button {
        padding: 1rem;
        font-size: 1rem;
        width: 10rem;
      }
    }
  }

  .trustees {
    button {
      padding: 1rem;
      font-size: 1rem;
      width: 10rem;
    }
  }
}
.trustees {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;

  h1 {
    font-size: 3rem;
    text-align: center;
    margin-top: 7rem;
  }

  #trustee-grid {
    display: flex;
    width: 100%;
    gap: 2rem;
    padding: 2rem;
    flex-wrap: wrap;
    margin: auto;
    align-items: center;
    justify-content: center;
  }

  .trustee-card {
    width: 20rem;
    height: 27rem;
    border-radius: 5px;
    transition:
      transform 0.1s ease,
      box-shadow 0.1s ease;
    background: aliceblue;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    will-change: transform;
    padding: 1rem;
    cursor: pointer;
  }

  .trustee-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }

  .trustee-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }

  .trustee-info {
    text-align: center;
    padding-top: 15px;
  }

  .trustee-info h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
  }

  .trustee-info p {
    margin: 5px 0 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
  }

  button {
    a {
      text-decoration: none;
      color: #2c2a28;
    }
    margin-bottom: 5rem;
  }
}
