@import url("https://fonts.googleapis.com/css2?family=Cabin&family=Poppins:wght@400;600;700;800&family=Source+Sans+Pro:wght@400;900&display=swap");

/*Global styles*/
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --main-font: "Source Sans Pro", sans-serif;
  --secondary-font: "Poppins", cursive;
  --body-font: "Cabin", sans-serif;
  --main-font-color-dark: #252525;
  --secondary-font-color: #86c46e;
  --body-font-color: #515151;
}

html {
  font-family: var(--body-font);
  font-size: 10px;
  color: var(--body-font-color);
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

section {
  padding: 3.9rem 0;
  overflow: hidden;
}

img {
  width: 100%;
  max-width: 100%;
}

a {
  text-decoration: none;
}

p {
  font-size: 1.6rem;
}

.container {
  width: 100%;
  max-width: 122.5rem;
  margin: 0 auto;
  padding: 0 2.4rem;
}

/*header*/

header {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 5), transparent);
}

.nav {
  height: 7.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle {
  color: #fff;
  font-size: 2.2rem;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 2.5rem;
  cursor: pointer;
  z-index: 1500;
}

.fa-times {
  display: none;
}

.nav-list {
  list-style: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 80%;
  height: 100vh;
  background-color: var(--main-font-color-dark);
  padding: 4.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  z-index: 1250;
  transform: translateX(-100%);
  transition: transform 0.5s;
}

nav::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.5s;
}

.open .fa-times {
  display: block;
}

.open .fa-bars {
  display: none;
}

.open .nav-list {
  transform: translateX(0);
}

.open .nav::before {
  opacity: 1;
  transform: scale(1);
}

.nav-item {
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.nav-link {
  display: block;
  color: #fff;
  text-transform: uppercase;
  font-size: 1.6rem;
  letter-spacing: 2px;
  margin-right: -2px;
  transition: color.5s;
}

.nav-link:hover {
  color: var(--secondary-font-color);
}

/*Hero*/

.hero {
  width: 100%;
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("images/heroes.jpg") center no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  text-align: center;
}

/*Green Garden Villa ----------------------------------------------------------------- font size*/
.sub-headline {
  font-size: 3.5rem;
  font-family: var(--secondary-font);
  color: var(--secondary-font-color);
  font-weight: 600;
  line-height: 1.1;
  /* ini bikin teks normal, gak terlalu rapet */
  letter-spacing: 0;
  /* opsional, bisa disesuaikan */
  opacity: 0;
  animation: fadeUp 0.5s forwards;
  animation-delay: 0.5s;
}

.first-letter {
  text-transform: uppercase;
  font-size: inherit;
  /* biar ngikut parent (.sub-headline) */
  letter-spacing: normal;
  /* reset spacing biar gak loncat */
  display: inline-block;
  transform: translateX(-0.05em);
  /* geser dikit ke kiri */
}

/*PUNCAK BOGOR ------------------------------------------------------------------------------ font size*/
.headline {
  color: #fff;
  font-size: 2.7rem;
  font-family: var(--main-font);
  text-transform: uppercase;
  font-weight: 80;
  letter-spacing: 0.5rem;
  margin-right: -0.5rem;
  animation: scale 0.5s forwards;
}

.separator {
  display: flex;
  align-items: center;
  justify-content: center;
}

.line {
  width: 100%;
  max-width: 8.4rem;
  height: 0.25rem;
  background-color: #fff;
  position: relative;
  opacity: 0;
  animation: grow 2s forwards;
  animation-delay: 0.9s;
}

.line-right::before,
.line-left::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0.6rem solid transparent;
  opacity: 0;
  animation: grow 5s forwards;
  animation-delay: 1.2s;
}

.line-right::before {
  border-right-color: #fff;
  right: 0;
}

.line-left::before {
  border-left-color: #fff;
  left: 0;
}

.asterisk {
  font-size: 1.2rem;
  color: var(--secondary-font-color);
  margin: 0 1.6rem;
  opacity: 0;
  animation: spin 0.5s forwards;
  animation-delay: 0.7s;
}

.single-animation {
  opacity: 0;
  animation: fadeDown 5s forwards;
  animation-delay: 1.5s;
}

.headline-description h5 {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 100;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  letter-spacing: 3px;
  margin-right: -3px;
}

.btn {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-right: -2px;
}

