/*--------------------------------------------------------------
# Common
--------------------------------------------------------------*/
:root {
  --accent-font: 'Manrope', sans-serif;
  --accent-font-two: 'Teko', sans-serif;
  --accent-reey-font: "reeyregular";
  --accent-gray: #827e78;
  --accent-letter-spacing: 0.1em;
}

section {
    margin-top: 120px;
    margin-inline: auto;
}

@media (min-width:1200px) {
  section:not(.footer):not(.is-hero-section) {
    max-width: 80%;
  }
}

@media (max-width: 767px) {
  section:not(.footer) {
    margin-top: 60px;
  }
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--accent-gray);
  line-height: 30px;
  font-weight: 300;
  margin: 0;
  position: relative; /* penting agar ::before bisa menempel ke body */
  z-index: 0;
  background: #393939;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.1;

  --s: 220px; /* control the size*/
  --c1: var(--primary);
  --c2: #393939;
  
  --_g:radial-gradient(#0000 60%,var(--c1) 61% 63%,#0000 64% 77%,var(--c1) 78% 80%,#0000 81%);
  --_c:,#0000 75%,var(--c2) 0;
  background:
    conic-gradient(at 12% 20% var(--_c)) calc(var(--s)* .44) calc(.9*var(--s)),
    conic-gradient(at 12% 20% var(--_c)) calc(var(--s)*-.06) calc(.4*var(--s)),
    conic-gradient(at 20% 12% var(--_c)) calc(.9*var(--s)) calc(var(--s)* .44),
    conic-gradient(at 20% 12% var(--_c)) calc(.4*var(--s)) calc(var(--s)*-.06),
    var(--_g),var(--_g) calc(var(--s)/2) calc(var(--s)/2) var(--c2);
  background-size: var(--s) var(--s);
}
@media (max-width: 992px) {
  body::before { --s: 175px; }
}
@media (max-width: 767px) {
  body::before { --s: 110px; }
}

a {
  text-decoration: none;
  z-index: 9 !important;
}

a:not(.footer a):not(.img-popup) {
  padding: 5px 30px;
  background-color: var(--dark);
  box-shadow: 0 0 8px var(--dark);
  color: var(--accent-font);
  font-size: 24px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "El Messiri", sans-serif;
  color: var(--accent-black);
  letter-spacing: var(--accent-letter-spacing);
  line-height: 90%;
  font-weight: 700;
}

h1 { font-size: 48px; }
h2 { font-size: 42px; }
h3 { font-size: 32px; }

span {
  font-size: 28px;
  font-family: "El Messiri", sans-serif;
  font-weight: 400;
  color: var(--primary);
  line-height: 90%;
}

p {
  margin: 0;
  font-size: 20px;
  line-height: normal;
}

@media (max-width: 992px) {
  p, a { font-size: 14px; }
  span { font-size: 20px }
  a:not(.footer a):not(.img-popup) { font-size: 16px; padding: 5px 20px; }

  h1 { font-size: 36px; }
  h2 { font-size: 32px; }
  h3 { font-size: 24px; }
}

@media (max-width: 767px) { 
  p, a { font-size: 12px; }
  a:not(.footer a):not(.img-popup) { font-size: 14px; padding: 3px 15px; }

  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }
}

.is-hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.center-cropped {
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
  background-size: cover;
}

.text-justify {text-align: justify;}

