/********** Template CSS **********/
:root {
  --primary: #3cb815;
  --secondary: #f65005;
  --light: #f7f8fc;
  --dark: #111111;
}

.back-to-top {
  position: fixed;
  display: none;
  right: 30px;
  bottom: 30px;
  z-index: 99;
}

.my-6 {
  margin-top: 6rem;
  margin-bottom: 6rem;
}

.py-6 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.bg-icon {
  background: url(../img/bg-icon.png) center center repeat;
  background-size: contain;
}

/*** Button ***/
.btn {
  font-weight: 500;
  transition: 0.5s;
}

.btn.btn-primary,
.btn.btn-secondary,
.btn.btn-outline-primary:hover,
.btn.btn-outline-secondary:hover {
  color: #ffffff;
}

.btn-square {
  width: 38px;
  height: 38px;
}

.btn-sm-square {
  width: 32px;
  height: 32px;
}

.btn-lg-square {
  width: 48px;
  height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
}

/*** body ***/

/*** Body ***/
body {
  padding-top: 85px; /* Ditambah dari 70px ke 85px */
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/*** Navbar ***/
.navbar {
  min-height: 75px; /* Ditambah dari 70px ke 80px */
  /* background-color: white !important; */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.navbar-brand img {
  height: 70px;
  width: auto;
}

.fixed-top {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  left: 0 !important;
  z-index: 1030 !important; /* Bootstrap standard z-index untuk fixed navbar */
}

.navbar .navbar-nav .nav-link {
  padding: 28px 20px; /* Ditambah padding */
  color: #555555;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
  color: var(--dark);
}

.navbar .navbar-nav .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background-color: var(--dark);
  border-radius: 2px;
}

.navbar-toggler {
  border: none;
  padding: 6px 10px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/*** Header ***/
.carousel-caption {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: start;
  z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
  width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--primary);
  border: 10px solid var(--primary);
  border-radius: 3rem;
}

@media (max-width: 768px) {
  #header-carousel .carousel-item {
    position: relative;
    min-height: 450px;
  }
}

.page-header {
  padding-top: 12rem;
  padding-bottom: 6rem;
  background: url(../img/h1_hero.png) top right no-repeat;
  background-size: cover;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: #999999;
}

/*** Section Header ***/
.section-header {
  position: relative;
  padding-top: 25px;
}

.section-header::before {
  position: absolute;
  content: "";
  width: 60px;
  height: 2px;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
}

.section-header::after {
  position: absolute;
  content: "";
  width: 90px;
  height: 2px;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--secondary);
}

.section-header.text-start::before,
.section-header.text-start::after {
  left: 0;
  transform: translateX(0);
}

/*** About ***/
.about-img img {
  position: relative;
  z-index: 2;
}