.cta-btn {
  font-size: 1.1rem;
  background-color: #fff;
  padding: 0.9rem 1.8rem;
  color: var(--body-font-color);
  border-radius: 0.4rem;
  transition: background-color 0.5s;
}

.cta-btn:hover,
.cta-btn:focus {
  color: #fff;
  background-color: var(--secondary-font-color);
}

/* Override khusus untuk Book Now */
.book-now-btn {
  background-color: var(--secondary-font-color); /* hijau langsung */
  color: #fff; /* teks putih biar kontras */
}

.book-now-btn:hover,
.book-now-btn:focus {
  background-color: #4fa34c; /* versi hijau lebih gelap saat hover (opsional) */
  color: #fff;
}

/*Discover our story*/
.global-headline {
  text-align: center;
  margin-top: 3.9rem;
}

.discover-our-story .global-headline {
  margin-top: 6.9rem;
}

.global-headline .asterisk {
  color: var(--body-font-color);
  margin: 2.4rem 0;
}

.headline-dark {
  color: var(--main-font-color-dark);
  letter-spacing: 0.7rem;
  margin-right: 0.7rem;
}

/*Untuk Mengatur ---------------------------------------------------------------------------------------- font size global*/
.global-headline .sub-headline {
  font-size: 5.5rem;
  letter-spacing: -1px;
  /*Untuk Mengatur Jarak Tinggi Text Headline line-height*/
  line-height: 1;
}

.restaurant-info {
  text-align: center;
}

.restaurant-description {
  margin-bottom: 3rem;
}

.restaurant-description p {
  line-height: 1.6;
  margin-bottom: 2.4rem;
}

.body-btn {
  font-size: 1.5rem;
  color: var(--secondary-font-color);
  position: relative;
  transition: color 0.5s;
}

.body-btn::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background-color: var(--secondary-font-color);
  transition: background-color 0.5s;
}

.body-btn:hover,
.body-btn:focus {
  color: var(--main-font-color-dark);
}

.body-btn:hover::before,
.body-btn:focus::before {
  background-color: var(--main-font-color-dark);
}

/*MADE FOR THE Moments*/
.tasteful-recipes {
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url("images/cover.jpg") center no-repeat;
  background-size: cover;
}

.between {
  min-height: 65vh;
  display: flex;
  align-items: center;
}

/*discover menu-----------------------------------------------------DI EDIT*/

/* ===================== */
/* Popup Overlay Produk  */
/* ===================== */
.product-popup {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* ===================== */
/* Card Detail Produk (desktop default) */
/* ===================== */
.product-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: grid;
  grid-template-columns: 2fr 1fr; /* desktop = 2 kolom */
  gap: 2.5rem;
  padding: 3rem;
  max-width: 1200px;
  width: 90%;
  position: relative;
}

/* Close button default (desktop) */
.close-btn {
  position: absolute;
  top: -3px;
  right: 8px;
  font-size: 2.8rem;
  cursor: pointer;
  color: #333;
}

/* ===================== */
/* Responsive Close Button Only */
/* ===================== */
@media (max-width: 768px) {
  .close-btn {
    top: 5px;
    right: 10px;
    font-size: 2.2rem; /* lebih kecil biar pas */
  }
}

@media (max-width: 480px) {
  .close-btn {
    top: -2px;
    right: 3px;
    font-size: 2rem; /* lebih kecil lagi */
  }
}

/* ===================== */
/* Slider Gambar         */
/* ===================== */
.product-slider {
  position: relative;
  width: 100%;
}

.product-slider img {
  width: 100%;
  max-height: 700px;
  /* gambar lebih besar tapi proporsional */
  object-fit: cover;
  /* menjaga proporsi gambar */
  border-radius: 12px;
  /* sudut gambar membulat */
}

/* ===================== */
/* Tombol prev/next slider */
/* ===================== */
.prev-btn,
.next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 5px;
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

/* ===================== */
/* Product Content        */
/* ===================== */
.product-content h2 {
  margin: 0 0 1rem;
  font-size: 1.8rem;
  color: #333;
}

.product-price {
  font-size: 1.5rem;
  color: #333;
  font-weight: bold;
  margin-bottom: 1rem;
}

