@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --charcoal: #1c1c1e;
  --gold: #c5a880;
  --gold-hover: #b0926a;
  --off-white: #f9f8f6;
  --white: #ffffff;
  --text-light: #666666;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Lato', sans-serif;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background-color: var(--off-white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--charcoal);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}
ul {
  list-style: none;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  transition: var(--transition);
}

.btn-solid {
  background: var(--gold);
  color: var(--white);
}
.btn:hover {
  background: var(--gold);
  color: var(--white);
}
.btn-solid:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
}

/* Navigation */
header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}
header.scrolled {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  padding: 15px 5%;
}
.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--white);
}
header.scrolled .logo {
  color: var(--charcoal);
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}
.nav-links a {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
header.scrolled .nav-links a {
  color: var(--charcoal);
}
.nav-links a:hover {
  color: var(--gold);
}

/* --- Hero & Swiper Carousel --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background-color: var(--charcoal);
}

.hero-swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  /* Flexbox to perfectly center the text over the image */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Image acts as background */
.swiper-slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: scale(1);
  transition: transform 6s ease-out;
}

/* Subtle Zoom only on active slide */
.swiper-slide-active img {
  transform: scale(1.05);
}

/* Dark overlay for text readability */
.swiper-slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Slightly darker for better contrast */
  z-index: 1;
}

/* Text Container inside slide */
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 800px;
  padding: 0 20px;

  /* Pre-animation state */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Animate text up when the slide is active */
.swiper-slide-active .hero-content {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s; /* Wait slightly for the image fade to start */
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  font-weight: 300;
}

.page-hero {
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}
.page-hero h1 {
  font-size: 3.5rem;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}
.page-hero .hero-content {
  z-index: 2;
  opacity: 1;
  transform: translateY(0);
}

/* Snappier Ken Burns Zoom */
.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 5s ease-out;
}

.swiper-slide-active img {
  transform: scale(1.05);
}

/* Dark overlay for text readability */
.swiper-slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 800px;
  padding: 0 20px;
}
.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  font-weight: 300;
}

.page-hero {
  height: 60vh;
}
.page-hero h1 {
  font-size: 3.5rem;
}

/* Sections */
section {
  padding: 100px 5%;
}
.section-title {
  text-align: center;
  margin-bottom: 60px;
}
.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}
.section-title .divider {
  width: 50px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

/* Cards */
.card {
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}
.card-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}
.card-content {
  padding: 30px;
  text-align: center;
}
.card-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.card-content p {
  color: var(--text-light);
  margin-bottom: 20px;
}
.price {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: 20px;
  display: block;
}

/* Footer */
footer {
  background: var(--charcoal);
  color: var(--white);
  padding: 80px 5% 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}
.footer-col h4 {
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: 20px;
}
.footer-col p,
.footer-col a {
  color: #aaa;
  font-size: 0.95rem;
  margin-bottom: 10px;
  display: block;
}
.footer-col a:hover {
  color: var(--gold);
}
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #777;
  font-size: 0.85rem;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--gold);
  color: var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: var(--transition);
  animation: goldPulse 2s infinite;
}
.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}
.whatsapp-float:hover {
  background-color: var(--gold-hover);
  transform: translateY(-5px) scale(1.05);
  animation: none;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

@keyframes goldPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(197, 168, 128, 0.6);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(197, 168, 128, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(197, 168, 128, 0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
  header {
    padding: 15px;
    background: var(--charcoal);
  }
  .nav-links {
    display: none;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
  .whatsapp-float svg {
    width: 25px;
    height: 25px;
  }
}