.title-box {
  position: relative;
  padding-top: 30px;
}
.title-box:before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--primary);
  mask:
    radial-gradient(30px at 30px 30px,#0000 calc(98% - 3px),#000 calc(100% - 3px) 98%,#0000) -30px -30px,
    linear-gradient(90deg,#000 6px,#0000 0) -3px 50% /100% calc(100% - 60px + 3px) repeat-x,
    linear-gradient(      #000 6px,#0000 0) 50% -3px/calc(100% - 60px + 3px) 100% repeat-y;
}


.line-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.line {
  flex-grow: 1;
  height: 2px;
  background-color: var(--primary);
}

/*--------------------------------------------------------------
# about-img
--------------------------------------------------------------*/

.about-img-section { }

.about-img-content { }

.about-img-img {
  width: 50%;
  min-height: 30vh;
  aspect-ratio: 1;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 0 40% 0 20%;
}

@media (max-width: 992px){ 
  .about-img-content {
    width: 100% !important;
  }

  .about-img-img-container { 
    width: 80% !important;
  }
}

/*--------------------------------------------------------------
# about-vid
--------------------------------------------------------------*/

.about-vid-section { }

.about-vid-vid {
  width: 100%;
  aspect-ratio: 16/9;
  min-height: 20vh;
  overflow: hidden;
}

@media (max-width: 992px) {
  .about-vid-content {
    width: 100% !important;
  }

  .about-vid-vid-container { 
    width: 80% !important;
  }
}

/*--------------------------------------------------------------
# benefit
--------------------------------------------------------------*/

.benefit-section {  }

.benefit-section-header {
  grid-column: span 1;
}

.benefit-section .item {
  aspect-ratio: 3/4;
}

.blur-gradient-colored {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);

  background: linear-gradient(0deg, var(--primary) 20%, rgba(87, 199, 133, 0) 100%);

  mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 18%, transparent);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 18%, transparent);

  pointer-events: none;
  z-index: 2;
}

.benefit-content {
  position: relative;
  z-index: 2;
}

/*--------------------------------------------------------------
# content
--------------------------------------------------------------*/

.content-section {
  min-height: 60vh;
  overflow: hidden;
}

.content-image-wrapper {
  min-height: 60vh;
  width: 45%;
  border-radius: 48% 48% 3% 3%;
  aspect-ratio: 3/4;
  border: 3px var(--primary) solid;
  overflow: hidden;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.content-image {
  border-radius: 48% 48% 3% 3%;
  height: 95%;
  width: 95%;
  overflow: hidden;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.content-content {
  margin-left: 3rem;
  width: 50%;
  box-sizing: border-box;
}

.content-content a {
  width: fit-content;
}

@media (max-width: 992px) {
  .content-content {
    margin-left: 0;
    width: 60%;
  }
  .content-image-wrapper { width: 60%; }

  .content-content h2 {text-align: center;}
  .content-content a  { margin-inline: auto;}
}

@media (max-width: 767px) {
  .content-content { width: 100%; }
  .content-image-wrapper { width: 100%; }
}

/*--------------------------------------------------------------
# facility
--------------------------------------------------------------*/

.facility-section { }

.blur-gradient-colored-facility {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);

  background: linear-gradient(0deg, var(--primary) 2.5%, rgba(87, 199, 133, 0) 100%);

  mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 2.5%, transparent);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 2.5%, transparent);

  pointer-events: none;
  z-index: 2;
}

.facility-content { z-index:2; }

.facility-section .owl-item {
  aspect-ratio: 3 / 4;
}

/*--------------------------------------------------------------
# gallery
--------------------------------------------------------------*/

.gallery-section {}

/*--------------------------------------------------------------
# hero-carousel
--------------------------------------------------------------*/

.hero-car-section { }

.owl-dots {
  position: absolute;
  width: 7.5%;
  max-width: 100px !important;
  height: 100%;
  top: 0;
  right: 3%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.owl-dots .owl-dot {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  margin: 15px 0;
  background: var(--dark);
  transition: 0.5s;
}

.owl-dots .owl-dot.active {
  width: 120%;
  aspect-ratio: 1/1;
}

.owl-dots .owl-dot img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
  opacity: 0.3;
}

.owl-dots .owl-dot.active img {
  opacity: 1;
}

.hero-car-section .owl-carousel .owl-stage-outer {
  height: 100vh;
}

.hero-car-section .owl-carousel .owl-item {
  width: 100vw !important;  
  height: 100vh;
  display: flex;
}

.hero-car-section .owl-carousel .owl-stage {
  display: flex;
}

.carousel-image-layer {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.carousel-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: blur(10px);
  z-index: 0;
}

.hero-car-content {
  width: 100%;
  text-align: start;
  overflow: hidden;
  padding-inline: 3rem;
}

