/* Color palette and base styles */
:root {
  --primary: #0d3b66;
  --primary-hover: #052552;
  --secondary: #f4a261;
  --secondary-hover: #e76f51;
  --accent: #e9c46a;
  --background: #faf3e0;
  --text: #264653;
  --white: #ffffff;
}

/* High-speed Wi-Fi banner */
.wifi-banner {
  background: var(--secondary);
  color: var(--white);
  text-align: center;
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Highlight Travel Hub link in the navigation */
nav .nav-links a[href="nusa-penida-services.html"] {
  font-weight: 600;
  color: var(--secondary);
  border: 2px solid var(--secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}
nav .nav-links a[href="nusa-penida-services.html"]:hover {
  background: var(--secondary);
  color: var(--white);
}

/* Mobile menu highlight for Travel Hub */
.mobile-menu ul li a[href="nusa-penida-services.html"] {
  color: var(--secondary);
  font-weight: 600;
}

/* WhatsApp note styling */
.whatsapp-note {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text);
}
.whatsapp-note a {
  color: var(--secondary);
  text-decoration: underline;
}
.whatsapp-note a:hover {
  color: var(--secondary-hover);
}

/* CTA button container used on service pages */
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

/* Travel Hub Section */
.travel-hub {
  /* Match spacing similar to other sections on the homepage */
  padding: 5rem 0;
  background: var(--background);
  text-align: center;
}

.travel-hub h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.travel-hub h3 {
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.travel-hub p {
  width: 90%;
  max-width: 900px;
  margin: 0 auto 1rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
}

.travel-hub .amenities-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 1.5rem;
  width: 90%;
  max-width: 900px;
  text-align: left;
}

.travel-hub .amenities-list li {
  margin-bottom: 0.75rem;
}

.travel-hub .btn.primary {
  margin-top: 1rem;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  background: var(--background);
  color: var(--text);
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: 9999px;
  font-weight: 500;
  text-align: center;
  transition: background 0.3s ease, color 0.3s ease;
  cursor: pointer;
}

.btn.primary {
  background: var(--primary);
  color: var(--white);
}

.btn.primary:hover {
  background: var(--primary-hover);
  color: var(--white);
}

.btn.secondary {
  background: var(--secondary);
  color: var(--white);
}

.btn.secondary:hover {
  background: var(--secondary-hover);
  color: var(--white);
}

.btn.link {
  color: var(--primary);
  padding: 0.5rem 1rem;
  text-decoration: underline;
}

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

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* Mobile navigation toggle button (hamburger) */
/*
 * Mobile navigation toggle (hamburger)
 * On small screens the three-line icon appears instead of the desktop links. We build
 * the hamburger using three spans rather than relying on external font icons so it
 * always renders correctly regardless of network conditions. The button itself
 * is hidden by default and only shown via media queries.
 */
nav .menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 21px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 1001;
}

