/* Fix: header white bar clipped at top of viewport */
.page-wrapper {
  overflow-x: hidden;
  overflow-y: visible;
}

.header-wrapper {
  padding-top: 16px;
}

.header-wrapper .navbar .container {
  padding-top: 5px;
  padding-bottom: 5px;
}

.header-wrapper .navbar .container::after {
  top: 5px;
  height: calc(100% - 5px);
  border-radius: 8px;
}

.header-wrapper .logo img {
  max-height: 62px !important;
}

/* ——— Desktop: header ramping & seimbang ——— */
@media only screen and (min-width: 992px) {
  .header-wrapper {
    padding-top: 14px;
  }

  .header-wrapper .navbar .container {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    padding: 0 32px !important;
    min-height: 0;
  }

  .header-wrapper .navbar .container.rpy-10 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .header-wrapper .navbar .container::after {
    top: 0;
    height: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  }

  .header-wrapper .logo.d-none.d-lg-block {
    flex-shrink: 0;
    padding: 0 !important;
    margin-right: 28px !important;
  }

  .header-wrapper .logo img {
    max-height: 75px !important;
  }

  .header-wrapper .navbar-collapse {
    flex: 1 1 auto;
    display: flex !important;
    justify-content: center;
  }

  .header-wrapper .navbar-area .navbar-collapse .navbar-nav {
    align-items: center;
    gap: 4px;
  }

  .header-wrapper .navbar-area .navbar-collapse .navbar-nav li {
    line-height: 1.25;
    font-size: 15px;
    font-weight: 500;
  }

  .header-wrapper .navbar-area .navbar-collapse .navbar-nav li a {
    padding: 14px 10px;
    display: inline-block;
  }

  .header-wrapper .navbar-area .navbar-collapse .navbar-nav li + li {
    margin-left: 4px;
  }

  .header-wrapper .nav-right-part {
    flex-shrink: 0;
    margin-left: 12px;
  }

  .header-wrapper .nav-right-part > button {
    font-size: 16px;
    margin-left: 6px;
    margin-right: 6px;
    padding: 8px;
    line-height: 1;
  }

  .header-wrapper .menu-sidebar button {
    font-size: 16px;
    margin-left: 10px;
    line-height: 0.85;
  }

  /* Hero: sesuaikan header yang lebih pendek */
  .hero-three-area.pt-70 {
    padding-top: 56px !important;
  }
}

/* ——— Mobile header: touch target 48px, logo ~68px ——— */
@media only screen and (max-width: 991px) {
  .header-wrapper {
    padding-top: 8px;
  }

  .header-wrapper .navbar .container {
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 6px 8px;
    padding: 8px 14px !important;
    min-height: 0;
  }

  .header-wrapper .navbar .container::after {
    top: 3px;
    height: calc(100% - 3px);
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  }

  .header-wrapper .responsive-mobile-menu {
    grid-column: 1;
    grid-row: 1;
    width: 48px !important;
    height: 48px;
    position: relative !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0;
  }

  .header-wrapper .responsive-mobile-menu .toggle-btn {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    width: 44px;
    height: 44px;
    margin: 0;
    transform: none;
  }

  .header-wrapper .mobile-logo {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    text-align: center;
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 2px 4px;
  }

  .header-wrapper .mobile-logo a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
  }

  /* Logo mobile (file tanpa border berlebih) */
  .header-wrapper .mobile-logo img {
    display: block;
    width: auto;
    height: 56px;
    max-height: none;
    max-width: min(240px, 78vw);
    object-fit: contain;
    margin: 0 auto;
  }

  .header-wrapper .nav-right-part-mobile {
    grid-column: 3;
    grid-row: 1;
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 48px !important;
    height: 48px;
    margin: 0 !important;
  }

  .header-wrapper .nav-right-part-mobile .search-bar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 20px;
    padding: 0;
    line-height: 1;
  }

  .header-wrapper .navbar-collapse {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    margin-top: 4px;
  }

  .header-wrapper .navbar-collapse .navbar-nav {
    margin-bottom: 8px !important;
  }

  .hero-three-area {
    padding-top: 108px !important;
  }

  .hero-three-area .hero-bg-circle {
    max-width: 100px;
    top: 72px;
    opacity: 0.4;
  }

  .hero-three-area .hero-left-image {
    margin-top: 40px !important;
  }

  .hero-three-area .hero-three-content {
    margin-bottom: 48px !important;
  }

  .hero-three-area .hero-three-content h1 {
    font-size: 1.65rem;
    line-height: 1.3;
  }
}

@media only screen and (max-width: 575px) {
  .header-wrapper .mobile-logo img {
    height: 50px;
    max-width: min(220px, 76vw);
  }

  .hero-three-area {
    padding-top: 102px !important;
  }

  .hero-three-area .hero-left-image {
    margin-top: 24px !important;
    margin-bottom: 32px !important;
  }
}

@media only screen and (max-width: 375px) {
  .header-wrapper .mobile-logo {
    max-width: none !important;
  }

  .header-wrapper .mobile-logo img {
    height: 46px;
    max-width: min(200px, 74vw);
  }

  .hero-three-area {
    padding-top: 98px !important;
  }
}

