/* =========================================================
   ROOT
   ========================================================= */

: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;
}

/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
}

body {
  overflow-x: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

/* =========================================================
   OPENING SECTION
   ========================================================= */

.opening-section {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100svh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: var(--color-secondary);
  color: var(--color-white);
  text-align: center;
}

/* =========================================================
   BACKGROUND
   ========================================================= */

.opening-background {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  background:
    url("../assets/images/Background 2.jpg")
      center center / cover no-repeat;

  transform: scale(1.01);
}

/* =========================================================
   CONTENT
   ========================================================= */

.opening-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* ← ini yang membuat vertikal ke tengah */
  min-height: 100svh;
  min-height: 100dvh;
  width: 100%;
}

.opening-photo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(170px, 45vw, 250px);
  aspect-ratio: 0.72 / 1;
  margin: 0 auto;
}

/* Bingkai oval */

.opening-photo-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 0.78 / 1;
  overflow: hidden;
  border: 6px solid #b77b13;
  border-radius: 50%;
  background: #eee;
  box-shadow:
    0 0 0 3px #6d3908,
    0 8px 30px rgba(0, 0, 0, 0.3);
}

.opening-flower,
.opening-leaf {
  position: absolute;
  height: auto;
  pointer-events: none;
}

.opening-leaf {
  z-index: 1;
  top: 0;
  left: 47% !important;
  width: 230px !important;
  transform: translateX(-5%);
}

.opening-flower-left {
  z-index: 8;
  bottom: 15px;
  left: 0 !important;
  width: 145px !important;
}

/* Foto */

.opening-photo-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: 0;
  transform: scale(2.40);
    /* GESER FOTO */
  object-position: -1px -20px;
}

/* =========================================================
   TITLE
   ========================================================= */

