/* Our Story Page Styles - BEM Methodology */

/* Hero Section */
.our-story__hero {
  position: relative;
  width: 100%;
  height: 1011px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("../image/ribena-bottling-line.png");
}

.our-story__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #9b26b6;
  /* Purple overlay */
  z-index: -1;
}

.our-story__hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
}

.our-story__hero-headline {
  color: #FFF0EE;
  font-family: Gazpacho;
  font-size: 100px;
  font-style: normal;
  font-weight: 700;
  line-height: 100%;
  margin-bottom: 0;
}

/* Main Content Section */
.our-story {
  width: 100%;
  background-color: var(--Ribena-off-white, #fff0ee);
}

.our-story__section {
  width: 100%;
  background-image: url("../image/first-joys-bg.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.our-story-product-range {
  height: 563px;
  background: #9b26b6;
  overflow: hidden;
}

.our-story__content {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
}


.our-story__image-container {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.our-story__bottle-image {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  object-fit: cover;
  --bottle-scale: 2;
  transform: scale(var(--bottle-scale));
}

.our-story__image-panel {
  width: 100%;
  height: 100%;
  max-height: 900px;
  overflow: hidden;
}

.our-story__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.our-story__text-panel {
  width: 100%;
  max-height: 900px;
  height: 100%;
  gap: 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 380px;
  margin: 0 auto;
}

.our-story__heading {
  color: #FFF0EE;
  font-family: Gazpacho;
  font-size: 80px;
  font-style: normal;
  font-weight: 700;
  line-height: 100%;
  margin-bottom: 0px;
}

.our-story__text {
  color: var(--Ribena-off-white, #fff0ee);
  font-family: "ES Rebond Grotesque", sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 160%;
  margin: 0;
  letter-spacing: 0.5px;
}

.our-story__btn {
  display: inline-block;
  background-color: #d4a574;
  color: #9b26b6;
  font-family: "ES Rebond Grotesque", sans-serif;
  font-size: 24px;
  font-weight: 500;
  padding: 14px 40px;
  border-radius: 50px;
  border: 2px solid transparent;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  will-change: background-color, color, border-color;
  letter-spacing: 1px;
  align-self: flex-start;
}

.our-story__btn:hover {
  background-color: #e3061b;
  color: #ffffff;
  border-color: #ffffff;
  text-decoration: none;
}


.about.our-story__about .about__group-images-droplet {
  --droplet-x: 200px;
  transform: translate(var(--droplet-x), 0px);
}

/* About Section Styles */
.about {
  height: 957px;
  align-content: center;
  position: relative;
  background: var(--Ribena-off-white, #FFF0EE);
  overflow: hidden;
}

.about .about__title {
  color: var(--Ribena-red, #E3061B);
  font-family: Gazpacho;
  font-size: 80px;
  font-style: normal;
  font-weight: 500;
  line-height: 100%;
  margin-bottom: 0;
  padding-bottom: 60px;
}

.about .about__description {
  color: var(--Ribena-purple, #9B26B6);
  font-family: "ES Rebond Grotesque";
  font-size: 22px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%;
}

.about__group-images {
  height: 100%;
  width: 100%;
}

.about__group-overlay-images {
  display: flex;
  position: relative;
  transform: translate(90px, 80px);
}

.about__group-overlay-images img {
  height: 450px;
  object-fit: cover
}

.about__group-overlay-images img:nth-child(1) {
  --pack-scale: 1.2;
  transform: scale(var(--pack-scale));
}

.about__group-overlay-images img:nth-child(2) {
  transform: scale(1.4);
  position: relative;
  z-index: 1;
}

.about__group-overlay-images img:nth-child(3) {
  transform: scale(1.1);
  object-position: -88px;
}

.about__group-images-droplet {
  height: 75%;
  position: absolute;
  top: -2px;
}

.our-story__image-container img:nth-child(1),
.our-story__image-container img:nth-child(3) {
  display: none;
}

/* Responsive Styles */

@media (max-width: 1200px) {
  .our-story__hero-headline {
    font-size: 60px;
  }

  .our-story__heading {
    font-size: 50px;
  }

  .our-story__text-panel {
    padding: 60px 40px;
  }

  .about .about__title {
    font-size: 60px;
  }

  .about.our-story__about .about__group-images-droplet {
    --droplet-x: 40px;
    transform: translate(var(--droplet-x), 0px);
    height: 64%;
  }

  .about__group-overlay-images img {
    height: 400px;
  }

  .about__group-overlay-images {
    transform: translate(80px, 180px);
  }

  .our-story__hero {
    height: 650px;
  }
}

@media (max-width: 992px) {
  .our-story__hero {
    min-height: 500px;
  }

  .our-story__hero-headline {
    font-size: 50px;
  }

  .our-story__heading {
    font-size: 40px;
  }

  .our-story__text-panel {
    padding: 50px 30px;
  }

  .our-story__image-panel {
    min-height: 400px;
  }

  .our-story__text {
    font-size: 16px;
  }

  .about .about__title {
    font-size: 40px;
  }

  .about .about__description {
    font-size: 20px;
  }

  .about__group-images-droplet {
    width: 65%;
  }

  .about__group-images {
    text-align: center;
  }

  .about__group-images-droplet {
    position: relative;
  }

  .about {
    height: 600px;
  }

  .about__group-overlay-images {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 10%)
  }

  .about__group-overlay-images img {
    height: 240px;
  }

  .about__group-overlay-images img:nth-child(3) {
    object-position: 0px;
  }

  .about__group-overlay-images img:nth-child(1) {
    object-position: 27% 0;
    --pack-scale: 1.2;
    transform: scale(var(--pack-scale));
  }

  .about__group-overlay-images img:nth-child(2) {
    transform: scale(1.3);
    position: relative;
    z-index: 1;
  }

  .about__group-overlay-images img:nth-child(3) {
    transform: scale(1.1);
    object-position: -39px;
  }

  .about__group-overlay-images img {
    max-width: 100%;
  }

  .about__group-images-container {
    position: relative;
  }
}

@media (max-width: 912px) {
  .about {
    height: 100%;
  }

  .about__content {
    padding: 40px 0
  }


}

@media (max-width: 768px) {
  .our-story__hero {
    min-height: 400px;
  }

  .our-story__hero-headline {
    font-size: 40px;
    padding: 0 20px;
  }

  .our-story__heading {
    font-size: 32px;
  }

  .our-story__bottle-image {
    object-fit: contain;
  }

  .our-story__content {
    gap: 30px;
    text-align: center;
  }

  .our-story__text-panel {
    padding: 40px 25px;
  }

  .our-story__image-panel {
    min-height: 350px;
  }

  .our-story__text {
    font-size: 14px;
  }

  .our-story__btn {
    font-size: 16px;
    padding: 12px 30px;
    align-self: center;
  }

  .about.our-story__about .about__group-images-droplet {
    --droplet-x: 0px;
    transform: translate(var(--droplet-x), 0px);
  }
}

@media (max-width: 570px) {
  .our-story__hero {
    background-position: revert;
    height: 520px;
  }

  .about.our-story__about .about__group-images-droplet {
    --droplet-x: 0px;
    transform: translate(var(--droplet-x), 0px);
  }

  .our-story__hero-headline {
    font-size: 40px;
    padding: 0 15px;
  }

  .our-story__heading {
    font-size: 30px;
    /* margin-bottom: 15px; */
  }

  .our-story__text-panel {
    padding: 40px 20px;
    margin: 0;
  }

  .our-story__image-panel {
    min-height: 300px;
  }

  .our-story__text {
    color: #FFF0EE;
    font-family: "ES Rebond Grotesque";
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
    /* 27px */
  }

  .our-story__btn {
    font-size: 14px;
    padding: 10px 24px;
  }

  .about__content {
    background-color: #9B26B6;
    padding: 30px 20px;
  }

  .about__group-images-droplet {
    margin: 0 auto;
    height: 364px;
    object-fit: contain;
  }

  .about__group-overlay-images {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-34%, -25%);
  }

  .about__group-overlay-images img {
    max-width: 100%;
    width: auto;
    height: 240px;
  }

  .about__group-overlay-images img:nth-child(3) {
    object-position: -40px;
  }

  .about__group-images-container {
    position: relative;
    height: 420px;
  }

  .about .about__description {
    color: #FFF0EE;
    font-family: "ES Rebond Grotesque";
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
    /* 27px */
    margin-bottom: 0;
  }

  .about .about__title {
    color: #FFF0EE;
    font-family: Gazpacho;
    font-size: 30px;
    font-style: normal;
    font-weight: 700;
    line-height: 130%;
    /* 39px */
  }

  .our-story__image-container {
    display: flex;
    height: 400px;
    position: relative;
    width: 100%;
    max-width: 353px;
    margin: 0 auto;
  }

  .our-story__image-container img:nth-child(1) {
    display: block;
    height: 380px;
    object-position: 18px 0;
    object-fit: contain;
    object-position: left;
  }

  .our-story__bottle-image {
    object-fit: contain;
    position: absolute;
    --bottle-scale: 1;
    transform: scale(var(--bottle-scale));
    z-index: 1;
  }

  .our-story__image-container img:nth-child(3) {
    display: inline-block;
    object-position: right;
    height: 356px;
    left: 0;
    position: absolute;
    object-fit: contain;
  }

  .our-story__text-panel {
    width: 100%;
  }

  .our-story-product-range {
    padding: 30px 0px;
    height: 430px;
  }


}