/* ==================-------------------------------------------------------------------------------------------------------------------------------------------------=== */
/* Ikon di deskripsi produk */
/* ===================------------------------------------------------------------------------------------------------------------------------------------------------== */
.product-desc {
  font-size: 1.7rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 1.5rem;
}

.product-desc i {
  display: inline-flex; /* ikon inline sejajar dengan teks */
  align-items: center; /* vertikal rata tengah dengan teks */
  font-size: 1.6rem; /* ukuran ikon */
  color: inherit; /* ikut warna teks */
  margin-right: 0.8rem; /* jarak kanan ikon ke teks */
  flex-shrink: 0; /* ikon tidak mengecil */
}

/* Ikon di long-desc juga ikut rapih */
.long-desc i {
  display: inline-flex;
  align-items: center;
  font-size: 1.6rem;
  margin-right: 0.8rem;
  color: inherit;
}

.long-desc {
  margin-top: 1.5rem;
  font-size: 1.5rem;
  line-height: 1.7;
  color: #444;
  text-align: justify;
}

/* ===================------------------------== */
/* Grid Foto Galeri/Menu */
/* ================---------------------------===== */
.photos-menu {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 1.5rem;
  margin-top: 2rem;
}

.photos-menu img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  cursor: pointer;
}

/* ===================== */
/* Overlay More View untuk gambar ke-4 */
/* ===================== */
.overlay-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  height: 100%;
}

.overlay-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  pointer-events: none;
  /* biar klik nembus ke gambar */
}

.overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: clamp(1rem, 2vw, 2rem);
  /* responsif */
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 2px;
  z-index: 2;
  pointer-events: none;
  /* teks juga nggak nutup klik */
  font-family: var(--secondary-font);
  white-space: nowrap;
  /* default: 1 baris */
  text-align: center;
}

.overlay-wrapper img {
  display: block;
  border-radius: 10px;
}

/* ===================== */
/* Responsive popup card  */
/* ===================== */
@media (max-width: 768px) {
  .product-card {
    grid-template-columns: 1fr;
    /* kolom jadi 1 di HP */
    text-align: center;
    padding: 1rem;
    /* lebih kecil di HP */
  }

  .product-slider img {
    max-height: 400px;
    /* gambar lebih kecil di HP */
  }

  .prev-btn,
  .next-btn {
    font-size: 1.5rem;
    padding: 3px 7px;
  }
}

/* ===================== */
/* Gambar & Video di Popup */
/* ===================== */
.popup-media {
  width: 100%;
  text-align: center;
}

/* Gambar: tetap pakai cover biar penuh rapi */
.popup-media img {
  width: 100%;
  max-height: 700px;
  object-fit: cover;
  border-radius: 12px;
}

/* ===================== */
/* FIX: Biar video gak nge-zoom di popup */
/* ===================== */
.popup-media video {
  object-fit: contain;
  background-color: #000;
  max-width: 100%;
  height: auto;
  max-height: 700px;
  border-radius: 12px;
}

/* Responsif di HP */
@media (max-width: 768px) {
  .popup-media img {
    max-height: 400px;
  }

  .popup-media video {
    max-height: 400px;
  }
}

/*discover menu-----------------------------------------------------DI EDIT*/

/*THE PERFECT HOLIDAY*/
.perfect-blend {
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url("images/cover.jpg") center no-repeat;
  background-size: cover;
}

/*Footer*/
footer {
  padding: 7.9rem 0;
  background-color: #121212;
  color: #fff;
  text-align: center;
  position: relative;
}

.back-to-top {
  width: 7rem;
  height: 7rem;
  background-color: #121212;
  position: absolute;
  top: -3rem;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
}

.back-to-top i {
  display: block;
  color: #fff;
  font-size: 2rem;
  padding: 2rem;
  animation: up 2s infinite;
}

.footer-content {
  overflow: hidden;
}

.footer-content h4 {
  font-size: 1.9rem;
  text-transform: uppercase;
  font-weight: 100;
  letter-spacing: 3px;
  margin-bottom: 3rem;
}

.footer-content .asterisk {
  margin: 2.4rem 0;
}

.footer-content p i.icon-space {
  margin-right: 6px;
  /* kasih jarak kanan supaya ikon dan teks gak mepet */
}

.footer-content-about {
  margin-bottom: 5.4rem;
}

.footer-content-about p {
  line-height: 2;
}

.social-icons {
  list-style: none;
  margin-bottom: 5.4rem;
  display: flex;
  justify-content: center;
}