.opening-subtitle {
  margin: 0;
  margin-top: 16px !important;
  margin-bottom: -35px !important;
  font-family: var(--font-secondary);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.opening-title {
  flex-wrap: wrap;
  margin: 0 !important;
  font-family: var(--font-primary) !important;
  font-size: 40px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  color: var(--color-primary);
}

/* =========================================================
   TANGGAL
   ========================================================= */

.opening-date {
  margin: 0;
  margin-top: 10px !important;
  font-family: var(--font-secondary);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.opening-guest {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 330px);
  margin-top: 24px;
  padding: 0 12px;
}

.opening-guest-label {
  margin: 0 0 6px;
  font-family: var(--font-secondary);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #4a2618;
}

.opening-guest-name {
  width: 100%;
  max-width: 100%;
  margin: 0;
  font-family: var(--font-primary);
  font-size: clamp(18px, 4vw, 22px);
  font-weight: 600;
  line-height: 1.25;
  color: #4a2618;
  overflow-wrap: anywhere;
}

.opening-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  max-width: 100%;
  margin-top: 34px !important;
  padding: 12px 28px;
  border: 1px solid rgba(238, 194, 155, 0.8);
  border-radius: 999px;
  background:var(--color-primary);
  color: #fff8ef;
  font-family: var(--font-secondary);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease,
    border-color 0.3s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Hover */

.opening-button:hover {
  background:
    rgba(244, 235, 221, 0.95);
  border-color:
    var(--color-secondary);
  color:
    var(--color-primary);
  transform:
    translateY(-2px);
}

/* Active */

.opening-button:active {
  transform:
    translateY(0);
}

/* Focus */

.opening-button:focus-visible {
  outline:
    2px solid #f0c9a7;
  outline-offset:
    4px;
}

/* =========================================================
   CATATAN DI BAWAH TOMBOL
========================================================= */

.opening-note {
  width: min(90%, 420px);
  margin: 12px auto;
  margin-top: 20px !important;
  padding: 0 10px;
  font-family: var(--font-secondary);
  font-size: 9px !important;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  color: #3a241b !important;
}

/* =========================================================
   DESKTOP
   1200PX - 1599PX
   ========================================================= */

@media (min-width: 1200px) and (max-width: 1599px) {

  .opening-content {
    max-width: 680px;
    padding: 50px 36px 175px;
  }

  .opening-photo {
    width: 270px;
  }

  .opening-title {
    margin-top: 25px;
    font-size: clamp(76px, 7vw, 98px);
  }

  .opening-guest {
    width: 350px;
  }

  .opening-guest-label {
    font-size: 12px;
  }

  .opening-guest-name {
    font-size: 23px;
  }

  .opening-button {
    padding: 14px 32px;
    font-size: 11px;
  }
}

/* =========================================================
   LAPTOP
   1025PX - 1199PX
   ========================================================= */

@media (min-width: 1025px) and (max-width: 1199px) {

  .opening-content {
    max-width: 640px;
    padding: 42px 32px 165px;
  }

  .opening-photo {
    width: 250px;
  }

  .opening-title {
    margin-top: 22px;
    font-size: clamp(68px, 7vw, 90px);
  }

  .opening-guest {
    width: 330px;
  }

  .opening-guest-label {
    font-size: 11px;
  }

  .opening-guest-name {
    font-size: 22px;
  }

  .opening-button {
    font-size: 12px;
  }
}

/* =========================================================
   TABLET
   MAX 992PX
   ========================================================= */

@media (max-width: 992px) {

  .opening-content {
    max-width: 560px;
    padding: 38px 28px 155px;
  }

  .opening-photo {
    width: 60%;
  }

  .opening-photo-image {
    /* GESER FOTO */
  object-position: -3px -35px !important;
  }

  .opening-subtitle {
    font-size: 14px !important;
    margin-top: 30px !important;
  }

  .opening-title {
    margin-top: 40px !important;
    font-size: 54px !important;
  }

  .opening-date {
    font-size: 14px !important;
  }

  .opening-guest {
    margin-top: 45px !important;
  }

  .opening-guest-label {
    font-size: 18px;
    margin-bottom: 10px !important;
  }

  .opening-guest-name {
    font-size: 28px;
  }

  .opening-button {
    margin-top: 42px !important;
    font-size: 18px;
  }

  .opening-note {
    font-size: 14px !important;
    margin-top: 26px !important;
  }

  .opening-leaf {
    top: -1%;
    left: 60% !important;
    width: 160px !important;
  }

  .opening-flower-left {
    bottom: -10px;
    left: 1% !important;
    width: 130px !important;
  }
}

/* =========================================================
   TABLET KECIL
   MAX 768PX
   ========================================================= */

@media (max-width: 768px) {

  .opening-content {
    max-width: 500px;
    padding: 30px 24px 145px;
  }

  .opening-photo {
    width: 50%;
  }

  .opening-photo-image {
    /* GESER FOTO */
    object-position: -3px -35px !important;
  }

  .opening-photo-frame {
    border-width: 2px;
  }

  .opening-subtitle {
    font-size: 12px !important;
    margin-top: 30px !important;
  }

  .opening-title {
    margin-top: 40px !important;
    font-size: 50px !important;
  }

  .opening-date {
    font-size: 12px !important;
  }
  .opening-guest {
    width: min(100%, 300px);
    margin-top: 30px !important;
  }

  .opening-guest-label {
    font-size: 16px;
    margin-bottom: 10px !important;
  }

  .opening-guest-name {
    font-size: 28px;
  }

  .opening-button {
    margin-top: 45px !important;
    padding: 11px 26px;
    font-size: 16px;
  }

  .opening-leaf {
    top: -1%;
    left: 65% !important;
    width: 120px !important;
  }

  .opening-flower-left {
    bottom: -10px;
    left: -5% !important;
    width: 110px !important;
  }
}

/* =========================================================
   HP MAX 480PX
   ========================================================= */

@media (max-width: 480px) {

  .opening-content {
    padding: 24px 20px 135px;
    margin-top: 35px !important;
  }

  .opening-photo {
    width: 45%;
  }

  .opening-photo-image {
    /* GESER FOTO */
    object-position: -3px -25px !important;
  }

  .opening-title {
    margin-top: 40px !important;
    font-size: 60px;
  }

  .opening-title-and {
    margin: 0 6px;
  }

  .opening-guest {
    margin-top: 18px;
  }

  .opening-guest-label {
    margin-bottom: 10px;
    font-size: 12px;
  }

  .opening-guest-name {
    font-size: 20px;
  }

  .opening-button {
    min-width: 145px;
    margin-top: 18px;
    padding: 11px 24px;
    font-size: 12px;
  }

  .opening-note {
    font-size: 11px !important;
  }

  .opening-leaf {
    top: -7%;
    left: 54% !important;
    width: 110px !important;
  }

  .opening-flower-left {
    bottom: -10px;
    left: -5% !important;
    width: 90px !important;
  }
}

@media (max-width: 420px) {
  .opening-content {
    margin-top: 35px !important;
  }
  
  .opening-photo {
    width: 45%;
  }

  .opening-title {
    margin-top: 40px !important;
    font-size: 60px;
  }

  .opening-guest {
    margin-top: 38px !important;
  }

  .opening-guest-label {
    margin-bottom: 6px !important;
    font-size: 12px;
  }

  .opening-guest-name {
    font-size: 20px;
  }

  .opening-button {
    min-width: 145px;
    margin-top: 30px !important;
    padding: 11px 24px;
    font-size: 12px;
  }

  .opening-note {
    font-size: 11px !important;
  }

    .opening-leaf {
    top: -7%;
    left: 54% !important;
    width: 110px !important;
  }

  .opening-flower-left {
    bottom: -10px;
    left: -5% !important;
    width: 90px !important;
  }
}

/* =========================================================
   HP KECIL
   MAX 360PX
   ========================================================= */

@media (max-width: 360px) {

  .opening-content {
    padding: 20px 16px 125px;
    margin-top: 30px !important;
  }

  .opening-photo {
    width: 50%;
  }

  .opening-title {
    font-size: 45px;
  }

  .opening-guest {
    margin-top: 36px;
  }

  .opening-guest-label {
   font-size: 12px; 
  }

  .opening-guest-name {
    font-size: 20px;
  }

  .opening-button {
    min-width: 140px;
    padding: 10px 22px;
    font-size: 14px;
  }

  .opening-note {
    font-size: 10px !important;
  }

  .opening-leaf {
    top: -7%;
    left: 54% !important;
    width: 110px !important;
  }

  .opening-flower-left {
    bottom: -10px;
    left: -5% !important;
    width: 90px !important;
  }

}