* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

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

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

#unit {
  scroll-margin-top: 140px;
}

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

#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 */
.hero {
  position: relative;
  height: 57vh;
  width: 100%;

  background-size: cover;
  background-position: center;

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

/* layer background */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroSlide 18s infinite;
  will-change: transform, opacity;
}

/* overlay gelap */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .05);
  z-index: 1;
}

/* konten di atas */
.hero-content {
  position: relative;
  z-index: 2;

}

/* track panjang */
.hero-track {
  position: absolute;
  inset: 0;
  display: flex;
  width: 600%;
  animation: heroSlidePause 18s infinite;
}

/* 4 slide â†’ 100% / 4 */
.hero-slide {
  width: calc(100% / 6);
  height: 100%;
  background-size: cover;
  background-position: center;
}

.bg1 {
  background-image: url("images/landingpage2.jpg");
}

.bg2 {
  background-image: url("images/landingpage3.jpg");
}

.bg3 {
  background-image: url("images/landingpage4.jpg");
}

@keyframes heroSlidePause {

  /* BG 1 */
  0%,
  22% {
    transform: translateX(0);
  }

  /* ke BG 2 */
  28% {
    transform: translateX(-16.666%);
  }

  50% {
    transform: translateX(-16.666%);
  }

  /* ke BG 3 */
  56% {
    transform: translateX(-33.333%);
  }

  78% {
    transform: translateX(-33.333%);
  }

  /* ke BG 1 (DUPLIKAT) */
  84% {
    transform: translateX(-50%);
  }

  /* DIAM di duplikat (visual sama dg awal) */
  100% {
    transform: translateX(-50%);
  }
}

.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);
}

/* WHITEBOX */
.box {
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whitebox {
  width: 100%;
  max-width: 1200px;
  height: 230px;

  margin-top: 30px;
  border-radius: 16px;

  padding: 2px;

  background: #fff;
  box-shadow: 0 20px 40px 0 rgba(0, 0, 0, 0.1);
}

.klik-box {
  display: flex;
  flex-direction: column;
  /* Berubah dari rows ke column */
  width: 100%;
  height: 100%;
  padding: 20px 40px;
  /* Memberi ruang di dalam box */
  box-sizing: border-box;
}

.item-row {
  display: flex;
  justify-content: space-between;
  /* Brand di kiri, tombol di kanan */
  align-items: center;
  padding: 15px 0;
  flex: 1;
  /* Agar membagi ruang sama rata */
}

.brand-info {
  display: flex;
  align-items: center;
  gap: 20px;
  /* Jarak antara logo dan teks */
}

.logo-img1 {
  width: 50px;
  /* Sesuaikan ukuran logo */
  height: 50px;
  object-fit: contain;
}

.logo-img2 {
  width: 50px;
  /* Sesuaikan ukuran logo */
  height: 50px;
  object-fit: contain;
}

.brand-name {
  font-size: 24px;
  color: #000;
  font-family: sans-serif;
}

.btn-pesan {
  background-color: #00a1c5;
  /* Warna oranye sesuai gambar */
  color: white;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: background 0.3s ease;
}

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

/* Garis pemisah tipis antar baris */
.separator {
  border: 0;
  border-top: 1px solid #dadada;
  margin: 0;
  width: 100%;
}

/* ============================= 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;
}

.teks2 {
  max-width: 1190px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 50px;
}

.teks2 p {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
  text-align: justify;
  text-justify: inter-word;
}

.teks3 {
  max-width: 1190px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 10px;
}

/* ============================= LIST MOBIL ============================= */
.car-section {
  width: 100%;
  max-width: 1190px;
  margin-top: 15px;
}

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

/* CARD */
.car-card {
  background: #fff;
  border-radius: 16px;
  display: flex;
  gap: 20px;
  padding: 20px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.car-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* GAMBAR */
.car-img {
  width: 180px;
  height: auto;
  object-fit: contain;
}

/* INFO */
.car-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.car-info h3 {
  font-size: 18px;
  font-weight: 600;
}

/* ICON INFO */
.car-meta {
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: #5f5f5f;
}

.car-meta span i {
  color: #acacac;
}

/* BOTTOM */
.car-bottom {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* HARGA */
.price small {
  font-size: 12px;
  color: #888;
}

.price strong {
  display: block;
  color: #ce7d2e;
  font-size: 18px;
}

.price span {
  font-size: 12px;
  color: #777;
}

/* BUTTON */
.btn-detail {
  padding: 10px 16px;
  background: #00a1c5;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.25s ease;
}

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

/* ============================= BOOKING NOW ============================= */
.booking {
  margin-top: 80px;
  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 ============================= */
.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 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;
}

/* ============================= MODAL DETAIL ============================= */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: #fff;
  margin: 12% auto;
  padding: 0;
  border-radius: 16px;
  width: 80%;
  max-width: 800px;
  position: relative;
  overflow: hidden;
  animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close-modal {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 30px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  z-index: 10;
}

.modal-body {
  display: flex;
  flex-wrap: wrap;
}

.modal-img-container {
  flex: 1;
  min-width: 300px;
  background: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#modalImg {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
}

.modal-details {
  flex: 1;
  min-width: 300px;
  padding: 40px;
}

.modal-details h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.modal-meta {
  margin: 20px 0;
}

.modal-meta p {
  margin: 10px 0;
  font-size: 16px;
  color: #555;
}

.modal-meta i {
  width: 25px;
  color: #00a1c5;
}

.modal-price {
  margin: 25px 0;
  padding: 15px;
  background: #f0faff;
  border-radius: 8px;
}

.modal-price h3 {
  color: #ce7d2e;
  font-size: 24px;
}

.btn-book-now {
  display: block;
  text-align: center;
  background: #1f8f5f;
  color: white;
  padding: 15px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.btn-book-now:hover {
  background: #177a50;
}

/* ===================================================== */
/* 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: 16hv;
    padding: 155px 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: 140px;
    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: 120px 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;
  }

  /* ================= LIST MOBIL MOBILE FIX ================= */
  .car-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .car-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    width: 100%;
  }

  .car-img {
    width: 100%;
    max-width: 280px;
    height: auto;
    margin-bottom: 15px;
  }

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

  .car-meta {
    gap: 10px;
    font-size: 12px;
    justify-content: center;
    margin-bottom: 5px;
  }

  .car-bottom {
    width: 100%;
    flex-direction: column;
    gap: 15px;
  }

  .price {
    margin-bottom: 5px;
  }

  .btn-detail {
    width: 100%;
    text-align: center;
  }

  /* ================= 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 {
    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;
  }
}