:root {
  --greeting-primary: #4a2618;
  --greeting-secondary: #f4ebdd;
  --greeting-accent: #a85d3a;
  --greeting-white: #ffffff;

  --greeting-font-primary: "Cormorant Garamond", serif;
  --greeting-font-secondary: "Montserrat", sans-serif;
}


/* =========================================================
   RESET
   ========================================================= */

.greeting-section *,
.greeting-section *::before,
.greeting-section *::after {
  box-sizing: border-box;
}


/* =========================================================
   SECTION UTAMA
   ========================================================= */

.greeting-section {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100vh;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: var(--greeting-primary);
  color: var(--greeting-white);
}


/* =========================================================
   BACKGROUND
   ========================================================= */

.greeting-background {
  position: absolute;
  inset: 0;
  z-index: -5;
  width: 100%;
  height: 100%;
  background:
    url("../assets/images/Background 2.jpg")
    center center / cover no-repeat;
}


/* =========================================================
   ORNAMEN SISI KIRI
   ========================================================= */

.greeting-side-ornament {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 5;
  width: 25%;
  pointer-events: none;
}

.greeting-side-ornament-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  margin: 0;
}


/* =========================================================
   ORNAMEN BUNGA KANAN ATAS
   ========================================================= */

.greeting-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  z-index: 4;
  width: 35% !important;
  height: 32%;
  background:
    url("../assets/images/bunga sudut kanan atas.png")
    right top / contain no-repeat;
  pointer-events: none;
}


/* =========================================================
   ORNAMEN PEMANDANGAN KANAN BAWAH
   ========================================================= */

.greeting-section::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  width: 48%;
  height: 38%;
  background:
    url("../assets/images/pemandangan.png")
    right bottom / contain no-repeat;
  pointer-events: none;
}


/* =========================================================
   KONTEN UTAMA
   ========================================================= */

.greeting-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 75%;
  min-height: 100vh;
  height: 100vh;
  margin-left: 25%;
  padding: 7vh 4vw 30vh;
  text-align: center;
}


/* =========================================================
   FOTO MEMPELAI
   ========================================================= */

.greeting-photo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(230px, 30vw, 430px);
}

.greeting-photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 0.74 / 1;
  overflow: hidden;
  border: 5px solid rgba(255, 255, 255, 0.95);
  border-radius: 25% 25% 25% 25%;
  background-color: var(--greeting-secondary);
  box-shadow: 0 8px 35px rgba(0, 0, 0, 0.35);
}

.greeting-photo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.5);
  object-position: -110px -20px;
}


/* =========================================================
   INFORMASI
   ========================================================= */

.greeting-info {
  position: relative;
  z-index: 12;
  width: 100%;
  max-width: 700px;
  margin-top: 4vh;
  text-align: center;
}

.greeting-subtitle {
  margin: 0;
  font-family: var(--greeting-font-primary);
  font-size: 22px !important;
  font-weight: 600;
  line-height: 1.1;
  color: var(--greeting-primary);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.greeting-title {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin: 8px 0 0;
  font-family: var(--greeting-font-primary);
  font-size: 36px !important;
  font-weight: 600;
  line-height: 0.95;
  color: #a85d3a;
}


/* =========================================================
   TANGGAL
   ========================================================= */

.greeting-date {
  margin: 12px 0;
  margin-top: 20px !important;
  font-family: var(--greeting-font-primary);
  font-size: clamp(20px, 2.5vw, 34px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--greeting-primary);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}


/* =========================================================
   COUNTDOWN
   ========================================================= */

.greeting-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 30px auto 10px !important;
}

.greeting-countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 5px 6px;
  border-radius: 6px;
  border: 1px solid rgba(168, 93, 58, 0.7);
  background: rgba(255, 255, 255, 0.32);
}

.greeting-countdown-item span {
  font-family: var(--greeting-font-secondary);
  font-size: 26px !important;
  font-weight: 600;
  line-height: 1.1;
  color: var(--greeting-primary);
}

.greeting-countdown-item small {
  margin-top: 3px;
  font-family: var(--greeting-font-secondary);
  font-size: 12px !important;
  font-weight: 500;
  line-height: 1;
  color: var(--greeting-primary);
}


/* =========================================================
   SAVE THE DATE
   ========================================================= */

.greeting-save-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(168, 93, 58, 0.7);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.35);
  color: var(--greeting-primary);
  font-family: var(--greeting-font-secondary);
  font-size: 10px !important;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s ease;
}

.greeting-save-date i {
  font-size: 10px;
}

.greeting-save-date:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}


/* =========================================================
   ORNAMEN BAWAH
   ========================================================= */

.greeting-bottom-ornament {
  position: absolute;
  left: 25%;
  right: 0;
  bottom: 0;
  z-index: 20;
  height: 42%;
  pointer-events: none;
}


