@font-face {
  font-family: 'playfair';
  src: url('../font/PlayfairDisplay-Italic.otf') format('opentype');
}


body{
  background-color: rgb(0 0 0 / 0.74);
  margin: 0;
}

.menu-icon {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 10;
}

.menu-icon span {
  display: block;
  width: 100%;
  height: 1px;
  background-color: #fbf1c8;
}

.heading-container {
  position: relative;
  margin-bottom: 0;
  display: flex;
  justify-content: center; /* Centers the image horizontally */
  align-items: flex-start; /* Aligns the image tightly to the top edge */
  width: 100vw;
  overflow: hidden;        /* Hides any overflow when cropping happens */
  z-index: 1;
}

.brand-name,
.about-link {
  position: absolute;
  top: 17px;
  margin: 0;
  font-family: playfair, didot, Avenir, Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: #fbf1c8;
  z-index: 10;
}

.brand-name {
  left: 24px;
}

.about-link {
  right: 24px;
}

.heading-container h1{
  position: absolute;          /* Pulls the text out of flow to float over the image */
  font-family: playfair, didot, Avenir, Arial, Helvetica, sans-serif;
  font-size: 5.5vh;
  font-style: italic;
  font-weight: normal;
  letter-spacing: 3px;
  color: #fbf1c8;
  top: 10vh;                   /* Distance from the very top edge of the image */
  left: 10vw;                  /* Distance from the very left edge of the image */
  margin: 0;                   /* Removes default browser margins from h1 */
  z-index: 3;                 /* Ensures the text stays stacked on top of the image */
  line-height: 8vh;

}

.heading-container h2{
  position: absolute;          /* Pulls the text out of flow to float over the image */
  font-family: didot, Avenir, Arial, Helvetica, sans-serif;
  font-size: 3.5vh;
  font-weight: normal;
  color: rgb(24,19,5);
  bottom: 10vh;
  left: 10vw;
  margin: 0;                   /* Removes default browser margins from h1 */
  padding: 12px 28px;
  background-color: #fbf1c8;
  border-radius: 14px;
  z-index: 3;                 /* Ensures the text stays stacked on top of the image */
  line-height: 1;

}


.heading-container img {
  width: 100vw;            /* Forces the image width to be 100% of the viewport */
  height: auto;            /* Maintains natural aspect ratio */
  display: block;          /* Removes unexpected bottom whitespace */
  object-fit: cover;       /* Crops the left/right sides when the screen narrows */
  object-position: top center; /* Ensures the top-center of the image is the anchor point */
}
.item-1 {
  position: relative;
  margin-top: 0;
  justify-content: center; /* Centers the image horizontally */
  width: 100vw;
  overflow: hidden;        /* Hides any overflow when cropping happens */
  z-index: 1;
}
.item-1 img{
  height: 80vh;
  width: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
#under {
  position: relative;
  z-index: 0;
}

#upper{
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
}

.item-1 h2{
  position: absolute;
  left: 50%;
  font-family: playfair, didot, Avenir, Arial, Helvetica, sans-serif;
  font-size: 5.5vh;
  font-style: italic;
  font-weight: normal;
  letter-spacing: 3px;
  color: #9f4939;
  white-space: nowrap;
  margin: 0;                   /* Removes default browser margins from h1 */
  z-index: 1;                 /* Ensures the text stays stacked on top of the image */
  line-height: 8vh;
  transform: translate(calc(-50% + var(--start-x, 0px) + var(--scroll-x, 0px)), -50%);
  will-change: transform;
}

#text-1 {
  top: 25%;
  --start-x: 30vw;
}

#text-2 {
  top: 44%;
  --start-x: -30vw;
}

#text-3 {
  top: 65%;
  --start-x: 30vw;
}


/* below is for section 2 ///////////////////////////////////////*/


.feature-card.text h1{
  color: #fbf1c8;
  font-size: 3vw;
  line-height: 6vh;
}
.feature-card.text h2{
  color: #fbf1c8;
  font-size: 4vw;
  font-style: italic;
  font-weight: 300;
  line-height: 6vh;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    gap: 70px;
    margin: 4vw 4vw;
}

