/* Reset dasar */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  background-color: #fff;
  color: #333;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Header */
/* Default untuk desktop */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 60px;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo img {
  /* hapus margin-left yang kaku */
  margin-left: 50px;
  height: auto;
  max-height: 50px;
}

/* --- override untuk mobile --- */
@media (max-width: 767.98px) {
  .header {
    justify-content: center;   /* pusatkan flex-item */
    padding: 15px 20px;        /* sesuaikan padding */
  }
  .logo {
    flex: 0 0 auto;            /* agar logo hanya sebesar kontennya */
    text-align: center;
  }
  .logo img {
    display: block;            /* agar margin auto bekerja */
    width: auto;               /* atau 80%, terserah */
    max-width: 150px;          /* batasi maksimal agar tidak terlalu besar */
    margin: 0 auto;            /* pusatkan dalam .logo */
  }
}


.nav-menu {
  list-style: none;
  display: flex;
  gap: 25px;
  align-items: center;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  color: #333;
  font-weight: 500;
  padding: 10px;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: #007bff;
}

.has-subnav .subnav {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  display: none;
  flex-direction: column;
  z-index: 99;
}

.has-subnav:hover .subnav {
  display: flex;
}

.subnav a {
  padding: 10px 15px;
  color: #333;
  white-space: nowrap;
}

.subnav a:hover {
  background: #f5f5f5;
}

/* Banner */
.banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* Sejarah */
.sejarah {
  padding: 40px 20px;
}

.sejarah-container {
  display: flex;
  gap: 20px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.sejarah-text {
  flex: 65%;
}

.sejarah-text h2 {
  margin-bottom: 15px;
  font-size: 28px;
}

.sejarah-text p {
  font-size: 16px;
  color: #555;
}

.sejarah-img {
  flex: 35%;
}

.sejarah-img img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
}

/* Mengapa Harus Kami */
.why-us {
  padding: 60px 20px;
  background: #f9f9f9;
  text-align: center;
}

.why-us h2 {
  font-size: 28px;
  margin-bottom: 30px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.why-item {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.why-item img {
  width: 50px;
  height: 50px;
  margin-bottom: 15px;
}

.why-item p {
  font-size: 14px;
  color: #333;
}

/* Best Seller */
.best-seller {
  padding: 60px 20px;
  text-align: center;
}

.best-seller h2 {
  font-size: 28px;
  margin-bottom: 30px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-item {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.product-item img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.product-item p {
  margin: 15px 0 10px;
  font-weight: bold;
  font-size: 16px;
}

.product-item button {
  padding: 10px 20px;
  background: #0066cc;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.product-item button:hover {
  background: #0053a4;
}

/* CTA Section */
.cta {
  display: flex;
  align-items: center;
  padding: 60px 20px;
  background: #eee;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.cta-text {
  flex: 50%;
}

.cta-text h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.cta-text p {
  font-size: 16px;
  color: #555;
  margin-bottom: 20px;
}

.cta-text button {
  padding: 12px 24px;
  background: #28a745;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.cta-text button:hover {
  background: #1e7e34;
}

.cta-img {
  flex: 50%;
}

.cta-img img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.dokumentasi {
  padding: 60px 20px;
  background: #fff;
  text-align: center;
}

.dokumentasi h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.tab-menu {
  margin-bottom: 20px;
}

.tab-link {
  background: #f1f1f1;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  margin: 0 5px;
  border-radius: 5px;
  font-weight: 500;
}

.tab-link.active,
.tab-link:hover {
  background: #007bff;
  color: white;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
/* .footer {
  background: #1d1d1d;
  color: #eee;
  padding: 40px 20px 20px;
  font-size: 14px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer h3, .footer h4 {
  color: #fff;
  margin-bottom: 15px;
}

.footer-about p,
.footer-contact p {
  color: #ccc;
  margin-bottom: 10px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ccc;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #fff;
} */

/* .footer-social .social-icons {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.footer-social img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s;
}

.footer-social img:hover {
  transform: scale(1.1);
} */

/* .footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #444;
  margin-top: 30px;
  color: #999;
} */

/* Garis pemisah bergaya gradient */
.custom-divider {
  border: 0;
  height: 2px;
  margin: 3rem 0;
  background: linear-gradient(
    to right,
    transparent,
    #007bff 25%,
    #007bff 75%,
    transparent
  );
}
.divider {
  position: relative;
  text-align: center;
  margin: 3rem 0 1rem;
}
.divider::before,
.divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40%;
  height: 2px;
  background: #007bff;
}
.divider::before { left: 0; }
.divider::after  { right: 0; }
.divider span {
  background: #fff;
  padding: 0 1rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: #000000;
}

/* Facilities Grid */
.facilities {
  max-width: 1200px;
  margin: 0 auto;
}
.fac-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #333;
}
.fac-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}
.fac-item {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}
.fac-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.fac-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bg-primary-light {
  background-color: rgba(0, 123, 255, 0.1);
}
.fac-text {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
}


/* Responsive */
@media (max-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .sejarah-container {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}
/* Default: auto-fit as many 180px cards as will fit */
.fac-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

/* Mobile: force exactly 2 columns */
@media (max-width: 768px) {
  .fac-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Optional: very small phones use 1 column */
@media (max-width: 480px) {
  .fac-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Tombol Booking */
.btn-booking {
  background: #007bff;
  color: #fff;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 0.375rem;
  font-weight: 600;
  transition: background 0.3s, transform 0.2s;
  display: inline-block;
}

.btn-booking:hover,
.btn-booking:focus {
  background: #0056b3;
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-booking:active {
  background: #004494;
  transform: translateY(0);
}

/* Bungkus logo dengan kontainer berlebar tetap */
.logo {
  /* Desktop */
  max-width: 200px;
}

.logo-img {
  display: block;
  width: auto;
  height: auto;
  max-height: 60px;   /* batasi tinggi maksimum */
  max-width: 100%;    /* jangan melebihi lebar kontainer */
}

/* Tablet & mobile */
@media (max-width: 768px) {
  .logo-img {
    max-height: 50px;
  }
}
@media (max-width: 480px) {
  .logo-img {
    max-height: 40px;
  }
}
