/*--------------------------------------------------------------
# Common
--------------------------------------------------------------*/
:root {
  --accent-gray: #827e78;
  --accent-letter-spacing: 0.1em;
  --accent-white: rgb(255, 255, 255);
}

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: var(--accent-white);
}

body::before { }

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

a:not(.footer a):not(.img-popup) {
  padding: 5px 30px;
  border: 1px var(--dark) solid;
  color: var(--accent-font);
  font-size: 24px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Old Standard TT", 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: "Old Standard TT", serif;
  font-weight: 400;
  color: var(--primary);
  line-height: normal;
  margin-inline: auto;
}

.span-box {
  border-top: 2px var(--primary) solid;
  border-bottom: 2px var(--primary) solid;
  text-align: center;
  width: 100%;
  padding: 0.25rem 0;
}

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

@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;}

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

.about-img-section { }

.about-img-img { width: 45%; }
.about-img-text { margin-right: 1rem; }

@media (max-width: 992px){
  .about-img-img { width: 100%; }
  .about-img-text { margin-right: 0; }
}

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

.about-vid-section { }

.about-vid-vid {
  width: 45%;
  min-height: 20vh;
  overflow: hidden;
}
.about-vid-text { margin-right: 1rem; }

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

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

.benefit-section {  }

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

.benefit-section .item {
  aspect-ratio: 3/4;
  border: 1px var(--accent-gray) solid;
}

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

.benefit-content h3 {
  border-bottom: 1px var(--accent-gray) solid;
}

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

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

.in-content-section { padding: 3rem; }

.content-image {
  aspect-ratio: 1;
  overflow: hidden;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.content-content {
  margin-left: 3rem;
  padding-inline: 1rem;
}

.content-content h2 {
  border-bottom: 2px var(--dark) solid;
}

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

@media (max-width: 992px) {
  .in-content-section { padding: 2rem; }

  .content-content {
    margin-left: 0;
    padding-inline: 0;
  }

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

@media (max-width: 767px) {
  .in-content-section { padding: 1rem; }
  .content-content { width: 100%; }
}

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

.facility-section { }

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

.facility-item {
  border:1px var(--accent-gray) solid;
}

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

.gallery-section {}

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

.hero-car-section { }

.owl-dots {
  position: absolute;
  width: 15%;
  max-height: 100px;
  height: 100%;
  bottom: 6.5%;
  left: 7%;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.owl-dots .owl-dot.active {
  width: 100%;
  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; }

.owl-item {
  display: flex;
  align-items: center;
}

.carousel-image-layer {
  width: 100%;
  height: 100%;
  z-index: 0;
  border: 3px var(--dark) solid;
  background: var(--primary);
  padding: 3rem
}

.hero-car-img {
  aspect-ratio: 1;
  margin-inline: auto;
}

.hero-car-content {
  border-right: 3px var(--dark) solid;
  width: 50%;
  height: 100%;
}

.hero-car-content p, .hero-car-content h1 {
  width: 80%;
}
.hero-car-content h1 { padding: 1rem 0;}

.hero-car-content a { margin-top: 3rem; }

.hero-car-content h1 { 
  border-top: 2px var(--dark) solid;
  border-bottom: 2px var(--dark) solid;
}

@media (max-width: 992px) {
  .hero-car-content { 
    border-right: 0;
    height: 50%;
  }

  .owl-dots {
    width: 5%;
    flex-direction: column;
    bottom: 27%;
    left: 7.5%;
    gap: 1rem;
  }
}

@media (max-width: 767px) {
  .carousel-image-layer { padding: 1.5rem; }
  .hero-car-content a { margin-top: 1rem; }
  .hero-car-content p, .hero-car-content h1 {
    width: 100%;
  }
  .hero-car-content h1 { padding: 0.5rem 0;}

  .owl-dots {
    width: 25%;
    flex-direction: row;
    bottom: 0;
    left: 5%;
    gap : 0;
  }
  .owl-dots .owl-dot { margin-inline: 3px; }
}

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

.hero-vid-section { }

.hero-vid-content p, .hero-vid-content h1 { }

.hero-vid-content { 
  text-align: start;
  overflow: hidden;
  border: 1px var(--accent-gray) solid;
  background: var(--primary);
  padding: 3rem;
}

.hero-vid-text { padding-left: 3rem; }
.hero-vid-text p { margin-bottom: 3rem; }

@media (max-width: 992px) {
  .hero-vid-text { padding-left: 0; margin-top: 1rem;; }
  .hero-vid-text p { margin-bottom: 1.5rem; }
  .video-wrapper { width: 100%; }
}

@media (max-width: 767px) {
  .hero-vid-content { padding: 1.5rem; }
}

.video-wrapper {
    aspect-ratio: 16/9;
    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 {
  text-align: start;
  overflow: hidden;
  border: 1px var(--dark) solid;
  background: var(--primary);
  padding: 3rem;
}

.hero-img-text { border-left: 3px var(--dark) solid; }
.hero-img-title { width: 20%; }
.hero-img-text { width: 80%; padding: 0 1rem; margin-inline: 1rem; }

@media (max-width: 767px) { 
  .hero-img-content { 
    height: 100%;
    padding: 1.5rem;
  }
  .hero-img-text { 
    border-top: 3px var(--dark) solid; 
    border-left: 0; 
  }
  .hero-img-title { width: 100%; }
  .hero-img-text { width: 100%; padding: 1rem 0; margin-inline: 0; }
}

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

.product-section { }

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

.product-item {
  border: 1px var(--accent-gray) solid;
}

.product-item h3 {
  border-bottom: 1px var(--accent-gray) solid;
}