.about-img::before {
  position: absolute;
  content: "";
  top: 0;
  left: -50%;
  width: 100%;
  height: 100%;
  background-image: -webkit-repeating-radial-gradient(#ffffff, #eeeeee 5px, transparent 5px, transparent 10px);
  background-image: -moz-repeating-radial-gradient(#ffffff, #eeeeee 5px, transparent 5px, transparent 10px);
  background-image: -ms-repeating-radial-gradient(#ffffff, #eeeeee 5px, transparent 5px, transparent 10px);
  background-image: -o-repeating-radial-gradient(#ffffff, #eeeeee 5px, transparent 5px, transparent 10px);
  background-image: repeating-radial-gradient(#ffffff, #eeeeee 5px, transparent 5px, transparent 10px);
  background-size: 20px 20px;
  transform: skew(20deg);
  z-index: 1;
}

/*** Product ***/
.nav-pills .nav-item .btn {
  color: var(--dark);
}

.nav-pills .nav-item .btn:hover,
.nav-pills .nav-item .btn.active {
  color: #ffffff;
}

.product-item {
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.07);
}

.product-item img {
  transition: 0.5s;
}

.product-item:hover img {
  transform: scale(1.1);
}

.product-item small a:hover {
  color: var(--primary) !important;
}

/*** Testimonial ***/
.testimonial-carousel .owl-item .testimonial-item img {
  width: 60px;
  height: 60px;
}

.testimonial-carousel .owl-item .testimonial-item,
.testimonial-carousel .owl-item .testimonial-item * {
  transition: 0.5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
  background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item * {
  color: #ffffff !important;
}

.testimonial-carousel .owl-item.center .testimonial-item i {
  color: var(--secondary) !important;
}

.testimonial-carousel .owl-nav {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
  margin: 0 12px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  border: 2px solid var(--primary);
  border-radius: 50px;
  font-size: 18px;
  transition: 0.5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
  color: #ffffff;
  background: var(--primary);
}

/*** Footer ***/
.footer {
  background-color: #111 !important;
  margin-top: 0 !important; /* Pastikan tidak ada jarak dari atas */
  padding-top: 2rem; /* Tambahan padding jika diperlukan */
}
/* Pastikan section sebelumnya tidak punya margin bawah terlalu tinggi */
.bg-icon.mb-5 {
  margin-bottom: 0 !important;
}

.footer .btn.btn-link {
  display: block;
  margin-bottom: 5px;
  padding: 0;
  text-align: left;
  color: #999999;
  font-weight: normal;
  text-transform: capitalize;
  transition: 0.3s;
}

.footer .btn.btn-link::before {
  position: relative;
  content: "\f105";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #999999;
  margin-right: 10px;
}

.footer .btn.btn-link:hover {
  color: var(--light);
  letter-spacing: 1px;
  box-shadow: none;
}

.footer .copyright {
  padding: 25px 0;
  font-size: 15px;
  border-top: 1px solid rgba(256, 256, 256, 0.1);
}

.footer .copyright a {
  color: var(--light);
}

.footer .copyright a:hover {
  color: var(--primary);
}

/* Tambahan untuk responsif */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 767.98px) {
  h1.display-4,
  h2.display-5 {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .container,
  .container-xxl {
    padding-left: 15px;
    padding-right: 15px;
  }

  .product-item {
    margin-bottom: 1rem;
  }

  .form-control-lg {
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }

  .btn-lg {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
  }
}
.btn-order {
  padding: 10px 16px;
  font-size: 15px;
  border-radius: 12px;
  min-width: 140px;
  line-height: 1.4;
  text-align: center;
  white-space: normal;
}
@media (max-width: 576px) {
  /* Tombol Order */
  .btn-order {
    font-size: 13px;
    padding: 8px 12px;
    min-width: 120px;
    line-height: 1.2;
    border-radius: 8px;
  }

  /* Hero Text */
  .carousel-caption h1 {
    font-size: 1.6rem !important;
    line-height: 1.3 !important;
  }

  .carousel-caption p {
    font-size: 0.95rem !important;
  }

  .carousel-caption {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

/* Untuk mobile responsiveness */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: white;
    margin-top: 10px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }

  .navbar .navbar-nav .nav-link {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .navbar .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

@media (min-width: 992px) {
  .navbar .nav-item .dropdown-menu {
    display: block;
    visibility: hidden;
    top: 100%;
    transform: rotateX(-75deg);
    transform-origin: 0% 0%;
    transition: 0.5s;
    opacity: 0;
  }

  .navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    transition: 0.5s;
    opacity: 1;
  }
}

/* Ukuran sedang: Tablet kecil, layar lebih lebar dari HP */
@media (max-width: 768px) and (min-width: 577px) {
  .btn-order {
    font-size: 14px;
    padding: 10px 16px;
    min-width: 130px;
  }

  .carousel-caption h1 {
    font-size: 2rem !important;
  }

  .carousel-caption p {
    font-size: 1.05rem !important;
  }
}
/* Hero Section Default (Desktop) */
#header-carousel .carousel-item {
  display: flex;
  align-items: center;
  position: relative;
  height: 100vh;
}

#header-carousel .carousel-item img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  z-index: 1;
}

#header-carousel .carousel-caption {
  z-index: 2;
  padding: 4rem 2rem;
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Mobile Hero Height Fix */
@media (max-width: 576px) {
  #header-carousel .carousel-item {
    height: 20vh !important; /* lebih pendek di HP */
  }

  #header-carousel .carousel-caption {
    padding: 1rem 1.25rem;
  }

  #header-carousel .carousel-caption h1,
  #header-carousel .carousel-caption h2,
  .carousel-caption h1,
  .carousel-caption h2 {
    font-size: 1.4rem !important;
    line-height: 1.3 !important;
  }

  #header-carousel .carousel-caption p {
    font-size: 0.9rem !important;
    line-height: 1.4;
  }
}

/* produk */
.produk-carousel .product-card {
  transition: all 0.3s ease;
}

.produk-carousel .product-card:hover {
  transform: scale(1.02);
}

.product-card img {
  max-height: 180px;
  object-fit: cover;
}

.img-square-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 */
  overflow: hidden;
  border-radius: 0.5rem;
  margin-bottom: 0; /* <- pastikan tidak ada jarak ekstra */
}

