/* ===========NAVBAR============ */
/* Base style */
.navbar-pf {
  font-weight: 600 !important;
  padding: 0.8rem 2rem !important;
}

.navbar-pf .nav-link {
  font-weight: 700 !important;
  font-size: 1.3rem !important;
  margin: 0 1.2rem !important;
  transition: color 0.3s ease !important;
}

/* Cream version */
.navbar-pf--cream {
  background-color: #fff1e1 !important;
}

.navbar-pf--cream .nav-link {
  color: #006788 !important;
  /* biru gelap */
}

.navbar-pf--cream .nav-link:hover {
  color: #f8a631 !important;
  /* aksen orange */
  background-color: transparent !important;
}

/* Blue version */
.navbar-pf--blue {
  background-color: #008cbc !important;
}

.navbar-pf--blue .nav-link {
  color: white !important;
}

.navbar-pf--blue .nav-link:hover {
  color: #ffd199 !important;
  /* kuning/emas */
  background-color: transparent !important;
}

/* Burger toggler */
.navbar-pf--cream .navbar-toggler-bar {
  display: block !important;
  width: 22px !important;
  height: 2px !important;
  margin: 4px auto !important;
  background-color: #000;
  /* bisa diubah sesuai tema */
}

.navbar-pf--blue .navbar-toggler-bar {
  display: block !important;
  width: 22px !important;
  height: 2px !important;
  margin: 4px auto !important;
  background-color: #fff;
  /* bisa diubah sesuai tema */
}

/* ============ Wrapper =============== */
/* Wrapper untuk setiap konten, agar ada space dari nav */
.wrapper {
  margin-top: 10vh;
}

/* =========== Common ============== */
.extra-bold {
  font-weight: 1200 !important;
}

.bg-orange {
  background-color: #f8a631 !important;
  color: #fff !important;
  padding: 0 1rem 0 1rem;
  font-weight: 1200 !important;
}

.bg-blue {
  background-color: #008cb9 !important;
}

.bg-gradient-orange {
  background: hsla(35, 93%, 58%, 1);
  background: linear-gradient(
    270deg,
    hsla(35, 93%, 58%, 1) 0%,
    hsla(33, 95%, 42%, 1) 100%
  );
  background: -moz-linear-gradient(
    270deg,
    hsla(35, 93%, 58%, 1) 0%,
    hsla(33, 95%, 42%, 1) 100%
  );
  background: -webkit-linear-gradient(
    270deg,
    hsla(35, 93%, 58%, 1) 0%,
    hsla(33, 95%, 42%, 1) 100%
  );
  filter: progid: DXImageTransform.Microsoft.gradient(startColorstr="#F8A631", endColorstr="#D37505", GradientType=1);
}

hr {
  width: 100%;
  border-top: 2px solid #f8a631;
}

.text-blue {
  color: #008cb9 !important;
  font-weight: 1000 !important;
}

button:focus {
  outline: 5px auto #008cb9 !important;
}

.w-90 {
  width: 90% !important;
}

/* ====== Ribbon PureFoam ====== */
.pf-ribbon {
  --main: #007499;
  /* warna utama */
  --shadow: #008cb9;
  /* warna shadow */

  position: relative;
  display: inline-block;
  padding: 10px;
  /* Padding lebih kecil */
  background: var(--main);
  color: #fff;
  font-weight: bold;
  transform: skewY(-2deg);
  /* Miringkan lebih sedikit */
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
  text-align: center;
  scale: 0.8;
}

.pf-ribbon > span {
  display: inline-block;
  transform: skewY(2deg);
  /* Sesuaikan dengan transform ribbon */
  padding: 0 5px;
}

.pf-ribbon::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  background: var(--shadow);
  transform: translate(0px, 3px) skewY(2deg);
  /* Shadow lebih kecil */
  z-index: -1;
  scale: 1.05;
}

/* ====== Product ========= */
.pf-product {
  position: relative;
  width: min(350px, 55vw);
  aspect-ratio: 1 / 0.78;
  /* kanvas komposisi */
}

/* Segi enam + gradasi */
.pf-hex {
  position: absolute;
  inset: 16% 8% 0%;

  background: linear-gradient(
    to bottom,
    rgba(235, 161, 53, 0) 0%,
    /* #EBA135, opacity 0% */ rgba(235, 161, 53, 0.9) 100%
      /* #EBA135, opacity 90% */
  );

  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.18));
}

.pf-hex:hover {
  position: absolute;
  inset: 16% 8% 0%;

  background: linear-gradient(
    to bottom,
    rgba(0, 140, 185, 0) 0%,
    /* #008CB9 dengan opacity 0% */ rgba(0, 140, 185, 0.7) 100%
      /* #008CB9 dengan opacity 90% */
  );

  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.18));
}

.pf-hex.active {
  background: linear-gradient(
    to bottom,
    rgba(0, 140, 185, 0) 0%,
    rgba(0, 140, 185, 0.9) 100%
  );
}

.pf-hex.disabled {
  pointer-events: none;
}

