@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=Playfair+Display:wght@400..900&display=swap');

:root {
  --primary: #B08D57;
  --secondary: #2C3E50;
  --accent: #D4AC0D;

  /* Typographic scale */
  --step--1: clamp(0.8rem, 0.75rem + 0.2vw, 0.9rem);
  --step-0: 1rem;
  --step-1: clamp(1.25rem, 1.2rem + 0.3vw, 1.45rem);
  --step-2: clamp(1.56rem, 1.5rem + 0.45vw, 1.9rem);
  --step-3: clamp(1.95rem, 1.8rem + 0.6vw, 2.4rem);
  --step-4: clamp(2.44rem, 2.2rem + 0.75vw, 3rem);
}

body {
  font-family: 'Inter', sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  margin: 0;
  padding: 120px 0 0 0;
  background-color: #FFFFFF;
}

h1,
h2,
h3 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 0.75em;
}

h1 {
  font-size: var(--step-4);
  font-weight: 700;
}

h2 {
  font-size: var(--step-3);
  font-weight: 600;
}

h3 {
  font-size: var(--step-2);
  font-weight: 600;
}

p {
  font-size: var(--step-0);
  max-width: 65ch;
  margin-bottom: 1rem;
  line-height: 1.7;
}
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.85));
  color: var(--secondary);
  padding: 1.5rem 1rem; /* Increased padding */
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 auto;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--secondary);
  font-size: 2rem;
  cursor: pointer;
}

.nav-links {
  display: flex;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0;
}

.logo {
  height: 120px;
  width: auto;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem; /* Increased gap for desktop */
}
nav a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
  padding: 0.5rem 0.75rem; /* Added padding */
}
nav a:hover {
  color: var(--primary);
}
main {
  padding: 1rem;
  max-width: 1440px;
  margin: auto;
  background: white;
}

.section {
  padding: 2rem 1rem;
}

.cards {
  display: grid;
  gap: 1rem;
}
.experience-card {
  background: #FFFFFF;
  border: 1px solid #EAEAEA;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  border-radius: 0.5rem;
  padding: 1.5rem;
  color: #333;
}
.experience-card h3 {
 margin-bottom: 0.5rem;
}
.experience-card p {
 font-size: var(--step--1);
 line-height: 1.6;
}

@media (min-width: 600px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Ensure image-tile styles correctly apply to experience cards */
.experience-card.image-tile {
  background-color: transparent; /* Override any previous .experience-card background */
  text-align: left; /* Ensure text is left-aligned as per .image-tile design */
  /* Other .image-tile properties like color: #fff, padding, min-height, etc., will apply directly from .image-tile */
}

/* Hover effect for Image Tiles */
.image-tile {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-tile:hover {
  transform: translateY(-5px); /* Slight lift effect */
  box-shadow: 0 10px 20px rgba(0,0,0,0.15); /* Enhanced shadow on hover */
}

/* Optional: subtle zoom on the background image itself. Requires the ::before overlay to also scale or handle differently. */
/* For simplicity, the transform on the tile itself is safer. */

/* General responsive images, if not already covered by more specific rules */
img.responsive, .responsive img { /* Covers explicit class and images within a .responsive container */
  max-width: 100%;
  height: auto;
  display: block; /* Prevents extra space below image if it's inline */
}

/* Styling for the amenity icon container */
.amenity-icon {
  display: inline-flex; /* Align SVG properly with text */
  align-items: center; /* Center SVG vertically if it has intrinsic padding */
  margin-right: 0.5em; /* Space between icon and text */
}

/* Styling for the SVG element itself within the icon container */
.amenity-icon svg {
  width: 1.2em; /* Size relative to current font size */
  height: 1.2em; /* Maintain aspect ratio */
  fill: var(--primary); /* Use primary theme color for the icon */
  vertical-align: middle; /* Helps align with text */
}

/* Specific flex alignment for amenity list items */
.amenities-list > li {
  display: flex;
  align-items: center;
  /* margin-bottom is good if the parent grid 'gap' isn't enough or items wrap weirdly */
  /* The parent .amenities-list is already a grid with gap: 0.5rem */
}

/* Parallax for Amenities Section */
#amenities {
  position: relative; /* For z-indexing of pseudo-element */
  background-image: url('../images/Polhena-Reef-2.jpg');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 3rem 1rem; /* Ensure enough padding for content visibility */
  /* color: #fff; */ /* Text color might need to be white for dark backgrounds - amenities list items currently have their own background and dark text */
}

#amenities::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Dark overlay for text legibility */
  /* Or use a theme color with alpha: background-color: rgba(44, 62, 80, 0.7); */
  /* var(--secondary) with alpha */
  z-index: 1; /* Overlay sits above background, below content */
}

/* Ensure content is above the overlay */
#amenities > * {
  position: relative;
  z-index: 2;
}

/* Override existing .ocean-section background specifically for #amenities */
/* This is important to remove the linear-gradient previously applied */
#amenities.ocean-section {
  background: none; /* Remove previous gradient */
  /* Re-apply the new background image properties from #amenities above */
  background-image: url('../images/Polhena-Reef-2.jpg');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Ensure .amenities-list li text remains legible */
/* The list items have their own light background (rgba(255, 255, 255, 0.55)), which should help. */
/* We might need to adjust the color of h2 within #amenities */
#amenities h2 {
  color: #fff; /* Make section title white to stand out on dark overlay */
  text-align: center; /* Already there from .ocean-section h2 */
  /* margin-top: 0; already there */
}

