/* Amenities Grid */

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.amenity-item {
  text-align: center;
}

.amenity-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 24px;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.amenity-item:hover img {
  transform: scale(1.03);
}

.amenity-item h3 {
  margin-bottom: 8px;
}

.amenity-item p {
  font-size: 14px;
  color: var(--color-on-surface-variant);
}

@media (width <= 768px) {
  .amenities-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* Home Gallery Preview */

.home-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.home-gallery-grid a {
  overflow: hidden;
  display: block;
}

.home-gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition:
    transform 0.5s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.3s ease;
}

.home-gallery-grid a:hover img {
  transform: scale(1.05);
  opacity: 0.9;
}

@media (width <= 768px) {
  .home-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Features Grid */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-item {
  text-align: center;
}

.feature-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  margin-bottom: 24px;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.feature-item:hover img {
  transform: scale(1.03);
}

.feature-item h3 {
  margin-bottom: 8px;
}

.feature-item p {
  font-size: 14px;
  color: var(--color-on-surface-variant);
}

@media (width <= 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* Stacked Scroll Effect */

.stacked-container {
  position: relative;
}

.stacked-section {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-background);
}

.stacked-content {
  position: absolute;
  z-index: 2;
  text-align: center;
  color: #fff;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
}

.stacked-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.stacked-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgb(0 0 0 / 35%);
}

/* Adjusting stacked content for readability */
.stacked-section h2 {
  font-size: 64px;
  color: #fff;
  text-shadow: 0 2px 12px rgb(0 0 0 / 40%);
}

.stacked-section p {
  font-size: 24px;
  color: #fff;
  text-shadow: 0 1px 8px rgb(0 0 0 / 40%);
}

@media (width <= 768px) {
  .stacked-section h2 {
    font-size: 40px;
  }

  .stacked-section p {
    font-size: 18px;
  }
}

.hero-content {
  max-width: 800px;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero p {
  font-size: 20px;
  margin-bottom: 40px;
  color: var(--color-on-surface-variant);
}

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 0;
}

@media (width <= 768px) {
  .hero {
    min-height: 80vh;
    padding-top: 120px;
  }
}

/* Overview Section */

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.overview-text h2 {
  margin-bottom: 24px;
}

.overview-text p {
  font-size: 18px;
  color: var(--color-on-surface-variant);
}

.overview-image img {
  box-shadow: 0 10px 30px rgb(0 0 0 / 5%);
}

@media (width <= 768px) {
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Pricing Section */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  padding: 48px 32px;
  background-color: var(--color-surface-container-low);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  background-color: var(--color-surface-container);
  border: 1px solid var(--color-outline-variant);
}

.pricing-card h3 {
  margin-bottom: 16px;
}

.pricing-card .price {
  font-size: 32px;
  font-family: var(--font-display);
  margin-bottom: 32px;
}

.pricing-card ul {
  margin-bottom: 40px;
  text-align: left;
  flex-grow: 1;
}

.pricing-card ul li {
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--color-on-surface-variant);
}

.pricing-card ul li::before {
  content: "•";
  margin-right: 8px;
  color: var(--color-secondary);
}

@media (width <= 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* Contact Section */

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-info h2 {
  margin-bottom: 32px;
}

.contact-info p {
  margin-bottom: 16px;
}

.map-container {
  margin-top: 40px;
  height: 300px;
  background-color: var(--color-surface-container);
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 100%;
}

.contact-form {
  padding: 48px;
  background-color: var(--color-surface-container-low);
}

.contact-form h2 {
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  color: var(--color-on-surface-variant);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--color-primary);
  font-family: var(--font-body);
  font-size: 16px;
  outline: none;
}

.form-group textarea {
  resize: none;
}

.contact-form .btn {
  width: 100%;
}

@media (width <= 768px) {
  .contact-container {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 32px 16px;
  }
}

/* Prestige Polish: Scroll-driven entry animations */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes fade-slide-in {
      from {
        opacity: 0;
        transform: translateY(40px);
      }

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

    .amenity-item,
    .feature-item,
    .pricing-card,
    .overview-grid {
      animation: fade-slide-in auto ease-out backwards;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }
  }

  @supports not ((animation-timeline: view()) and (animation-range: entry)) {
    .js-animate {
      opacity: 0;
      transform: translateY(40px);
      transition:
        opacity 0.8s ease-out,
        transform 0.8s ease-out;
    }

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