@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Merriweather:wght@400;600;700&display=swap');

:root {
    --primary: #8c4e2d; /* Warm terracotta/bronze */
    --primary-hover: #6d3a1f; /* Darker warm bronze */
    --primary-light: #f5e6d8; 
    --secondary: #a75d33;
    --font-heading: 'Merriweather', serif;
    --font-body: 'Inter', sans-serif;
    --dark: #2c1f18; /* Deep espresso */
    --light: #faf6f0; /* Soft warm ivory */
    --cream: #fffdfb; /* Crisp warm white for cards */
    --gold: #c5a880; /* Elegant gold accent */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.7;
}

h1, h2, h3, h4, .font-display {
    font-family: var(--font-heading);
    color: var(--dark);
}

/* Glassmorphism Navigation */
.glass-nav {
    background: rgba(250, 246, 240, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(140, 78, 45, 0.1);
}

/* Classic Borders & Accents */
.classic-border {
    border: 1px solid rgba(140, 78, 45, 0.15);
}

.classic-double-border {
    border: 4px double rgba(140, 78, 45, 0.3);
}

.decorative-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem 0;
}

.decorative-divider::before,
.decorative-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(to var(--gold), rgba(140, 78, 45, 0.2));
    margin: 0 1rem;
    max-width: 80px;
}

.decorative-divider::before {
    background: linear-gradient(to left, rgba(197, 168, 128, 0.6), transparent);
}

.decorative-divider::after {
    background: linear-gradient(to right, rgba(197, 168, 128, 0.6), transparent);
}

/* Smooth Fade & Zoom for Cards */
.image-zoom {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.image-zoom:hover {
    transform: scale(1.04);
}

/* Custom Vintage Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--light);
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border: 2px solid var(--light);
    border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* Category Filter Transition */
.gallery-item {
    transition: all 0.5s ease;
}
.gallery-item.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.95);
}

/* Dynamic Notification Toast */
#toast {
    visibility: hidden;
    min-width: 250px;
    background-color: var(--dark);
    color: var(--light);
    text-align: center;
    border-radius: 16px;
    padding: 16px 24px;
    position: fixed;
    z-index: 100;
    right: 30px;
    bottom: 30px;
    font-size: 15px;
    box-shadow: 0 12px 24px -4px rgba(44, 31, 24, 0.15);
    border: 1px solid rgba(197, 168, 128, 0.3);
    transform: translateY(20px);
    opacity: 0;
    transition: opacity 0.35s, transform 0.35s, visibility 0.35s;
}

#toast.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* ==== Responsive Enhancements ==== */

/* Global container max width */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Glass card padding adjustments */
@media (max-width: 639px) {
  .glass-card { padding: 0.75rem; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .glass-card { padding: 1rem; }
}
@media (min-width: 1024px) {
  .glass-card { padding: 1.5rem; }
}

/* Hero background responsiveness */
.hero-bg { background-size: cover; background-position: center; }
@media (max-width: 767px) { .hero-bg { height: 300px; } }
@media (min-width: 768px) { .hero-bg { height: 500px; } }

/* Carousel arrows (hidden on mobile) */
.carousel-arrow { display: none; }

/* Responsive map container */
.map-responsive {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
}
.map-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (min-width: 768px) {
  .carousel-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border-radius: 50%;
    padding: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 10;
  }
  .carousel-arrow:hover { background: #fdf5eb; }
  .carousel-arrow.left { left: -1rem; }
  .carousel-arrow.right { right: -1rem; }
}

/* Optional Lightbox Overlay for Gallery */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox img { max-width: 90%; max-height: 90vh; border-radius: 0.5rem; }

/* Scroll Animation Classes */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, visibility;
}
.fade-in-section.is-visible {
  opacity: 1;
  transform: none;
  visibility: visible;
}

/* Staggered children fade in */
.stagger-container.is-visible > * {
  animation: staggerFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}
@keyframes staggerFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.stagger-container.is-visible > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-container.is-visible > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-container.is-visible > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-container.is-visible > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-container.is-visible > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-container.is-visible > *:nth-child(6) { animation-delay: 0.6s; }

/* WhatsApp Floating Widget */
.whatsapp-widget {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 56px;
  height: 56px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 99;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  animation: pulse-green 2s infinite;
}
.whatsapp-widget:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 8px 16px rgba(37, 211, 102, 0.5);
  animation: none;
}
.whatsapp-widget svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}
@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Premium Button Glows & Effects */
.btn-premium {
  position: relative;
  overflow: hidden;
}
.btn-premium::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-20deg);
  transition: 0.5s;
}
.btn-premium:hover::after {
  left: 150%;
}

/* End of responsive enhancements */