.feature-card {
  background: rgb(255 255 255 / 0.1);
  padding: 50px;
  border-radius: 30px;
  color: white;
  transition: all 0.3s ease;
  height: auto;
}

.feature-card.text {
  position: relative;
  box-shadow: inset 10px 10px 200px 200px rgba(0, 0, 0, 0.3);
  transition: box-shadow 1s ease, color 1s ease, transform 0.3s ease;
}

.feature-card.text.shadow-in {
  box-shadow:
    0px 8px 50px 0px #ffecbc,
    inset 10px 10px 2000px 200px rgba(0, 0, 0, 0.3);
}

img.display{
  width: 100%;
  border-radius: 30px;
}

/* end of section 2 ////////////////////////////////////////////*/

.item-2 img{
  width: 100vw;
  height: auto;
  position: relative;
}
.trans-button h3{
  font-family: Avenir, Arial, Helvetica, sans-serif;
}
.trans-button{
  width: min(18rem, 40%);
  height: clamp(3.5rem, 9cqh, 6rem);
  position: relative;
  left: 60vw;
  top: -20vh;
  background-color: rgb(0 0 0 / 0.2);
  z-index: 10;
  border-radius: 999px;
  border: 1px solid #fbf1c8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  overflow: hidden;
  cursor: pointer;
  transition: background-color 0.35s ease, border-color 0.35s ease;
  text-decoration: none;
}

.button-text2{
  color: #fbf1c8;
  font-size: clamp(1rem, 3.2cqh, 2rem);
  line-height: 1;
  margin: 0;
  transform: translateX(0);
  transition: color 0.35s ease, transform 0.35s ease;
}

.button-arrow2{
  color: #fbf1c8;
  font-size: clamp(1rem, 3.2cqh, 2rem);
  line-height: 1;
  opacity: 0;
  transform: translateX(-0.45em);
  transition: color 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
}

.trans-button:hover{
  background-color: #ffffff;
  border-color: #ffffff;
}

.trans-button:hover .button-text2{
  color: #000000;
  transform: translateX(-0.25em);
}

.trans-button:hover .button-arrow2{
  color: #000000;
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 1000px) {
  .heading-container img{
    height: 90vh;
    width: auto;
    transform: translateX(27vw);
  }
  .heading-container h1{
    left: calc(5vw + 20px);   /* Aligns text with the left edge of the 50vw cropped image */
    width: 58vw;

  }

  .heading-container h2{
    bottom: 5vh;
    left: calc(5vw + 20px);
  }
  /* media of section 2 /////////////////////////////////////*/
    .features-grid {
    grid-template-columns: 92vw;
  }

  .feature-card.text{
    height: 30vh;
  }
  .head-text {
    position: absolute;
    top: 40%;
    left: 3%;
    transform: translateY(-60%);
    font-size: 9.5vw;
}

  header h1{
    font-size: 7vh;
  }
  header p{
    font-size: 2vh;
  }
  .head-text .inline-or{
    display: inline-block;
  }
  .head-text .inline-or + .inline-or{
    display: block;
  }
  .head-button h1{
    font-size: 3vh;
  }
  .arrow{
    position: absolute;
    top: 40%;
    left: 30%;
    opacity: 0;
    font-size: 6vh;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;

}
  .feature-card{
    padding: 6vw;
  }
  .feature-card.text h1{
  font-size:4vw;
  line-height: 4vh;
  }
  .feature-card.text h2{
    font-size: clamp(1.95rem, 6.3vw, 3rem);
    font-style: italic;
    line-height: 1.2;
  }
  /*end media of section 2 ///////////////////////////////////3*/
  .trans-button{
  width: min(18rem, 40%);
  height: clamp(3.5rem, 9cqh, 6rem);
  position: relative;
  left: 50vw;
  top: -10vh;
}
