/* Custom CSS for Windy Hill Viewpoint & Chalet - Demodera */

:root {
  --primary: #1e3a2b;       /* Deep Forest / Tea Garden Green */
  --primary-light: #2d5a41;
  --accent: #d4af37;        /* Luxury Ceylon Gold */
  --accent-hover: #b89628;
  --dark: #0f172a;
  --light-bg: #f8faf9;
  --card-bg: #ffffff;
  --text-main: #334155;
  --text-muted: #64748b;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

body {
  font-family: var(--font-body);
  background-color: var(--light-bg);
  color: var(--text-main);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

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

/* Glassmorphic Header & Elements */
.glass-header {
  background: rgba(30, 58, 43, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

/* Custom Buttons */
.btn-gold {
  background: linear-gradient(135deg, #d4af37 0%, #b89628 100%);
  color: #ffffff;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px 0 rgba(212, 175, 55, 0.39);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #e5c14d 0%, #caaa35 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(212, 175, 55, 0.5);
}

.btn-forest {
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-forest:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(30, 58, 43, 0.3);
}

/* Focus Highlight Carousel (Gallery B) */
.focus-carousel-container {
  position: relative;
  width: 100%;
  padding: 40px 0;
  overflow: hidden;
}

.focus-carousel-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  min-height: 450px;
  position: relative;
}

.focus-slide {
  position: absolute;
  width: 85%;
  max-width: 720px;
  height: 470px;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: scale(0.85) translateZ(-200px);
  z-index: 1;
  pointer-events: none;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  padding: 8px;
  border: 2px solid rgba(212, 175, 55, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.focus-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 1.15rem;
}

.focus-slide.active {
  opacity: 1;
  transform: scale(1) translateZ(0);
  z-index: 10;
  border: 3.5px solid rgba(212, 175, 55, 0.95);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 30px 5px rgba(212, 175, 55, 0.45);
  pointer-events: auto;
}

.focus-slide.prev {
  opacity: 0.6;
  transform: translateX(-65%) scale(0.85) rotateY(12deg);
  z-index: 5;
  pointer-events: auto;
  filter: brightness(0.8);
}

.focus-slide.next {
  opacity: 0.6;
  transform: translateX(65%) scale(0.85) rotateY(-12deg);
  z-index: 5;
  pointer-events: auto;
  filter: brightness(0.8);
}

/* Luxury Photo Frame for Hero Slideshow */
.hero-photo-frame {
  position: relative;
  border: 3px solid rgba(212, 175, 55, 0.85);
  border-radius: 1.5rem;
  padding: 8px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8), 0 0 25px 0 rgba(212, 175, 55, 0.35);
  transition: all 0.3s ease;
}

.hero-photo-frame:hover {
  box-shadow: 0 25px 50px -10px rgba(0, 0, 0, 0.9), 0 0 35px 5px rgba(212, 175, 55, 0.5);
  border-color: rgba(212, 175, 55, 1);
}

.hero-frame-inner {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: 1.15rem;
  overflow: hidden;
  background-color: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1024px) {
  .hero-frame-inner {
    height: 480px;
  }
}

.hero-frame-inner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.6s ease-in-out;
}

/* Hero Slider (Gallery A) */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out, transform 8s ease;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

/* Floating WhatsApp Badge */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0px 4px 15px rgba(0,0,0,0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  transition: all 0.3s ease;
  animation: pulse-green 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #128c7e;
  color: #FFF;
}

@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);
  }
}

/* Custom Section Dividers & Badges */
.badge-gold {
  background: rgba(212, 175, 55, 0.15);
  color: #b89628;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.badge-forest {
  background: rgba(30, 58, 43, 0.1);
  color: var(--primary);
  border: 1px solid rgba(30, 58, 43, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .focus-slide {
    width: 90%;
    height: 300px;
  }
  .focus-slide.prev {
    transform: translateX(-40%) scale(0.8);
  }
  .focus-slide.next {
    transform: translateX(40%) scale(0.8);
  }
}