/* =========================================================
   RUMAH TONGKONAN + BUNGA
   KIRI BAWAH
   ========================================================= */

.greeting-roof {
  position: absolute;
  left: -236px !important;
  bottom: -5%;
  z-index: 2;
  width: 80% !important;
  height: auto;
  max-width: none;
  object-fit: contain;
}


/* =========================================================
   DESKTOP
   MIN 1200PX
   ========================================================= */

@media (min-width: 1200px) {

  .greeting-side-ornament {
    width: 24%;
  }

  .greeting-content {
    width: 76%;
    margin-left: 24%;
    padding-top: 7vh;
  }

  .greeting-photo {
    width: clamp(250px, 30vw, 420px);
  }

  .greeting-info {
    margin-top: 3vh;
  }

  .greeting-subtitle {
    font-size: 28px;
  }

  .greeting-title {
    font-size: 50px !important;
  }

  .greeting-date {
    font-size: 24px;
  }

  .greeting-countdown {
    gap: 8px;
  }

  .greeting-countdown-item {
    min-width: 46px;
  }

  .greeting-countdown-item span {
    font-size: 18px !important;
  }

  .greeting-countdown-item small {
    font-size: 12px !important;
  }

  .greeting-save-date {
    font-size: 14px !important;
  }

  .greeting-bottom-ornament {
    left: 14%;
    height: 42%;
  }

  .greeting-roof {
    left: -220px;
    bottom: -4%;
    width: 65%;
  }

  .greeting-section::before {
    width: 28%;
    height: 34%;
  }

  .greeting-section::after {
    width: 45%;
    height: 38%;
  }
}


/* =========================================================
   LAPTOP / TABLET BESAR
   MAX 1199PX
   ========================================================= */

@media (max-width: 1199px) {

  .greeting-side-ornament {
    width: 23%;
  }

  .greeting-content {
    width: 77%;
    margin-left: 23%;
  }

  .greeting-photo {
    width: 280px;
  }

  .greeting-section::before {
    width: 30%;
    height: 30%;
  }

  .greeting-section::after {
    width: 48%;
    height: 36%;
  }

  .greeting-bottom-ornament {
    left: 23%;
  }

  .greeting-roof {
    left: -190px;
    width: 70%;
  }
}


/* =========================================================
   TABLET
   MAX 992PX
   ========================================================= */

@media (max-width: 992px) {

  .greeting-side-ornament {
    width: 22%;
  }

  .greeting-content {
    width: 78%;
    margin-left: 22%;
    padding-top: 11vh;
    padding-bottom: 28vh;
  }

  .greeting-photo {
    width: 250px;
  }

  .greeting-subtitle {
    font-size: 26px !important;
  }

  .greeting-info {
    margin-top: 3vh;
  }

  .greeting-title {
    margin-top: 30px !important;
    font-size: 50px !important;
  }

  .greeting-date {
    margin-top: 10px !important;
  }

  .greeting-countdown {
    margin-top: 40px !important;
  }

  .greeting-section::before {
    width: 32%;
    height: 28%;
  }

  .greeting-section::after {
    width: 52%;
    height: 32%;
  }

  .greeting-bottom-ornament {
    left: 22%;
    height: 40%;
  }

  .greeting-roof {
    left: -250px !important;
    width: 80% !important;
  }

  .greeting-save-date {
    margin-top: 12px !important;
    padding: 10px 10px;
    font-size: 14px !important;
  }
}


/* =========================================================
   HP / TABLET KECIL
   MAX 768PX
   ========================================================= */

@media (max-width: 768px) {

  .greeting-side-ornament {
    width: 21%;
  }

  .greeting-content {
    width: 79%;
    margin-left: 21%;
    padding: 10vh 14px 27vh;
  }

  .greeting-photo {
    width: 220px;
  }

  .greeting-photo-image {
    transform: scale(1.5);
    object-position: -95px -20px;
  }

  .greeting-info {
    margin-top: 3.5vh !important;
  }

  .greeting-subtitle {
    font-size: 22px !important;
  }

  .greeting-title {
    font-size: 48px !important;
    margin-top: 10px !important;
  }

  .greeting-date {
    margin-top: 14px !important;
    font-size: 20px !important;
  }

  .greeting-countdown {
    gap: 15px !important;
    margin-top: 40px !important;
  }

  .greeting-countdown-item {
    min-width: 39px;
    padding: 5px;
  }

  .greeting-countdown-item span {
    font-size: 18px !important;
  }

  .greeting-countdown-item small {
    font-size: 10px !important;
  }

  .greeting-save-date {
    margin-top: 6px;
    padding: 6px 10px;
    font-size: 13px !important;
  }

  .greeting-section::before {
    width: 36%;
    height: 26%;
  }

  .greeting-section::after {
    width: 58%;
    height: 30%;
  }

  .greeting-bottom-ornament {
    left: 21%;
    height: 78%;
  }

  .greeting-roof {
    left: -36% !important;
    bottom: -3%;
    width: 72%;
  }
}