/* Image Tile Styling for Highlights Section */
.image-tile {
  position: relative; /* For text overlay positioning */
  background-size: cover;
  background-position: center;
  min-height: 350px; /* Give tiles a good height */
  color: #fff; /* Default text color for overlay */
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Position text at the bottom */
  padding: 1.5rem;
  border-radius: 0.5rem; /* Keep the border radius from .card */
  overflow: hidden; /* Ensure pseudo-elements or overlays don't spill */
  box-shadow: none; /* Remove previous card box-shadow if any */
  border: none; /* Remove previous card border if any */
}

.image-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0) 100%); /* Gradient overlay for text legibility at bottom */
  z-index: 1;
  border-radius: inherit; /* Match parent's border-radius */
}

.image-tile h3,
.image-tile p {
  position: relative;
  z-index: 2; /* Text above overlay */
  margin-left: 0; /* Reset any inherited margins if needed */
  margin-right: 0;
}

.image-tile h3 {
  font-size: var(--step-1); /* Adjust size as needed */
  margin-bottom: 0.25rem;
  font-weight: 600; /* Slightly less bold than main h2 */
}

.image-tile p {
  font-size: var(--step--1);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Override existing .card background for .image-tile */
.card.image-tile {
  background-color: transparent; /* Remove plain background color */
  /* Other .card properties like text-align:center might need to be overridden if they conflict. */
  /* Current .card is text-align: center. Let's make .image-tile text-align: left */
  text-align: left;
}

/* Overview Section Layout */
#overview .overview-content-wrapper {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  align-items: center; /* Vertically align items if they have different heights */
  gap: 2rem; /* Space between image and text */
}

#overview .overview-image-container {
  flex: 1 1 40%; /* Flex properties for image container - allow shrink, basis 40% */
  min-width: 280px; /* Minimum width before stacking */
}

#overview .overview-image {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#overview .overview-text-content {
  flex: 1 1 55%; /* Flex properties for text content - allow shrink, basis 55% */
}

/* Responsive adjustments for Overview section */
@media (max-width: 768px) {
  #overview .overview-content-wrapper {
    flex-direction: column; /* Stack image and text vertically */
  }
  #overview .overview-image-container {
    margin-bottom: 1.5rem; /* Space below image when stacked */
    width: 100%; /* Ensure image container takes full width */
    max-width: 400px; /* Optional: constrain image width on mobile */
    margin-left: auto;
    margin-right: auto;
  }
  #overview .overview-text-content {
    flex-basis: 100%; /* Text takes full width when stacked */
  }
}

.card {
  background: #FAFAFA;
  padding: 1rem;
  border-radius: 0.25rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Highlight cards with background images */
#highlights .card.image-tile {
  position: relative;
  min-height: 300px;
  color: white;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border-radius: 8px;
  overflow: hidden;
}

#highlights .card.image-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
  z-index: 1;
}

#highlights .card.image-tile > * {
  position: relative;
  z-index: 2;
}

.site-footer {
  background: var(--secondary);
  color: #FFFFFF;
  text-align: center;
  padding: 2rem 1rem; /* Increased padding */
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2rem;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.2);
}

.site-footer .logo {
  height: 40px;
  width: auto;
  display: block;
  margin: 0 auto 0.5rem auto;
}
.site-footer p {
  font-size: var(--step--1);
  margin-top: 0.5rem;
  margin-bottom: 0;
  max-width: 65ch;
}
.site-footer a {
  color: #FFFFFF; /* White links */
  text-decoration: underline;
}
.site-footer a:hover {
  text-decoration: none;
}
.hero {
  position: relative;
  width: 100%;
  height: 70vh;
  background-size: cover;
  background-position: center;
  margin-bottom: 1rem;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  z-index: 1;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.btn {
  background: var(--primary);
  color: #FFFFFF;
  padding: 0.5rem 1rem;
  text-decoration: none;
  font-weight: bold;
  border-radius: 0.25rem;
  margin-top: 1rem;
}

.btn:hover {
  opacity: 0.9;
}

.promo-banner {
  background: var(--accent);
  color: var(--secondary);
  text-align: center;
  padding: 0.5rem 1rem;
  font-weight: bold;
}

@media (min-width: 768px) {
  .hero {
    height: 100vh;
  }
}
img.responsive {
  width: 100%;
  height: auto;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate.in-view {
  opacity: 1;
  transform: translateY(0);
}

.slider {
  position: relative;
  overflow: hidden;
}

.slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slider .slider-toggle {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(44, 62, 80, 0.7); /* --secondary with alpha */
  color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 4px;
  padding: 0.5rem 1rem;
  cursor: pointer;
}
.slider .slider-toggle:hover {
  background: rgba(44, 62, 80, 0.9);
}

@media (max-width: 768px) {
  .logo-container {
    margin-bottom: 0;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    gap: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.7));
  }

  .nav-links.open {
    display: flex;
  }
.nav-links.open a {
  padding: 0.75rem 1rem; /* Padding for mobile links */
  border-bottom: 1px solid rgba(0,0,0,0.1); /* Separator for mobile links */
}
.nav-links.open li:last-child a {
 border-bottom: none;
}

  nav ul {
    flex-direction: column;
    gap: 0;
  }
}

/* Ocean themed segments */
.ocean-section {
  background: #F4F6F6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  margin-bottom: 2rem;
  padding: 2rem 1rem;
}

.ocean-section h2 {
  text-align: center;
  margin-top: 0;
}

.amenities-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.amenities-list li {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.experience-cards {
  display: grid;
  gap: 1rem;
}

@media (min-width: 600px) {
  .experience-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}