.social-icons i {
  font-size: 2rem;
  color: #fff;
  padding: 0.8rem 2rem;
  opacity: 0.5s;
  transition: color 0.5s;
}

.social-icons i:hover,
.social-icons i:focus {
  color: var(--secondary-font-color);
}

.newsletter-form {
  width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
}

.newsletter-input {
  width: 100%;
  max-width: 25rem;
  padding: 1rem;
  border-radius: 0.4rem;
}

.newsletter-btn {
  background-color: transparent;
  border: none;
  color: var(--main-font-color-dark);
  cursor: pointer;
  font-size: 1.6rem;
  padding: 1px 0.6rem;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 21.5rem;
}

/*media queries*/

@media screen and (min-width: 900px) {
  section {
    padding: 7.9rem;
  }

  .menu-toggle {
    display: none;
  }

  .nav {
    justify-content: space-between;
  }

  .nav-list {
    position: initial;
    width: initial;
    height: initial;
    background-color: transparent;
    padding: 0;
    justify-content: initial;
    flex-direction: row;
    transform: initial;
    transition: initial;
  }

  .nav-item {
    margin: 0 2.4rem;
    border: none;
  }

  .nav-item:last-child {
    margin-right: 0;
  }

  .nav-link {
    font-style: 1.3rem;
  }

  .active {
    position: relative;
  }

  .active::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #fff;
    left: 0;
    bottom: -3px;
  }

  .sub-headline {
    font-size: 10rem;
  }

  /*L-----------------------------------------------------DI EDIT*/
  .first-letter {
    font-size: inherit;
    /* biar ngikut ukuran .sub-headline (10rem) */
  }

  .headline {
    font-style: 4.7rem;
    letter-spacing: 0.8rem;
  }

  .line {
    max-width: 11.4rem;
  }

  .restaurant-info {
    display: flex;
    align-items: center;
  }

  .restaurant-info > div {
    flex: 1;
  }

  .padding-right {
    padding-right: 7rem;
  }

  .footer-content {
    max-width: 77.5rem;
    margin: auto;
  }

  .footer-content-about {
    max-width: 51.3rem;
    margin: 0 auto 5.4rem;
  }

  .footer-content-divider {
    display: flex;
    justify-content: space-between;
  }

  .social-media,
  .newsletter-form {
    width: 100%;
    max-width: 27.3rem;
    margin: 0 1rem;
  }

  .social-icons i {
    opacity: 1;
  }

  .newsletter-btn {
    margin-left: 16.5rem;
  }
}

/* ===================== */
/* MEDIA QUERIES UNTUK RESPONSIVE TEXT */
/* (Tambahan untuk product-desc & child <p>, product-price ikut font-size saja) */
/* ===================== */

/* Tablet & HP */
@media (max-width: 768px) {
  .product-desc,
  .product-desc p {
    font-size: 1.1rem; /* lebih kecil dari default */
    line-height: 1.6;
    text-align: left; /* khusus desc, jangan ikut center */
  }

  .product-price {
    font-size: 1.1rem; /* ikut mengecil tapi posisi tetap */
    line-height: 1.6;
  }
}

/* HP kecil */
@media (max-width: 480px) {
  .product-desc,
  .product-desc p {
    font-size: 1rem; /* makin kecil di HP kecil */
    line-height: 1.5;
    text-align: left; /* tetap rata kiri */
  }

  .product-price {
    font-size: 1.2rem; /* makin kecil juga */
    line-height: 1.5;
    /* tanpa text-align supaya tetap default */
  }
}

/*animation*/
@keyframes fadeUp {
  0% {
    transform: translateY(4rem);
  }

  100% {
    opacity: 1;
    transform: translateY(0rem);
  }
}

@keyframes scale {
  0% {
    transform: scale(2);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes grow {
  0% {
    width: 0%;
  }

  100% {
    opacity: 1;
    width: 100%;
  }
}

@keyframes spin {
  0% {
    transform: rotate(0);
  }

  100% {
    opacity: 1;
    transform: rotate(-360deg);
  }
}

@keyframes fadeDown {
  0% {
    transform: translateY(-1rem);
  }

  100% {
    opacity: 1;
    transform: translateY(0rem);
  }
}

@keyframes up {
  0% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(-1rem);
  }
}
