html {
  scroll-behavior: smooth;
}

/* Mengatur posisi berhenti scroll */
#home {
  scroll-margin-top: 110px;
}

#syarat {
  scroll-margin-top: -50px;
}

#galeri {
  scroll-margin-top: 220px;
}

#partner {
  scroll-margin-top: 110px;
}

#footer {
  scroll-margin-top: 110px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "inter", "montserrat", "poppins", "helvetica", sans-serif;
}

body {
  background: #f1f1f1;
  overflow-x: hidden;
  color: #000;
}

/* ============================= NAVBAR ============================= */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;

  padding: 0 50px;
  top: 0;
  width: 100%;
  height: 90px;

  /* KUNCI UTAMA */
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.6),
      rgba(0, 0, 0, 0.3),
      rgba(0, 0, 0, 0));

  transition:
    background-color 0.3s ease,
    backdrop-filter 0.3s ease;
  z-index: 100;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 40px;
  /* jarak menu & tombol WA */
}

/* LOGO */
.logo img {
  height: 40px;
  max-width: 330px;
  object-fit: contain;
}

/* MENU NAVBAR */
.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 18px;
  border-radius: 999px;

  text-decoration: none;
  color: #fff;
  font-weight: 400;

  background: rgba(255, 255, 255, 0);

  transition:
    background 0.25s ease,
    color 0.25s ease,
    opacity 0.25s ease;
}

.nav-links a:hover {
  color: #fff;

  background: rgba(255, 255, 255, 0.2);

  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(2px);
}

/* WHATSAPP */
.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 10px 18px;
  border-radius: 999px;

  background: #1f8f5f;
  color: #ffffff;

  font-size: 14px;
  font-weight: 600;
  text-decoration: none;

  transition: all 0.25s ease;
}

.wa-btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.wa-btn:hover {
  background: #177a50;
  transform: translateY(-1px);
}

/* ================= NAVBAR SCROLL ================= */
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  height: 90px;
}

/* menu jadi hitam */
.navbar.scrolled .nav-links a {
  color: #000;
}

/* hover menu */
.navbar.scrolled .nav-links a:hover {
  background: rgba(0, 0, 0, 0.08);
}

/* WA button tetap kontras */
.navbar.scrolled .wa-btn {
  background: #1f8f5f;
}

.logo {
  position: relative;
}

.logo img {
  height: 40px;
  transition: opacity 0.3s ease;
}

