/* --- Global Settings & Fonts --- */
:root {
  --primary-font: 'Playfair Display', serif;
  --body-font: 'Lato', sans-serif;
  --pastel-bg: #fdfaf7; /* A very light, warm pastel */
  --text-color: #5d5550;
  --header-color: #796a60; /* A slightly darker accent */
  --whatsapp-green: #25D366;
  --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth; /* Smooth scrolling for nav links */
}

body {
  font-family: var(--body-font);
  background-color: var(--pastel-bg);
  color: var(--text-color);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--primary-font);
  color: var(--header-color);
  font-weight: 700;
  margin-bottom: 1rem;
}

h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; border-bottom: 1px solid #eee; padding-bottom: 0.5rem; }

/* --- Header & Navigation --- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--box-shadow);
}

.logo {
  font-family: var(--primary-font);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--header-color);
}

nav a {
  font-family: var(--body-font);
  text-decoration: none;
  color: var(--text-color);
  margin-left: 2rem;
  font-weight: 400;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--header-color);
}

/* --- Page Sections --- */
main {
  max-width: 1200px;
  margin: 0 auto;
}

.hero {
  text-align: center;
  padding: 4rem 2rem;
  background-color: #fff;
  border-radius: 8px;
  margin: 2rem;
  box-shadow: var(--box-shadow);
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 1rem auto 0;
}

.category {
  padding: 2rem;
  margin: 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
}

/* --- The Image Gallery --- */
.gallery-grid {
  display: grid;
  /* This makes it responsive! */
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.gallery-grid .loader {
  font-style: italic;
  grid-column: 1 / -1; /* Make loader span full width */
  text-align: center;
  padding: 2rem;
}

.gallery-item {
  width: 100%;
  height: 300px; /* Fixed height for a uniform grid */
  object-fit: cover; /* This crops the image nicely */
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  background-color: #f0f0f0; /* Placeholder color */
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* --- WhatsApp Button --- */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--whatsapp-green);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: transform 0.3s ease;
}

.whatsapp-button:hover {
  transform: scale(1.1);
}

/* --- Mobile Friendliness --- */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 1rem;
  }
  
  nav {
    margin-top: 1rem;
  }
  
  nav a {
    margin: 0 0.5rem;
  }
  
  .gallery-grid {
    /* Show fewer columns on small screens */
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}
/* --- Styles for Hero Links --- */

.hero-links {
  margin-top: 1.5rem; /* Adds space above the buttons */
  display: flex;
  gap: 1rem; /* Adds space between the buttons */
  justify-content: center; /* Centers the buttons */
  flex-wrap: wrap; /* Allows buttons to stack nicely on mobile */
}

.hero-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--header-color); /* Uses your existing header color */
  color: #ffffff; /* White text */
  text-decoration: none;
  font-family: var(--body-font); /* Uses your existing body font */
  font-weight: 700;
  border-radius: 5px; /* Slightly rounded corners */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero-button:hover {
  background-color: var(--text-color); /* Uses your existing text color for hover */
  transform: translateY(-2px); /* Adds a slight "lift" effect */
}

/* --- Styles for Skeleton Loaders --- */
.skeleton {
  width: 100%;
  height: 300px; /* Must be same height as .gallery-item */
  background-color: #f0f0f0;
  border-radius: 8px;
  animation: pulse 1.5s infinite ease-in-out;
}

/* Fading animation for the skeleton */
@keyframes pulse {
  0% { opacity: 0.8; }
  50% { opacity: 0.5; }
  100% { opacity: 0.8; }
}

/* --- Styles for Back to Top Button --- */
.back-to-top {
  position: fixed;
  bottom: 20px;
  /* Place it just left of the WhatsApp button */
  right: 90px; 
  background-color: var(--header-color);
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: none; /* Hidden by default */
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 999;
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.back-to-top:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* --- Makes the logo a clickable "Home" link --- */
.logo a {
  text-decoration: none; /* Removes the underline */
  color: inherit;       /* Makes it use the parent's color */
}