/* ——— Featured products (homepage) ——— */
.featured-products-section {
  background: linear-gradient(180deg, #f8f6fc 0%, #fff 100%);
}

.featured-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(221, 29, 38, 0.06);
  box-shadow: 0 4px 24px rgba(30, 20, 50, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.featured-product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(221, 29, 38, 0.15);
  box-shadow: 0 20px 48px rgba(221, 29, 38, 0.12);
}

.featured-product-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #ede8f5 0%, #f5f2fa 100%);
}

.featured-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-product-card:hover .featured-product-card__media img {
  transform: scale(1.06);
}

.featured-product-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(20, 12, 40, 0.08) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.featured-product-card:hover .featured-product-card__media::after {
  opacity: 1;
}

.featured-product-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: #dd1d26;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(221, 29, 38, 0.35);
}

.featured-product-card__badge--new {
  background: #1a1a2e;
  box-shadow: 0 4px 12px rgba(26, 26, 46, 0.25);
}

.featured-product-card__badge--hot {
  background: #dd1d26;
}

.featured-product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 22px 24px;
  gap: 6px;
}

.featured-product-card__cat {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8b8499;
}

.featured-product-card__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  color: #1a1a2e;
}

.featured-product-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.featured-product-card__title a:hover {
  color: #dd1d26;
}

.featured-product-card__price {
  margin: 4px 0 14px;
  font-size: 1rem;
  font-weight: 700;
  color: #dd1d26;
}

.featured-product-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: auto;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
  text-decoration: none;
  background: #fff;
  border: 2px solid #e8e4f0;
  border-radius: 12px;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.featured-product-card__btn i {
  font-size: 1.15rem;
  color: #25d366;
  transition: transform 0.25s ease;
}

.featured-product-card__btn:hover {
  color: #fff;
  background: #25d366;
  border-color: #25d366;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

.featured-product-card__btn:hover i {
  color: #fff;
  transform: scale(1.1);
}

@media only screen and (max-width: 991px) {
  .featured-product-card__title {
    font-size: 1.05rem;
  }
}

/* ——— Work process: 3 langkah horizontal (Bootstrap row) ——— */
.kita-process-section {
  position: relative;
  z-index: 5;
  background: #f8f7fb;
  padding: 56px 0 64px;
  margin: 0;
}

.kita-process-section .section-title {
  margin-bottom: 0;
}

.kita-process-section .section-title h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.kita-process-row {
  margin-top: 8px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.kita-process-row > [class*="col-"] {
  display: flex;
  justify-content: center;
}

.kita-process-card {
  position: relative;
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 14px;
  padding: 22px 18px 20px;
  box-shadow: 0 6px 24px rgba(20, 16, 40, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kita-process-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(221, 29, 38, 0.1);
}

/* Panah penghubung antar langkah (desktop) */
@media only screen and (min-width: 992px) {
  .kita-process-card[data-step="1"]::after,
  .kita-process-card[data-step="2"]::after {
    content: "→";
    position: absolute;
    top: 44%;
    right: -10px;
    transform: translate(100%, -50%);
    color: rgba(221, 29, 38, 0.45);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
  }
}

.kita-process-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #dd1d26;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(221, 29, 38, 0.25);
}

.kita-process-card__icon {
  width: 100%;
  height: 100px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kita-process-card__icon img {
  max-height: 96px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.kita-process-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 8px;
  line-height: 1.3;
}

.kita-process-card__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #5c5668;
}

@media only screen and (max-width: 991px) {
  .kita-process-section {
    padding: 48px 0 56px;
  }

  .kita-process-card::after {
    display: none !important;
  }
}

@media only screen and (max-width: 575px) {
  .kita-process-card {
    max-width: 100%;
  }
}

/* Services block: remove pseudo overlay that covered work process */
.services-three-area {
  position: relative !important;
  z-index: 1 !important;
  background: #0a0a0a !important;
  margin-top: 0 !important;
  padding-top: 80px !important;
  padding-bottom: 50px !important;
  overflow: hidden;
}

.services-three-area::before,
.services-three-area:before {
  display: none !important;
  content: none !important;
  height: 0 !important;
}

/* ——— About compact (Mengapa Memilih Kami) ——— */
.kita-about-section {
  padding: 56px 0 60px;
  background: #fff;
}

.kita-about-media {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(20, 16, 40, 0.1);
  max-height: 360px;
  aspect-ratio: 16 / 10;
}

.kita-about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.kita-about-content .sub-title {
  display: block;
  margin-bottom: 10px;
}

.kita-about-title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  color: #1a1a2e;
  margin: 0 0 14px;
}

.kita-about-lead {
  font-size: 15px;
  line-height: 1.6;
  color: #5c5668;
  margin: 0 0 18px;
  max-width: 520px;
}

.kita-about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}

.kita-about-tags li {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a2e;
  background: #f5f3fa;
  border: 1px solid rgba(221, 29, 38, 0.12);
  border-radius: 999px;
  padding: 6px 14px;
}

.kita-about-btn {
  padding: 12px 22px !important;
  font-size: 14px !important;
}

@media only screen and (max-width: 991px) {
  .kita-about-section {
    padding: 48px 0 52px;
  }

  .kita-about-media {
    max-height: 280px;
    margin-bottom: 8px;
  }

  .kita-about-title {
    font-size: 1.35rem;
  }
}