/* =========================================================
   HP
   MAX 480PX
   ========================================================= */

@media (max-width: 480px) {

  .greeting-side-ornament {
    width: 21%;
  }

  .greeting-content {
    width: 79%;
    margin-left: 21%;
    margin-top: 30px;
    padding: 6vh 12px 28vh;
  }

  .greeting-photo {
    width: 57%;
  }

  .greeting-photo-image {
    transform: scale(1.5);
    object-position: -78px -20px;
  }

  .greeting-photo-frame {
    border-width: 3px;
    width: 90%;
    height: auto;
  }

  .greeting-info {
    margin-top: 2.5vh;
  }

  .greeting-subtitle {
    font-size: 16px !important;
  }

  .greeting-title {
    font-size: clamp(34px, 10vw, 50px) !important;
  }

  .greeting-date {
    margin-top: 8px;
    font-size: clamp(15px, 4vw, 20px);
  }

  .greeting-countdown {
    gap: 5px;
    margin-top: 10px !important;
  }

  .greeting-countdown-item {
    min-width: 39px;
    padding: 5px;
  }

  .greeting-countdown-item span {
    font-size: 11px !important;
  }

  .greeting-countdown-item small {
    font-size: 5px !important;
  }

  .greeting-save-date {
    margin-top: 5px;
    padding: 5px 10px;
    font-size: 7px !important;
  }

  .greeting-section::before {
    width: 43%;
    height: 23%;
  }

  .greeting-section::after {
    width: 64%;
    height: 27%;
  }

  .greeting-bottom-ornament {
    left: 21%;
    height: 41%;
  }

  .greeting-roof {
    left: -65px;
    bottom: -2%;
    width: 82%;
  }
}


/* =========================================================
   HP 420PX
   MAX 420PX
   ========================================================= */

@media (max-width: 420px) {

  .greeting-side-ornament {
    width: 20%;
  }

  .greeting-content {
    width: 80%;
    margin-left: 20%;
    margin-top: 10px;
    padding: 10vh 10px 26vh;
  }

  .greeting-photo {
    width: 160px;
  }

  .greeting-photo-image {
    transform: scale(1.5);
    object-position: -68px -20px;
  }

  .greeting-info {
    margin-top: 2vh;
  }

  .greeting-subtitle {
    font-size: 19px !important;
  }

  .greeting-title {
    font-size: 38px !important;
  }

  .greeting-date {
    font-size: 16px;
  }

  .greeting-countdown {
    gap: 4px;
    margin-top: 30px !important;
  }

  .greeting-countdown-item {
    min-width: 36px;
    padding: 4px;
  }

  .greeting-countdown-item span {
    font-size: 15px !important;
  }

  .greeting-countdown-item small {
    font-size: 9px !important;
  }

  .greeting-save-date {
    font-size: 11px !important;
  }

  .greeting-section::before {
    width: 46%;
    height: 21%;
  }

  .greeting-section::after {
    width: 70%;
    height: 25%;
  }

  .greeting-bottom-ornament {
    left: 20%;
    height: 40%;
  }

  .greeting-roof {
    left: -50px;
    bottom: -2%;
    width: 85%;
  }
}


/* =========================================================
   HP 360PX
   MAX 360PX
   ========================================================= */

@media (max-width: 360px) {

  .greeting-side-ornament {
    width: 19%;
  }

  .greeting-content {
    width: 81%;
    margin-left: 19%;
    margin-top: 50px !important;
    padding: 20px 8px 24vh;
  }

  .greeting-photo {
    width: 150px !important;
  }

  .greeting-photo-image {
    transform: scale(1.5);
    object-position: -60px -20px;
  }

  .greeting-photo-frame {
    border-width: 2px;
  }

  .greeting-info {
    margin-top: 18px;
  }

  .greeting-subtitle {
    font-size: 17px !important;
  }

  .greeting-title {
    font-size: 36px !important;
  }

  .greeting-date {
    margin-top: 7px;
    font-size: 16px !important;
  }

  .greeting-countdown {
    gap: 3px;
    margin-top: 28px !important;
  }

  .greeting-countdown-item {
    min-width: 33px;
    padding: 4px 3px;
  }

  .greeting-countdown-item span {
    font-size: 14px !important;
  }

  .greeting-countdown-item small {
    font-size: 8px !important;
    margin-top: 6px !important;
  }

  .greeting-save-date {
    margin-top: 4px;
    padding: 8px 10px;
    font-size: 10px !important;
  }

  .greeting-section::before {
    width: 50%;
    height: 19%;
  }

  .greeting-section::after {
    width: 74%;
    height: 23%;
  }

  .greeting-bottom-ornament {
    left: 19%;
    height: 40%;
  }

  .greeting-roof {
    left: -35px;
    bottom: -2%;
    width: 88%;
  }
}