/* Base Variables */
:root {
  --color-dark-green: #1A3C34;
  --color-ivory: #F7F4EF;
  --color-terracotta: #C4603A;
  --color-dark: #111111;
  
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-smooth: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-dark-green);
  background-color: var(--color-ivory);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
}

p {
  margin-bottom: 1.5rem;
}

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

img {
  max-width: 100%;
  display: block;
  object-fit: cover;
}

/* Typography Utilities */
.text-center { text-align: center; }

h1 { font-size: 3.5rem; margin-bottom: 1rem; }
h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.75rem; margin-bottom: 1rem; }
.section-title { font-size: 3rem; margin-bottom: 3rem; }

@media (min-width: 768px) {
  h1 { font-size: 5rem; }
  h2 { font-size: 3.5rem; }
  .section-title { font-size: 4rem; margin-bottom: 4rem; }
}

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

.section-padding {
  padding: 120px 0;
}
@media (max-width: 768px) {
  .section-padding {
    padding: 80px 0;
  }
}

/* Background Color Utilities */
.has-bg-ivory { background-color: var(--color-ivory); color: var(--color-dark-green); }
.has-bg-green { background-color: var(--color-dark-green); color: var(--color-ivory); }
.has-bg-dark { background-color: var(--color-dark); color: var(--color-ivory); }

/* Components */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px; /* soft rounded */
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--color-terracotta);
  color: #fff;
}
.btn-primary:hover {
  background-color: #a84b2a;
}

.btn-outline-ivory {
  background-color: transparent;
  border: 1px solid var(--color-ivory);
  color: var(--color-ivory);
}
.btn-outline-ivory:hover {
  background-color: var(--color-ivory);
  color: var(--color-dark-green);
}

.btn-large {
  padding: 1rem 3rem;
  font-size: 1rem;
}

/* 1. Nav & Hero */
.sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  transition: background-color 0.4s ease, padding 0.4s ease;
  color: #fff;
}

.sticky-nav.scrolled {
  background-color: rgba(26, 60, 52, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 5%;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: 0.1em;
}

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%; /* For parallax */
  background: url('assets/hero_villa.png') center/cover no-repeat;
  z-index: -1;
  /* Will be translated by JS */
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  z-index: 0;
}

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

.tagline {
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: 0.05em;
}

/* 2. Brand Story */
.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.story-text p {
  font-size: 1.5rem;
  font-family: var(--font-heading);
  line-height: 1.8;
  color: var(--color-dark-green);
}

.story-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.story-image img {
  width: 100%;
  height: auto;
  transform: scale(1.05); /* Slight scale for visual softness */
  transition: var(--transition-smooth);
}

@media (min-width: 768px) {
  .story-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
  }
}

/* 3. Stays (Horizontal) */
.stays-scroll-wrapper {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2rem;
  scrollbar-width: none; /* Firefox */
}
.stays-scroll-wrapper::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.stays-track {
  display: flex;
  gap: 2rem;
  padding: 0 1rem;
  width: max-content;
}

.stay-card {
  width: 85vw;
  max-width: 400px;
  scroll-snap-align: center;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.stay-card img {
  width: 100%;
  height: 500px;
  filter: brightness(0.9);
  transition: var(--transition-smooth);
}

.stay-card:hover img {
  filter: brightness(1);
  transform: scale(1.02);
}

.stay-info {
  margin-top: 1.5rem;
}

.stay-info h3 {
  margin-bottom: 0.5rem;
}
.stay-info p {
  color: rgba(247, 244, 239, 0.8);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .stay-card {
    width: 400px;
  }
}

/* 4. Experiences */
.exp-block {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 6rem;
  align-items: center;
}

.exp-block:last-child {
  margin-bottom: 0;
}

.exp-image {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
}

.exp-image img {
  width: 100%;
  height: auto;
  transform: scale(1.05);
}

.exp-text {
  flex: 1;
  text-align: center;
}

.exp-text h3 {
  color: var(--color-terracotta);
}

.exp-text p {
  font-size: 1.125rem;
  max-width: 400px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .exp-block {
    flex-direction: row;
    gap: 4rem;
    text-align: left;
  }
  .exp-block.reverse {
    flex-direction: row-reverse;
  }
  .exp-text {
    text-align: left;
  }
  .exp-text p {
    margin: 0;
  }
}

/* 5. Dining */
/* Full bleed section */
#dining {
  padding: 0;
}

.dining-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.dining-content {
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.dining-content p {
  font-size: 1.125rem;
  max-width: 400px;
  color: rgba(247, 244, 239, 0.8);
}

.dining-image {
  height: 500px;
}

.dining-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .dining-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dining-content {
    padding: 8rem 4rem;
    align-items: flex-start;
    text-align: left;
  }
  .dining-image {
    height: auto;
    min-height: 100%;
  }
}

/* 6. Gallery */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-gap: 1.5rem;
  grid-auto-flow: dense;
}

.masonry-item {
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.masonry-item:nth-child(even) {
  grid-row: span 2; /* Make alternating images taller */
}

.masonry-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

/* Lightbox Modal */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: 300;
  cursor: pointer;
  transition: 0.3s;
}

.lightbox-close:hover {
  color: var(--color-terracotta);
}

/* 7. Book Now */
.book-now h2 {
  font-size: 3.5rem;
}
.price-starting {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.contact-number {
  font-size: 1.5rem;
  font-family: var(--font-heading);
  margin-bottom: 3rem;
  color: var(--color-terracotta);
}

/* 8. Footer */
.footer {
  padding: 6rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  border-bottom: 1px solid rgba(247, 244, 239, 0.2);
  padding-bottom: 3rem;
  margin-bottom: 2rem;
}

.footer-brand h3 {
  color: var(--color-ivory);
  margin-bottom: 0.5rem;
}
.footer-brand p {
  color: rgba(247, 244, 239, 0.6);
  font-size: 0.9rem;
}

.footer-links, .footer-social {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a, .footer-social a {
  color: rgba(247, 244, 239, 0.8);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.footer-links a:hover, .footer-social a:hover {
  color: var(--color-terracotta);
}

.footer-bottom {
  text-align: center;
  color: rgba(247, 244, 239, 0.4);
  font-size: 0.85rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
  will-change: opacity, visibility;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}