nav .menu-toggle span {
  width: 100%;
  height: 3px;
  background: var(--primary);
  margin-bottom: 4px;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

nav .menu-toggle span:last-child {
  margin-bottom: 0;
}

nav .logo {
  /* Display the logo image and text side by side */
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}
/* Logo image in the navigation */
.logo img {
  height: 40px;
  width: auto;
}

/* Page hero used on sub pages */
.page-hero {
  height: 60vh;
  /* Serve AVIF when supported with WebP fallback for the page hero image */
  background-image: image-set(
    url('../assets/hero-1920.avif') type('image/avif'),
    url('../assets/hero-1920.webp') type('image/webp')
  );
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--white);
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
}
.page-hero h1 {
  position: relative;
  z-index: 1;
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

nav .nav-links {
  display: flex;
  gap: 1rem;
  list-style: none;
}

nav .nav-links li a {
  padding: 0.5rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

nav .nav-links li a:hover {
  color: var(--secondary);
}

nav .book-btn {
  margin-left: auto;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
}

nav .book-btn:hover {
  background: var(--primary);
  color: var(--white);
}

/* Mobile full-screen menu overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 9999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding-top: 4rem;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu .close-menu {
  /*
   * Mobile menu close button
   * Instead of using an icon font, draw a cross using two rotated lines. This
   * ensures the close button is always visible on mobile even if FontAwesome
   * fails to load. The lines are created using pseudo-elements.
   */
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.mobile-menu .close-menu::before,
.mobile-menu .close-menu::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.mobile-menu .close-menu::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-menu .close-menu::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.mobile-menu ul li a {
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 500;
  transition: color 0.3s ease;
}

.mobile-menu ul li a:hover {
  color: var(--secondary);
}

/* Scroll reveal animations */
.animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  /* Updated hero background to showcase the resort's beautiful pool area */
  /* Use image-set to provide both AVIF and WebP sources */
  background-image: image-set(
    url('../assets/hero-1920.avif') type('image/avif'),
    url('../assets/hero-1920.webp') type('image/webp')
  );
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 1rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.hero-btn {
  margin-top: 1rem;
}

.hero-slider .slide {
  display: none;
}

.hero-slider .slide.active {
  display: block;
}

/* Booking Widget */
.booking {
  padding: 5rem 0;
  background: var(--white);
  text-align: center;
}

.booking h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.booking p {
  margin-bottom: 2rem;
  color: var(--text);
}

.booking-widget-placeholder {
  display: flex;
  justify-content: center;
}

.booking-widget-placeholder img {
  max-width: 100%;
  border-radius: 1rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* About Section */
.about {
  padding: 5rem 0;
}

.about .about-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.about h3 {
  font-size: 1.25rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.about p {
  margin-bottom: 1rem;
  color: var(--text);
  font-size: 0.95rem;
}

/* Rooms Section */
.rooms {
  padding: 5rem 0;
  background: var(--white);
  text-align: center;
}

.rooms h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary);
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.room-card {
  background: var(--background);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding-bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.room-card:hover {
  transform: translateY(-5px);
}

.room-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.room-card h3 {
  margin: 1rem 1rem 0.5rem 1rem;
  font-size: 1.5rem;
  color: var(--primary);
}

.room-card p {
  margin: 0 1rem 1rem 1rem;
  font-size: 0.9rem;
  color: var(--text);
}

.amenities-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.amenities-list li i {
  margin-right: 0.4rem;
  color: var(--secondary);
}

.room-card .btn {
  margin-top: auto;
  margin-bottom: 1rem;
  padding: 0.5rem 1.5rem;
}

.more-rooms {
  margin-top: 2rem;
}

/* Services Section */
.services {
  padding: 5rem 0;
  background: var(--background);
  text-align: center;
}

/*
 * Custom layouts for the Nusa Penida travel hub and individual service pages.
 * These styles mirror the existing card and grid system used for rooms but
 * introduce flexible components tailored for tour packages, boat tickets and
 * transfer options. The classes defined here ensure consistent spacing,
 * responsive behaviour and visual hierarchy across desktop, tablet and
 * mobile screens.
 */

/* Top level wrapper for each category (e.g. Fast Boats, Tours, Snorkeling, Transfers) */
.package-category {
  padding: 4rem 0;
  text-align: center;
}

.package-category h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary);
}

/* Grid container for packages. Uses auto-fit to ensure cards wrap nicely
   across various viewport sizes. */
.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Card element for each package. Inspired by .room-card styling. */
.package-card {
  background: var(--background);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding-bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.package-card:hover {
  transform: translateY(-5px);
}

.package-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.package-card h3 {
  margin: 1rem 1rem 0.5rem 1rem;
  font-size: 1.25rem;
  color: var(--primary);
  text-align: center;
}

.package-card p {
  margin: 0 1rem 0.5rem 1rem;
  font-size: 0.9rem;
  color: var(--text);
  text-align: center;
}

/* Highlighted price element for packages */
.package-card .price {
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

/* Optional note for additional information below the price */
.package-card .note {
  font-size: 0.8rem;
  color: var(--text);
  margin: 0 1rem 0.5rem 1rem;
  text-align: center;
}

.package-card .btn {
  margin-top: auto;
  margin-bottom: 1rem;
  padding: 0.5rem 1.5rem;
}

/* Styling for individual service pages */
.service-section {
  padding: 4rem 0;
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
}

.service-section h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
  text-align: center;
}

.service-section p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.service-section .price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 1rem;
  text-align: center;
}

/* Gallery slider for individual service pages
   Each `.service-gallery` contains one or more `.slide` elements. Only one
   slide is visible at a time and they automatically fade between each other.
   The height can be adjusted as needed – here it's fixed to 300px to
   accommodate most aspect ratios while preserving a consistent layout. */
.service-gallery {
  width: 90%;
  max-width: 800px;
  margin: 2rem auto;
  position: relative;
  height: 300px;
  overflow: hidden;
  border-radius: 1rem;
}

.service-gallery .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.service-gallery .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Ensure the <picture> element inside the gallery fills its parent slide.
   Without this the images may sit next to each other instead of overlaying. */
.service-gallery .slide > picture {
  width: 100%;
  height: 100%;
  display: block;
}

.service-gallery .slide.active {
  opacity: 1;
}

.service-section ul {
  list-style: disc;
  margin: 1rem 0 1rem 1.5rem;
  color: var(--text);
  font-size: 1rem;
}

.service-section li {
  margin-bottom: 0.5rem;
}

.services h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
}

.service {
  background: var(--white);
  border-radius: 1rem;
  padding: 2rem 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.service:hover {
  transform: translateY(-5px);
}

.service i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.service h3 {
  font-size: 1rem;
  color: var(--text);
}

/* Facilities Section */
.facilities {
  padding: 5rem 0;
  text-align: center;
}

.facilities h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.facilities h3 {
  font-size: 1.25rem;
  color: var(--secondary);
  margin-bottom: 2rem;
}

.facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
}

.facility {
  background: var(--white);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  font-size: 0.9rem;
  color: var(--text);
  transition: transform 0.3s ease;
}

.facility:hover {
  transform: translateY(-5px);
}

.facility i {
  color: var(--primary);
  font-size: 1.5rem;
}

/* Attractions Section */
.attractions {
  padding: 5rem 0;
  background: var(--background);
  text-align: center;
}

.attractions h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.attractions p {
  color: var(--secondary);
  margin-bottom: 2rem;
}

.attractions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
}

