/* Reset and base styles */
:root {
  --primary-color: #444444;
  --secondary-color: #0041a3;
  --accent-color: #ffb700;
  --text-color: #ffffff;
  --light-bg: #f8f9fa;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Rubik", sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--light-bg);
}

/* Header Styles */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  font-family: "Rubik", sans-serif;
  position: relative;
}

/* Logo text style */
.header-logo-text {
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--secondary-color);
  text-decoration: none;
  letter-spacing: 1px;
  order: 1;
  margin-right: 1rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  line-height: 1;
}

.home-btn {
  padding: 0.75rem 1.5rem;
  background-color: var(--secondary-color);
  color: white;
  border: none;
  border-radius: 4px;
  font-family: "Rubik", sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-left: auto;
  order: 2;
  flex-shrink: 0;
  white-space: nowrap;
}

.home-btn:hover {
  background-color: #21867a;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Responsive header for mobile */
@media (max-width: 768px) {
  .site-header {
    flex-wrap: nowrap;
    padding: 0.75rem 1rem;
    min-height: 56px;
  }

  .header-logo-text {
    font-size: 1.2rem;
    margin-right: 0.5rem;
  }

  .home-btn {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    margin-left: auto;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 0.5rem 0.5rem;
    min-height: 44px;
  }

  .header-logo-text {
    font-size: 1rem;
    margin-right: 0.3rem;
  }

  .home-btn {
    padding: 0.4rem 0.7rem;
    font-size: 0.85rem;
    margin-left: auto;
  }
}

/* Service card styles */
.service-section {
  padding: 1.2rem 0;
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
}

.section-title {
  text-align: center;
  margin-bottom: 1.2rem;
  color: var(--secondary-color);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1rem;
  padding: 0 0.5rem;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Card image frame: semua gambar destinasi konsisten */
.service-card-img-frame {
  width: 100%;
  aspect-ratio: 4/3;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  min-height: 0;
  max-height: 180px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #eee;
  margin-bottom: 0;
}

.service-card {
  background: white;
  border-radius: 8px;
  overflow: visible;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card img {
  width: 100%;
  height: 200%;
  object-fit: cover; /* crop secara proporsional di tengah */
  object-position: center center;
  display: block;
  background: #fff;
  border-radius: 12px;
  max-width: 100%;
  max-height: 100%;
  filter: brightness(0.97) saturate(1.05) contrast(1.03); /* tone seragam */
  /* Tambahkan filter lain jika ingin tone lebih seragam */
}

.service-card h3 {
  padding: 0.7rem 0.7rem 0.2rem;
  color: var(--secondary-color);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  word-break: break-word;
}

.service-card .price {
  padding: 0 0.7rem 0.8rem;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.98rem;
  text-align: center;
  letter-spacing: 0.2px;
}

/* Tour Packages image frame: gambar full frame (tidak ada padding, tidak ada ruang kosong) */
.tour-card-img-frame {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #f8fafc 0%, #e9ecef 100%);
  display: flex;
  border-radius: 18px;
  overflow: hidden;
  max-height: 160px;
  box-shadow: 0 2px 8px rgba(60, 72, 88, 0.08),
    0 1.5px 6px rgba(60, 72, 88, 0.06);
  border: 1.5px solid #e3e7ed;
  transition: box-shadow 0.25s, border-color 0.25s;
  backdrop-filter: blur(2px) saturate(1.1);
}

.tour-card-img-frame img,
.tour-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  background: transparent;
  max-width: 100%;
  max-height: 100%;
  filter: drop-shadow(0 2px 8px rgba(60, 72, 88, 0.07)) brightness(1)
    saturate(1.08) contrast(1.04);
  transition: filter 0.2s;
}

.tour-card-img-frame:hover {
  box-shadow: 0 6px 24px rgba(60, 72, 88, 0.16), 0 2px 8px rgba(60, 72, 88, 0.1);
  border-color: #b6c2d1;
}

.tour-card-img-frame img:active,
.tour-card-img-frame img:focus {
  filter: drop-shadow(0 4px 16px rgba(60, 72, 88, 0.13)) brightness(1.03)
    saturate(1.15) contrast(1.08);
}

/* Responsive image frame */
@media (max-width: 900px) {
  .service-card-img-frame {
    max-height: 140px;
    aspect-ratio: 4/3;
  }
}

@media (max-width: 600px) {
  .service-card-img-frame {
    max-height: 110px;
    aspect-ratio: 4/3;
  }
}

@media (max-width: 400px) {
  .service-card-img-frame {
    max-height: 80px;
    aspect-ratio: 4/3;
  }
}

/* Responsive image frame for Tour Packages */
@media (max-width: 900px) {
  .tour-card-img-frame {
    max-height: 100px;
  }
}
@media (max-width: 600px) {
  .tour-card-img-frame {
    max-height: 80px;
  }
}
@media (max-width: 400px) {
  .tour-card-img-frame {
    max-height: 60px;
  }
}

/* Responsive image height for service cards */
@media (max-width: 900px) {
  .service-card img {
    max-height: 180px;
  }
}

@media (max-width: 600px) {
  .service-card img {
    max-height: 140px;
  }
}

@media (max-width: 400px) {
  .service-card img {
    max-height: 100px;
  }
}

/* Booking buttons */
.booking-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.2rem;
}

.whatsapp-btn,
.instagram-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.7rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  min-height: 48px;
  min-width: 48px;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
}