/* Gambar matras di atas hex */
.pf-mattress {
  position: absolute;
  inset: 10% 0% 0%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
  filter: drop-shadow(10px 14px 16px rgba(0, 0, 0, 0.25));
  pointer-events: none;
}

.pf-badge {
  position: absolute;
  top: 6%;
  left: 15%;
  font-size: 0.1rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  z-index: 2;
  /* di atas hex & gambar */
  white-space: nowrap;
}

.pf-photo {
  height: 40vh;
}

/* Tablet dan di bawahnya */

@media (max-width: 1024px) {
  .pf-photo {
    height: 20vh;
  }
}

/* Ponsel */
@media (max-width: 767px) {
  .pf-photo {
    height: 15vh;
  }
}

.title {
  font-family: "forma-djr-display", sans-serif !important;
  padding-top: 0 !important;
  letter-spacing: 3px !important;
  font-weight: 800 !important;
}

.product-title {
  font-family: "brandon-grotesque", sans-serif !important;
  font-weight: 800 !important;
}

#products {
  min-height: 100vh;
}

#products .title {
  font-size: 2.5em;
  margin-bottom: 30px;
  line-height: 1.2;
}

#products .product-name {
  font-size: 1.5em;
  line-height: 1.3em;
}

#products .product-detail {
  font-size: 1.25em;
  line-height: 1.4em;
}

@media (min-width: 768px) {
  #products .title {
    font-size: 3.5em;
    line-height: 1.15;
    margin-bottom: 3rem;
  }

  #products .product-name {
    font-size: 1.825em;
    line-height: 1.4em;
  }

  #products .product-detail {
    font-size: 1.5em;
    line-height: 1.45em;
  }
}

#section {
  height: 80vh;
}

#section .section-wrapper {
  width: 100%;
  padding: 0.5rem;
}

#section .title {
  font-size: 1.825em;
  line-height: 1.4;
  margin-bottom: 30px;
}

#section .content {
  font-size: 1.2em;
  line-height: 1.61;
  margin-bottom: 1rem;
  font-weight: 300;
}

#section .underline-orange {
  text-decoration: underline;
  text-decoration-color: #f8a631;
  text-underline-offset: 10px;
}

@media (min-width: 768px) {
  #section {
    height: 70vh;
  }

  #section .section-wrapper {
    width: 75%;
  }

  #section .title {
    font-size: 3.5em;
    line-height: 1.15;
    margin-bottom: 30px;
  }

  #section .content {
    font-size: 1.825em;
    line-height: 1.4;
    margin-bottom: 30px;
    font-weight: 500;
  }
}

/* ========== Instagram ========== */
.instagram-section {
  z-index: 0;
  height: 100vh;
}

@media (max-width: 1024px) {
  .instagram-section {
    height: 70vh;
  }
}

@media (max-width: 767px) {
  .instagram-section {
    height: 100vh;
  }
}

.ig-scroll-x {
  --ig-pad: 8px;
  /* satu sumber kebenaran untuk padding */
  position: relative;
  /* aman untuk hitung offset */
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  padding: 8px var(--ig-pad);
  /* atas-bawah 8px, kiri-kanan pakai var */
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--ig-pad);
  scroll-padding-right: var(--ig-pad);
  z-index: 1;
}

@media (max-width: 992px) {
  .ig-scroll-x {
    justify-content: start;
  }
}

.ig-scroll-x::-webkit-scrollbar {
  height: 6px;
}

.ig-scroll-x::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
}

.ig-item {
  flex: 0 0 auto;
  /* biar item tetap satu baris */
  width: 280px;
  /* atur lebar kartu */
  scroll-snap-align: start;
  /* snap ke awal kartu */
  scroll-snap-stop: always;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.ig-item img,
.ig-item video {
  width: 100%;
  height: 50vh;
  object-fit: cover;
  display: block;
}

@media (max-width: 1024px) {
  .ig-item img,
  .ig-item video {
    height: 35vh;
  }
}

@media (max-width: 767px) {
  .ig-item img,
  .ig-item video {
    height: 50vh;
  }
}

.ig-item video {
  display: none;
}

.ig-item.is-playing img {
  display: none;
}

.ig-item.is-playing video {
  display: block;
}

.ig-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.ig-play img {
  width: 60px;
  height: 60px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

/* ========== Nav tombol (tambahan baru, aman dipadukan) ========== */
.ig-wrapper {
  position: relative;
  width: 100%;
}

.ig-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.6);
  color: #fff;
  display: grid;
  place-items: center;
  pointer-events: auto;
  cursor: pointer;
  backdrop-filter: blur(2px);
}

.ig-nav-btn svg {
  width: 20px;
  height: 20px;
}

.ig-prev {
  left: 6px;
  font-size: 24px;
}

.ig-next {
  right: 6px;
  font-size: 24px;
}

.rounded-pill {
  border: 2px solid #d37505 !important;
  padding: 0.5rem 0.5rem !important;
  border-radius: 50rem !important;
}

.btn-round {
  height: 5px;
  width: 5px;
  border-radius: 50% !important;
}

.color-active {
  border: 5px solid #000;
}