.attraction {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.attraction:hover {
  transform: translateY(-5px);
}

.attraction h3 {
  font-size: 1rem;
  color: var(--text);
}

/* Blog Section */
.blog {
  padding: 5rem 0;
  text-align: center;
  background: var(--white);
}

.blog h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.blog h3 {
  color: var(--secondary);
  margin-bottom: 2rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
}

.blog-post {
  background: var(--background);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  text-align: left;
  transition: transform 0.3s ease;
}

.blog-post:hover {
  transform: translateY(-5px);
}

.blog-post h4 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.blog-post p {
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.blog-post .btn.link {
  color: var(--secondary);
}

.blog-post .btn.link:hover {
  color: var(--secondary-hover);
}

/* Testimonials Section */
.testimonials {
  padding: 5rem 0;
  background: var(--background);
  text-align: center;
}

.testimonials h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary);
}

.testimonials-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial {
  display: none;
  font-size: 1rem;
  color: var(--text);
  padding: 2rem;
  background: var(--white);
  border-radius: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transition: opacity 0.4s ease;
}

.testimonial.active {
  display: block;
}

.testimonial h4 {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--primary);
}

.testimonial span {
  font-size: 0.85rem;
  color: var(--secondary);
}

/* Contact Section */
.contact {
  padding: 5rem 0;
  background: var(--white);
  text-align: center;
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary);
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--text);
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-info i {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  color: var(--primary);
  font-size: 1.5rem;
  transition: color 0.2s ease;
}

.social-links a:hover {
  color: var(--secondary);
}

/* Gallery Section */
.gallery {
  padding: 5rem 0;
  background: var(--white);
  text-align: center;
}

.gallery h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.gallery h3 {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--secondary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item img:hover {
  transform: scale(1.05);
}

/* Crystal Bay info section */
.crystal-bay {
  padding: 5rem 0;
  background: var(--white);
  text-align: center;
}
.crystal-bay h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}
.crystal-bay p {
  max-width: 800px;
  margin: 0 auto 2rem;
  color: var(--text);
}
.crystal-bay img {
  width: 100%;
  max-width: 900px;
  border-radius: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
  padding: 1rem;
  background: var(--primary);
  text-align: center;
  color: var(--white);
  font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  /* Hide desktop nav links by default on small screens */
  nav .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 999;
  }
  /* Hide the book button on mobile to reposition within the dropdown */
  nav .book-btn {
    display: none;
  }
  /* Show the hamburger icon on mobile */
  nav .menu-toggle {
    display: flex;
    margin-left: auto;
  }
}