.whatsapp-btn {
  background-color: #25d366;
  color: white;
}

.instagram-btn {
  background-color: #ff5e00;
  color: white;
}

.whatsapp-btn:hover,
.instagram-btn:hover {
  opacity: 0.9;
}

/* Footer Styles */
.footer {
  background: var(--secondary-color);
  color: #fff;
  font-family: "Rubik", sans-serif;
  margin-top: 3rem;
}

.footer-top {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-brand {
  flex: 1 1 250px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-brand .logo img {
  height: 48px;
  margin-bottom: 1rem;
}

.footer-description {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  color: #e0e0e0;
}

.footer-contact {
  flex: 1 1 200px;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--accent-color);
}

.contact-text {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: #e0e0e0;
}

.footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.97rem;
  color: #e0e0e0;
  gap: 0.5rem;
}

.contact-item i,
.contact-item ion-icon {
  margin-right: 0.5rem;
  font-size: 1.2em;
  color: var(--accent-color);
}

.contact-link {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-link:hover {
  color: var(--accent-color);
}

.footer-form {
  flex: 1 1 250px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.form-text {
  font-size: 0.97rem;
  margin-bottom: 0.5rem;
  color: #e0e0e0;
}

.form-wrapper {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.input-field {
  flex: 1 1 auto;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  border: none;
  font-size: 1rem;
  outline: none;
}

.btn.btn-secondary {
  background: #e9e8e8;
  color: var(--secondary-color);
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  border: 1px solid #ffffff;
}

.btn.btn-secondary:hover {
  background: #ff6666;
}

.footer-bottom {
  background: #0041a3;
  padding: 1rem 0;
  border-top: 1px solid #ffffff;
}

.footer-bottom .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}

.copyright {
  font-size: 0.95rem;
  color: #ffffff;
  width: 100%;
  margin-bottom: 0.5rem;
}

.footer-bottom-list {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  flex-wrap: wrap;
}

.footer-bottom-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.7rem; /* diperkecil dari 0.95rem */
  transition: color 0.2s;
  padding: 0 2px;
}

.footer-bottom-link:hover {
  color: var(--accent-color);
}

/* Responsive Adjustments */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.7rem;
    padding: 0 0.2rem;
  }
  .tour-card-img-frame {
    max-height: 100px;
  }
  .section-title {
    font-size: 1.08rem;
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0 0.1rem;
  }
  .tour-card-img-frame {
    max-height: 80px;
  }
  .service-card h3 {
    font-size: 0.93rem;
    padding: 0.5rem 0.3rem 0.1rem;
  }
  .service-card .price {
    font-size: 0.85rem;
    padding: 0 0.3rem 0.5rem;
  }
  .booking-buttons {
    gap: 0.5rem;
    margin-top: 0.7rem;
  }
  .whatsapp-btn,
  .instagram-btn {
    font-size: 0.9rem;
    padding: 0.6rem 0.7rem;
    min-height: 48px;
    min-width: 48px;
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 0 0.05rem;
  }
  .tour-card-img-frame {
    max-height: 60px;
  }
  .service-card h3 {
    font-size: 0.9rem;
    padding: 0.4rem 0.2rem 0.08rem;
  }
  .service-card .price {
    font-size: 0.8rem;
    padding: 0 0.2rem 0.4rem;
  }
  .booking-buttons {
    gap: 0.4rem;
    margin-top: 0.5rem;
  }
  .whatsapp-btn,
  .instagram-btn {
    font-size: 0.85rem;
    padding: 0.5rem 0.5rem;
    min-height: 48px;
    min-width: 48px;
  }
}

/* Responsive Footer */
@media (max-width: 900px) {
  .footer .container,
  .footer-bottom .container {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
  }
  .footer-bottom-list {
    flex-direction: row;
    gap: 1rem;
    margin-top: 0.5rem;
    justify-content: center;
    align-items: center;
  }
}

@media (max-width: 600px) {
  .footer-top {
    padding: 1.2rem 0;
  }
  .footer .container,
  .footer-bottom .container {
    padding: 0 0.5rem;
    align-items: center;
    text-align: center;
  }
  .footer-brand,
  .footer-contact,
  .footer-form {
    min-width: 0;
    width: 100%;
    align-items: flex-start;
  }
  .form-wrapper {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }
  .footer-bottom-list {
    flex-direction: row;
    gap: 1rem;
    align-items: center;
    justify-content: center;
  }
}