/* Modal arrows */
#pfGalleryModal .pf-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  z-index: 2;
}

#pfGalleryModal .pf-nav:hover {
  background-color: #008cb9;
  color: white;
}

#pfGalleryModal .pf-prev {
  left: 8px;
}

#pfGalleryModal .pf-next {
  right: 8px;
}

#pfGalleryModal .pf-nav:focus {
  outline: none;
}

/* Shared arrow styles */
.pf-scroll {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  z-index: 4;
}

.pf-scroll:focus {
  outline: none;
}

/* Desktop arrows */
.pf-desktop-strip .pf-desk-prev {
  left: 6px;
}

.pf-desktop-strip .pf-desk-next {
  right: 6px;
}

/* Mobile arrows */
.pf-mobile-strip .pf-scroll-prev {
  left: 6px;
}

.pf-mobile-strip .pf-scroll-next {
  right: 6px;
}

/* Smooth & snap */
.pf-desktop-photos,
.pf-mobile-photos {
  -webkit-overflow-scrolling: touch;
  padding: 2px 0;
}

.pf-desktop-photos {
  scroll-snap-type: x mandatory;
}

.pf-mobile-photos {
  scroll-snap-type: x mandatory;
}

.pf-desktop-item,
.pf-mobile-item {
  scroll-snap-align: start;
  flex: 0 0 auto;
}

#pfGalleryModal .pf-close {
  transition:
    transform 0.15s ease,
    opacity 0.15s ease,
    background-color 0.15s ease;
  opacity: 0.85;
}

#pfGalleryModal .pf-close:hover {
  transform: scale(0.92);
  opacity: 1;
}

.vl {
  border-left: 1px solid #fff;
  border-right: 1px solid #fff;
}

.title-2 {
  font-family: "forma-djr-display", sans-serif !important;
  padding-top: 0 !important;
  letter-spacing: 1px !important;
  font-weight: 800 !important;
}

/* Styling CSS tambahan untuk responsivitas font tanpa menduplikasi div */
.responsive-title {
  font-size: 1.8rem;
}
@media (min-width: 768px) {
  .responsive-title {
    font-size: 2.5rem;
  }
}
@media (min-width: 992px) {
  .responsive-title {
    font-size: 3rem;
  }
}

.icon-img {
  width: 88px;
  height: 88px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
}

.accordion-body .row .d-flex.flex-column.align-items-center {
  min-height: 120px;
  justify-content: center;
}

.fs-5 {
  font-size: 1.6rem;
}

.fs-6 {
  font-size: 1.125rem;
  font-weight: 500;
}

@media (max-width: 576px) {
  .icon-img {
    width: 72px;
    height: 72px;
  }
  .accordion-body .row .d-flex.flex-column.align-items-center {
    min-height: 110px;
  }
  .fs-5 {
    font-size: 1rem;
  }

  .fs-6 {
    font-size: 0.875rem;
  }
}

.pf-bf-section {
  background: #fdf1e1;
}
.pf-bf-title {
  color: #008cb9;
  font-family: "forma-djr-display", sans-serif !important;
  font-size: 2.5em;
  letter-spacing: 3px;
  font-weight: 800;
}

/* Visual utama */
.pf-bf-visual {
  max-width: 820px;
  aspect-ratio: 16/7;
  position: relative;
}

/* Catatan: Elemen dengan class .pf-foam-img tidak ada di HTML kamu.
     Jika memang tidak dipakai, blok ini bisa dihapus untuk menghemat ukuran file */
.pf-foam-img {
  position: absolute;
  height: auto;
  width: 16%;
  top: 40%;
  left: calc(28% + 0.5%);
  z-index: 2;
}

/* Kartu gambar langkah (desktop) */
.pf-step {
  width: 160px;
}
.pf-img-wrap {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 10px;
  overflow: hidden;
  background: #e7ecef;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pf-step-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pf-step-text {
  line-height: 1.35;
  font-weight: 400;
}

/* Arrow: align tengah (vertikal & horizontal) di desktop */
.pf-arrow {
  color: #f29f2d;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pf-cta {
  background: #f29f2d;
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
}

/* ====== Mobile (≤576px) ====== */
@media (max-width: 576px) {
  /* Sesuaikan title width di mobile jika perlu */
  .w-75 {
    width: 75% !important;
  }

  .pf-bf-title {
    font-size: 1.825em;
    line-height: 1.4;
  }

  .pf-foam-img {
    width: 20%;
    top: 48%;
    left: calc(15% + 0.5%);
  }

  /* Susun langkah jadi 1 kolom & kotak gambar center */
  .pf-steps {
    flex-direction: column;
    align-items: center;
    gap: 18px !important;
    flex-wrap: nowrap;
  }
  .pf-step {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .pf-img-wrap {
    width: 85%;
    max-width: 220px;
    margin: 0 auto;
    aspect-ratio: 1/1;
  }
  .pf-step-text {
    margin-top: 8px;
    text-align: center;
  }
  /* Arrow hilang di mobile */
  .pf-arrow {
    display: none !important;
  }
}
