:root {
  --color-primary: #4a2618;
  --color-secondary: #f4ebdd;
  --color-accent: #a85d3a;
  --color-text: #3a241b;
  --color-white: #ffffff;

  --font-primary: "Cormorant Garamond", serif;
  --font-secondary: "Montserrat", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.event-section {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  background-image: url("../assets/images/Background 2.jpg");
  color: var(--color-text);
  background-position: top center;
  background-size: 100% auto;
  background-repeat: repeat-y;
}

/* =========================================================
   FRAME / DIVIDER
   Rapat ke tepi section + sudut membulat
========================================================= */

.event-divider {
  position: absolute;
  z-index: 5;
  display: block;
  pointer-events: none;
  user-select: none;
  object-fit: fill;
}

/* Atas & bawah */
.event-divider-top,
.event-divider-bottom {
  left: 0;
  width: 100%;
  height: 24px;
}

/* Kiri & kanan */
.event-divider-left,
.event-divider-right {
  top: 0;
  width: 24px;
  height: 100%;
}

/* Posisi */
.event-divider-top {
  top: 0;
  border-radius: 20px 20px 0 0;
}

.event-divider-bottom {
  bottom: 0;
  border-radius: 0 0 20px 20px;
}

.event-divider-left {
  left: 0;
  border-radius: 20px 0 0 20px;
}

.event-divider-right {
  right: 0;
  border-radius: 0 20px 20px 0;
  transform: scaleX(-1);
}

/* =========================================================
   ORNAMEN
========================================================= */

.event-flower {
  position: absolute;
  z-index: 6;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.event-flower-top {
  left: -10%;
  top: 26%;
  width: 25%;
  transform: scaleX(-1);
}

.event-flower-middle {
  right: -10%;
  top: 62%;
  width: 25%;
}

/* =========================================================
   KONTEN
========================================================= */

.event-content {
  position: relative;
  z-index: 3;
  width: min(100%, 650px);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(100px, 10vw, 150px) 8% clamp(130px, 13vw, 180px);
  text-align: center;
}


/* =========================================================
   EVENT ITEM
========================================================= */

.event-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.event-pemberkatan {
  margin-bottom: clamp(100px, 13vw, 150px);
}


/* =========================================================
   ICON ATAS
========================================================= */

.event-icon {
  display: block;
  width: clamp(55px, 9vw, 85px);
  height: auto;
  margin-bottom: clamp(45px, 6vw, 70px);
  object-fit: contain;
}

.event-title {
  margin: 0 !important;
  font-family: var(--font-primary) !important;
  font-size: 80px !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
  color: var(--color-primary);
}

.event-date {
  margin: 0 auto !important;
  margin-top: 20px !important;
  font-family: var(--font-secondary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent);
}


/* =========================================================
   GARIS
========================================================= */

.event-line {
  width: min(80%, 325px);
  height: 3px;
  margin: clamp(28px, 4vw, 40px) 0;
  background: #a85d3a;
}


/* =========================================================
   WAKTU
========================================================= */

.event-time {
  margin: 0 auto !important;
  margin-top: 5px !important;
  font-family: var(--font-secondary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent);
}


/* =========================================================
   LOKASI
========================================================= */

.event-location {
  margin-top: clamp(38px, 5vw, 50px);
}

.event-location-name {
  margin: 0 0 10px;
  font-family: var(--font-secondary);
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.4;
}

.event-address {
  margin: 0;
  font-family: var(--font-primary);
  font-size: 17px !important;
  font-weight: 600 !important;
  line-height: 1.55;
}

/* =========================================================
   TOMBOL LOKASI
========================================================= */

.event-location-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 210px;
  margin-top: clamp(28px, 4vw, 38px);
  padding: 10px 22px;
  border-radius: 7px;
  background: #a85d3a;
  color: #fff;
  font-family: var(--font-secondary);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: transform .2s ease, opacity .2s ease;
}

.event-location-button i {
  font-size: 17px;
}

.event-location-button:hover {
  transform: translateY(-2px);
  opacity: .9;
}

/* =========================================================
   TABLET / 768PX
========================================================= */

@media (max-width: 768px) {
  .event-divider-top,
  .event-divider-bottom {
    height: 22px;
  }

  .event-divider-left,
  .event-divider-right {
    width: 22px;
  }

  .event-flower-top {
    width: 22%;
    top: 25%;
  }

  .event-flower-middle {
    width: 22%;
    top: 61%;
  }

  .event-content {
    width: 100%;
    padding: 85px 12% 120px;
  }

  .event-icon {
    width: 65px;
    margin-bottom: 45px;
  }

  .event-pemberkatan {
    margin-bottom: 100px;
  }
}

/* =========================================================
   HP — 480PX
========================================================= */

@media (max-width: 480px) {
  .event-divider-top,
  .event-divider-bottom {
    height: 19px;
  }

  .event-divider-left,
  .event-divider-right {
    width: 19px;
  }

  .event-content {
    padding: 70px 11% 100px;
  }

  .event-icon {
    width: 58px;
    margin-bottom: 42px;
  }

  .event-title {
    font-size: 40px !important;
  }

  .event-date,
  .event-time {
    font-size: 12px !important;
  }

  .event-time {
    margin-top: -3px !important;
  }

  .event-line {
    width: 80%;
    height: 2px;
    margin: 25px 0;
  }

  .event-location {
    margin-top: 35px;
  }

  .event-location-name {
    font-size: 15px;
  }

  .event-address {
    font-size: 15px;
  }

  .event-location-button {
    min-width: 195px;
    padding: 9px 10px;
    font-size: 13px;
  }

  .event-flower-top {
    width: 105px;
  }

  .event-flower-middle {
    width: 110px;
  }

  .event-peacock {
    width: 185px;
  }
}

/* =========================================================
   HP — 420PX
========================================================= */

@media (max-width: 420px) {
  .event-divider-top,
  .event-divider-bottom {
    height: 17px;
  }

  .event-divider-left,
  .event-divider-right {
    width: 17px;
  }

  .event-content {
    padding: 65px 12% 90px;
  }

  .event-icon {
    width: 52px;
    margin-bottom: 38px;
  }

  .event-title {
    font-size: 33px !important;
  }

  .event-date,
  .event-time {
    font-size: 10px !important;
  }

  .event-line {
    margin: 22px 0;
  }

  .event-location {
    margin-top: 30px;
  }

  .event-location-name {
    font-size: 14px !important;
  }

  .event-address {
    font-size: 13px !important;
  }

  .event-location-button {
    min-width: 170px;
    font-size: 12px;
  }

  .event-flower-top {
    width: 95px;
  }

  .event-flower-middle {
    width: 100px;
  }

  .event-peacock {
    width: 165px;
  }
}


/* =========================================================
   HP — 360PX
========================================================= */

@media (max-width: 360px) {
  .event-divider-top,
  .event-divider-bottom {
    height: 15px;
  }

  .event-divider-left,
  .event-divider-right {
    width: 15px;
  }

  .event-content {
    padding: 58px 13% 80px;
  }

  .event-icon {
    width: 46px;
    margin-bottom: 34px;
  }

  .event-title {
    font-size: 31px;
  }

  .event-date,
  .event-time {
    font-size: 12px;
  }

  .event-line {
    width: 85%;
    height: 2px;
    margin: 20px 0;
  }

  .event-location {
    margin-top: 27px;
  }

  .event-location-name {
    font-size: 12px;
  }

  .event-address {
    font-size: 12px;
  }

  .event-location-button {
    min-width: 165px;
    padding: 8px 15px;
    font-size: 11px;
  }

  .event-flower-top {
    width: 82px;
  }

  .event-flower-middle {
    width: 88px;
  }

  .event-peacock {
    width: 145px;
  }
}

/* =========================================================
   SCROLL REVEAL - EVENT DETAILS
   ========================================================= */

.event-divider,
.event-flower,
.event-item {
  opacity: 0;
  translate: 0 45px;
  transition:
    opacity 0.8s ease,
    translate 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.event-divider.is-visible,
.event-flower.is-visible,
.event-item.is-visible {
  opacity: 1;
  translate: 0 0;
}

/* Bingkai */
.event-divider-top.is-visible {
  transition-delay: 0s;
}

.event-divider-left.is-visible {
  transition-delay: 0.1s;
}

.event-divider-right.is-visible {
  transition-delay: 0.2s;
}

/* Bottom masuk dari atas supaya tidak terpotong overflow */
.event-divider-bottom {
  translate: 0 -45px;
}

.event-divider-bottom.is-visible {
  translate: 0 0;
  transition-delay: 0.3s;
}

/* Ornamen */
.event-flower-top.is-visible {
  transition-delay: 0.15s;
}

.event-flower-middle.is-visible {
  transition-delay: 0.25s;
}

/* Event */
.event-pemberkatan.is-visible {
  transition-delay: 0.1s;
}

.event-resepsi.is-visible {
  transition-delay: 0.3s;
}