.img-square-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.product-item .img-square-wrapper + .text-center {
  margin-top: 0 !important; /* Hilangkan jarak antar gambar dan teks */
}
.badge {
  font-size: 16px;
  padding: 8px 15px;
  border-radius: 6px;
}
.logo-marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.logo-track {
  display: flex;
  width: max-content;
  animation: scrollLeft 25s linear infinite;
  gap: 3rem;
  align-items: center;
  padding-top: 1rem;
}

/* our beloved */

/* Section */
.client-section {
  padding: 3rem 1rem;
  background-color: #fff;
  text-align: center;
}

/* Container Logo Slider */
.logo-slider-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  margin-bottom: 30px;
}

/* Baris Slider */
.logo-slider {
  display: flex;
  width: max-content;
  gap: 40px;
  align-items: center;
  animation: scrollLeft 25s linear infinite;
}

.logo-slider.reverse {
  animation: scrollRight 25s linear infinite;
}

/* Logo Style */
.logo-slider img {
  height: 60px;
  object-fit: contain;
  transition: transform 0.3s;
}

.logo-slider img:hover {
  transform: scale(1.1);
}

/* Animasi Kiri ke Kanan */
@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Animasi Kanan ke Kiri (untuk baris 2 agar seimbang) */
@keyframes scrollRight {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

/* Hero Section Responsive & Alignment */
.hero-section {
  padding: 60px 0;
}

.carousel-item {
  min-height: 400px;
  display: flex;
  align-items: center;
}

.carousel-item .row {
  width: 100%;
  align-items: center;
}

.carousel-item img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .carousel-item {
    padding: 30px 0;
  }

  .carousel-item .row {
    flex-direction: column-reverse; /* gambar di bawah teks */
    text-align: center;
  }

  .carousel-item .col-md-6 {
    margin-bottom: 30px;
  }
}
/* hero */

@media (max-width: 768px) {
  #hero {
    padding: 1.5rem 1rem !important; /* Ruang atas bawah dan sisi */
  }

  #hero .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  #hero .row {
    margin: 0 !important;
  }

  #hero .hero-img {
    margin-bottom: 0.5rem !important;
    text-align: center;
    padding: 0 !important;
  }

  #hero .hero-img img {
    margin: 0 !important;
    padding: 0 !important;
    display: block;
    max-width: 100%;
    height: auto;
    line-height: 0;
    border-radius: 8px;
  }

  #hero h1 {
    margin-top: 0 !important;
    margin-bottom: 0.25rem !important;

    text-align: center;
    line-height: 1.3 !important;
  }

  #hero p {
    margin-top: 0 !important;
    margin-bottom: 1rem !important;

    text-align: center;
  }

  #hero .d-flex {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  #hero .btn {
    width: 100%;
    max-width: 260px;
    font-size: 0.95rem;
    padding: 0.5rem 1.25rem;
  }

  #hero .col-lg-4,
  #hero .col-lg-6 {
    padding: 0 !important;
    margin: 0 !important;
  }
}
html {
  scroll-behavior: smooth;
}
@media (max-width: 768px) {
  #hero {
    padding-top: 120px; /* atau lebih besar sesuai tinggi navbar */
  }
}

.hero-section {
  padding-top: 100px; /* default (untuk laptop & desktop) */
}

.hero-img {
  margin-top: 0;
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: 160px; /* lebih longgar di HP */
  }

  .hero-img {
    margin-top: 40px;
  }
}