/* default */
.logo-scroll {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

/* saat scroll */
.navbar.scrolled .logo-default {
  opacity: 0;
}

.navbar.scrolled .logo-scroll {
  opacity: 1;
}

/* ============================= HEADER ============================= */
.hero {
  position: relative;
  height: 57vh;
  width: 100%;

  background-image: url("images/landingpage3.jpg");
  background-size: cover;
  background-position: center;

  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 260px;
}

.hero-content {
  position: relative;
  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 10px;
  text-align: center;

  margin-top: auto;
  margin-bottom: 80px;
}

.hero-content h1 {
  font-size: 80px;
  text-align: center;
  color: white;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 18px;
  text-align: center;
  color: white;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ============================= SEARCH BOX NEW ============================= */
.whitebox {
  width: 100%;
  max-width: 1200px;
  background: #fff;
  border-radius: 12px;
  padding: 25px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-top: 40px;
  height: auto;
  /* Biarkan tinggi menyesuaikan isi */
}

.search-container {
  display: flex;
  align-items: flex-end;
  /* Label di atas, input di bawah sejajar */
  gap: 20px;
  flex-wrap: wrap;
  /* Agar responsif di layar kecil */
}

.search-item {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.search-item label {
  font-size: 14px;
  font-weight: 700;
  color: #000;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
  background: #f4f6f9;
  /* Background abu muda sesuai referensi */
  border-radius: 8px;
  padding: 0 15px;
  height: 50px;
}

.input-group i {
  color: #888;
  margin-right: 10px;
}

.input-group input,
.input-group select {
  border: none;
  background: transparent;
  width: 100%;
  height: 100%;
  outline: none;
  font-size: 14px;
  color: #333;
}

.btn-search {
  background: #00a1c5;
  /* Hitam pekat sesuai gambar referensi */
  color: #fff;
  border: none;
  height: 50px;
  padding: 0 40px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.3s;
}

.btn-search:hover {
  background: #00c5ef;
}

/* Penyesuaian responsif untuk mobile */
@media (max-width: 992px) {
  .search-container {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-search {
    width: 100%;
    justify-content: center;
  }
}

/* ============================= TENTANG KAMI ============================= */
.body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 190px;
  gap: 12px;
}

.judul h1 {
  color: #828282;
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.teks1 p {
  font-size: 32px;
  font-weight: 700;
  color: #000;
  margin-bottom: 20px;
}

/* ============================= TABEL S&K ============================= */
.teks2 {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px 50px;
  gap: 30px;
}

.table-container {
  width: 100%;
  max-width: 1200px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #333;
  background-color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.snk-table {
  width: 100%;
  border-collapse: collapse;
  font-family: inherit;
}

.snk-table thead th {
  background-color: #2b2b2b;
  color: #fff;
  padding: 15px;
  font-size: 20px;
  font-weight: 400;
  border-bottom: 2px solid #333;
  text-align: center;
}

.snk-table td {
  padding: 25px;
  vertical-align: top;
  border-bottom: 1px solid #333;
  color: #333;
  line-height: 1.6;
}

.snk-table .section-title {
  width: 30%;
  font-weight: 700;
  border-right: 1px solid #333;
  color: #000;
}

.snk-table ol {
  padding-left: 20px;
  margin: 0;
  font-weight: 500;
}

.snk-table .note {
  margin-top: 10px;
  font-style: italic;
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.snk-table tbody tr:last-child td {
  border-bottom: none;
}

/* ============================= GALLERY ============================= */
.booking {
  margin-top: 40px;
  padding: 65px 0 80px 0;
  background: #e0efff;
  width: 100%;
}

.book-layout {
  max-width: 1210px;
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.gallery {
  width: 100%;
  padding: 10px 0 10px 0;
}

.gallery-grid {
  max-width: 1190px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

/* FOTO */
.gallery-grid img {
  width: 100%;
  height: 180px;

  object-fit: cover;
  border-radius: 10px;

  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* HOVER */
.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid img {
    height: 150px;
  }
}

/* ============================= OUR PARTNER ============================= */
.partner {
  padding: 40px 0;
  width: 100%;
}

.partner-layout {
  max-width: 1210px;
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.partner-slider {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin-top: 40px;
}

.partner-window {
  overflow: hidden;
  width: 100%;
}

.partner-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

.partner-track img {
  width: 220px;
  height: 100px;
  object-fit: contain;
  margin: 0 28px;

  filter: none;
  opacity: 1;
}

.partner-track img:hover {
  filter: none;
  opacity: 1;
  transform: scale(1.05);
}

/* PANAH */
.partner-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ddd;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  z-index: 5;
}

.partner-btn.left {
  left: -50px;
}

.partner-btn.right {
  right: -50px;
}

.partner-btn:hover {
  background: #ff9f1a;
  color: #fff;
}

/* ============================= */
/*            FOOTER             */
/* ============================= */

.footer {
  background: #0f1118;
  color: #ddd;
  width: 100%;
  margin-top: 40px;
}

/* CONTAINER */
.footer-container {
  max-width: 1750px;
  margin: 0 auto;
  padding: 0 90px;
}

/* ================= TOP ================= */

.footer-top {
  padding: 80px 0 50px;
}

.footer-top .footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
}

/* LOGO */
.footer-logo {
  width: 180px;
  margin-bottom: 20px;
}

/* TITLE */
.footer-col h4 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 30px;
  position: relative;
}

.footer-col h4::after {
  content: "";
  width: 40px;
  height: 2px;
  background: #ff9f1a;
  position: absolute;
  left: 0;
  bottom: -10px;
}

.footer-col p {
  width: 90%;
  font-size: 14px;
  line-height: 1.8;
  color: #bbb;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul li a {
  font-size: 14px;
  color: #bbb;
  text-decoration: none;
}

.footer-col ul li a:hover {
  color: #ff9f1a;
}

.footer-col i {
  margin-right: 8px;
  color: #ff9f1a;
}

/* ================= BOTTOM ================= */

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 25px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* LINKS */
.footer-links {
  display: flex;
  gap: 25px;
}

.footer-links a {
  text-decoration: none;
  color: #bbb;
  font-size: 14px;
  transition: 0.3s;
}

.footer-links a:hover {
  color: #ff9f1a;
}

/* COPYRIGHT */
.footer-copy {
  font-size: 13px;
  color: #777;
}

/* ===================================================== */
/* MOBILE (≤767px) */
/* ===================================================== */
@media (max-width: 767px) {

  /* NAVBAR */
  .navbar {
    height: 70px;
    justify-content: center;
    padding: 0 18px;
  }

  /* LOGO */
  .logo img {
    height: 37px;
    max-width: 330px;
    object-fit: contain;
  }

  .nav-links {
    display: none;
  }

  .wa-btn {
    display: none;
  }

  .navbar.scrolled {
    height: 70px;
  }

  /* HERO */
  .hero {
    height: 20hv;
    padding: 130px 30px 60px;
  }

  .hero-content h1 {
    font-size: 45px;
    line-height: 1.1;
  }

  .hero-content p {
    font-size: 12px;
  }

  /* WHITEBOX */
  .whitebox {
    width: 100%;
    max-width: 600px;
    height: 680px;
    margin-top: 30px;
    border-radius: 10px;
  }

  .logo-img1 {
    width: 40px;
    height: 40px;
  }

  .logo-img2 {
    width: 40px;
    height: 40px;
  }

  .klik-box {
    padding: 5px 20px;
  }

  .brand-info {
    gap: 5px;
  }

  .item-row {
    padding: 10px 0;
    flex: 0;
  }

  .brand-name {
    font-size: 18px;
  }

  .btn-pesan {
    padding: 10px 15px;
    border-radius: 7px;
    font-size: 12px;
  }

  .btn-pesan:hover {
    background-color: #00c5ef;
  }

  .body {
    padding: 600px 30px 40px;
    gap: 10px;
  }

  .judul h1 {
    font-size: 10px;
    letter-spacing: 2px;
    text-align: center;
  }

  .teks1 p {
    font-size: 22px;
    line-height: 1.3;
    text-align: center;
  }

  .teks2 {
    max-width: 100%;
    padding: 0 5px;
    padding-bottom: 30px;
    gap: 5px;
  }

  .teks2 p {
    font-size: 13px;
    line-height: 1.6;
    text-align: justify;
  }

  .teks3 {
    max-width: 100%;
    font-size: 13px;
    text-align: center;
  }

  /* ============================= TABEL S&K ============================= */
  .teks2 {
    padding: 0 5px 10px;
    gap: 30px;
  }

  .table-container {
    border-radius: 8px;
  }

  .snk-table thead th {
    padding: 15px;
    font-size: 16px;
  }

  .snk-table td {
    padding: 20px;
    font-size: 14px;
  }

  .snk-table .note {
    margin-top: 10px;
    font-style: italic;
    font-size: 10px;
    color: #666;
    font-weight: 500;
  }

  /* ================= GALLERY & BOOKING MOBILE FULL WIDTH ================= */
  .booking,
  .gallery {
    width: 100vw;
    position: relative;
    left: 0%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
  }

  .booking {
    margin-top: 60px;
    padding-top: 50px;
    padding-bottom: 40px;
    background: #e0efff;
  }

  .gallery {
    background-color: #e0efff;
    padding-top: 10px;
    padding-bottom: 40px;
  }

  .book-layout,
  .gallery-grid {
    width: 90%;
    max-width: 100%;
    margin: 0 auto;
  }

  .gallery-grid img {
    border-radius: 7px;
  }

  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* ============================= OUR PARTNER MOBILE ============================= */
  .partner-slider {
    max-width: 100%;
    width: 90%;
    margin: 20px auto -40px auto;
    padding: 0 10px;
    overflow: visible;
  }

  .partner-window {
    overflow: hidden;
    width: 100%;
  }

  .partner-track img {
    width: 70px;
    height: 60px;
    margin: 0 10px;
    object-fit: contain;
  }

  .partner-btn {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .partner-btn.left {
    left: -15px;
  }

  .partner-btn.right {
    right: -15px;
  }

  /* ============================= FOOTER ============================= */
  .footer {
    width: 100vw;
    position: relative;
    left: 0%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 40px;
    margin-bottom: -40px;
    padding-bottom: 0;
    background: #0f1118;
    color: #ddd;
  }

  .footer-container {
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .footer-top {
    padding: 60px 0 40px;
  }

  .footer-top .footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
  }

  .footer-col {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-col p {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
  }

  .footer-bottom {
    width: 100%;
    background: #0f1118;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }

  .footer-bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .footer-links {
    display: none;
  }

.footer-copy {
    margin: 0;
    padding: 0;
    text-align: center;
  }
}

/* ============================= MODAL FIX (PREMIUM LOOK) ============================= */
.modal {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 17, 24, 0.75);
  backdrop-filter: blur(8px); /* Efek blur kaca */
  animation: fadeOverlay 0.3s ease;
}

.modal-content {
  background: #ffffff;
  width: 95%;
  max-width: 520px;
  margin: 6% auto;
  padding: 35px;
  border-radius: 20px; /* Ujung bulat modern */
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-content h2 {
  font-size: 24px;
  margin-bottom: 15px;
  font-weight: 800;
  color: #000;
  border: none; /* Hapus garis bawah jika ada */
}

.modal-detail {
  background: #f7f9fc;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 25px;
  text-align: left;
}

.modal-detail p {
  margin: 10px 0;
  font-size: 15px;
  color: #333;
  border-bottom: 1px solid #eee; /* Garis tipis antar baris */
  padding-bottom: 5px;
}

.modal-detail p:last-child {
  border-bottom: none;
}

.modal-input input {
  width: 100%;
  padding: 14px 18px;
  margin: 12px 0;
  border: 1.5px solid #eee;
  border-radius: 10px;
  font-size: 15px;
  background: #fff;
  transition: 0.3s;
}

.modal-input input:focus {
  border-color: #00a1c5;
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 161, 197, 0.1);
}

.btn-wa {
  margin-top: 10px;
  width: 100%;
  padding: 16px;
  background: #1f8f5f;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-wa:hover {
  background: #177a50;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(31, 143, 95, 0.3);
}

/* Animasi */
@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}