.hero-car-img-container {
  width: 40%;
  aspect-ratio: 1;
  margin-right: 10%;
  position: relative;
  overflow: hidden;
}

.hero-car-img-container::before,
.hero-car-img-container::after {
  content: "";
  position: absolute;
  width: 20%;
  aspect-ratio: 1;
  z-index: 2;
}

.hero-car-img-container::before {
  top: 0;
  left: 0;
  border-left: 3px var(--primary) solid;
  border-top: 3px var(--primary) solid;
}

.hero-car-img-container::after {
  bottom: 0;
  right: 0;
  border-right: 3px var(--primary) solid;
  border-bottom: 3px var(--primary) solid;
}

.hero-car-img {
  border-radius: 0 30% 0 30%;
}

.hero-car-content p, .hero-car-content h1 { 
  width: 75%;
}

.hero-car-content a {
  width: fit-content;
  align-self: center; /* atau center, tergantung posisi yang diinginkan */
}

.hero-car-content::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 0;
}

@media (max-width: 992px) {
  .hero-car-img-container { 
    width: 75%;
    margin-inline: auto;
  }
  .hero-car-content p, .hero-car-content h1 { width: 75%;}
}

@media (max-width: 767px) {
  .hero-car-content  {
    padding-inline: 1rem;
  }

  .hero-car-content p, .hero-car-content h1 {
    width: 100% !important;
  }
  
  .hero-car-content, .hero-car-img-container {
    width: 80%;
    margin-inline: auto;
  }

  .hero-car-content::before {
    background: linear-gradient(0deg,var(--primary) 10%, rgba(255, 255, 255, 0) 100%);
  }
}

/*--------------------------------------------------------------
# hero-vid
--------------------------------------------------------------*/

.hero-vid-section {
    background: rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
 }

.hero-vid-content p, .hero-vid-content h1 {
  width: 80%;
}

.hero-vid-content { 
  position: relative;
  width: 80%;
}
.hero-vid-content:before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--primary);
  mask:
    radial-gradient(50px at 50px 50px,#0000 calc(98% - 3px),#000 calc(100% - 3px) 98%,#0000) -50px -50px,
    linear-gradient(90deg,#000 6px,#0000 0) -3px 50% /100% calc(100% - 100px + 3px) repeat-x,
    linear-gradient(      #000 6px,#0000 0) 50% -3px/calc(100% - 100px + 3px) 100% repeat-y;
}

@media (max-width: 767px) {
  .hero-vid-content { 
    position: relative;
    width: 100%;
  }

  .hero-vid-content p {
    width: 95%;
  }
}

.video-background {
    position: absolute;
    width: 100%;
    height: 100vh; /* Full viewport height or as needed */
    overflow: hidden;
    z-index: -1;
    background: var(--primary);
}

.video-wrapper {
    position: absolute;
    top: 0;
    left: 50%; /* ⬅️ Taruh titik tengah */
    transform: translateX(-50%); /* ⬅️ Geser ke kiri setengah lebar elemen */
    width: 177.77vh; /* 💡 Lebar berdasarkan tinggi 16:9 (100 * 16 / 9) */
    height: 100vh;    /* 💡 Ikuti tinggi parent */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    object-fit: cover; /* agar video crop */
    border: none;
    pointer-events: none;
}

/*--------------------------------------------------------------
# hero-img
--------------------------------------------------------------*/

.hero-img-section { }

.hero-img-content {
  position: relative;
  z-index: 1; /* Pastikan di atas background */
  text-align: start;
  background: rgba(0,0,0,0.5);
  overflow: hidden;
}

.hero-img-content p, .hero-img-content h1 { width: 80%; }

@media (max-width: 767px) { 
  .hero-img-content {
    height: 100%;
  }
}

/*--------------------------------------------------------------
# product / multiple-img
--------------------------------------------------------------*/

.product-section { }

.product-image {
  position: relative;
  background-size: cover;
  background-position: center;
}

.product-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--primary) 0%, transparent 25%);
  z-index: 1;
}
