/* Custom Styles for The Village Farmhouse */

:root {
  --color-forest-900: #0f291e;
  --color-forest-800: #1b4332;
  --color-forest-700: #2d6a4f;
  --color-terracotta: #c86d51;
  --color-terracotta-dark: #b0573c;
  --color-gold: #e9c46a;
  --color-cream: #fbfaf6;
  --color-sand: #f4f1ea;
  --color-charcoal: #1c1d1a;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--color-cream);
  color: var(--color-charcoal);
}

h1, h2, h3, h4, .font-serif {
  font-family: 'Playfair Display', Georgia, serif;
}

/* Layout Overflow Protection (Zero Horizontal Scroll at 375px & 1280px) */
main, section {
  overflow-x: clip;
}

#heroParallaxWrapper {
  overflow: hidden;
}

#mobileMenu.translate-x-full {
  visibility: hidden;
  pointer-events: none;
}

/* Glassmorphism */
.glass-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06);
}

/* Luxury button styling */
.btn-primary {
  background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
  color: white;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: transform 0.5s ease;
}
.btn-primary:hover::after {
  transform: translateX(200%);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -6px rgba(27, 67, 50, 0.4);
}

.btn-accent {
  background: linear-gradient(135deg, #c86d51 0%, #dd7354 100%);
  color: white;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -6px rgba(200, 109, 81, 0.45);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -6px rgba(37, 211, 102, 0.45);
}

/* Gallery hover zoom */
.gallery-img-container {
  overflow: hidden;
  position: relative;
  border-radius: 1.25rem;
}
.gallery-img-container img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-img-container:hover img {
  transform: scale(1.08);
}

/* Accordion transition controlled smoothly via JS scrollHeight */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease;
  opacity: 0;
}
.faq-item.active .faq-content {
  opacity: 1;
}
.faq-item .faq-icon {
  transition: transform 0.3s ease;
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* Floating animation */
@keyframes softFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
.animate-float {
  animation: softFloat 4.5s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
}
.pulse-glow {
  animation: pulseGlow 2.5s infinite;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: #f1eee4;
}
::-webkit-scrollbar-thumb {
  background: #2d6a4f;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #1b4332;
}

/* Header & Brand Layout Protection (Zero Overlap Guarantee) */
.brand-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-logo-box {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 9999px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  border: 1px solid #e7e5e4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  flex-shrink: 0;
}

.brand-text-box {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  justify-content: center;
}

.brand-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #1b4332;
  line-height: 1.15;
  white-space: nowrap;
  letter-spacing: -0.015em;
  margin: 0;
  padding: 0;
}

.brand-subtitle {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #57534e;
  font-weight: 700;
  white-space: nowrap;
  margin-top: 0.25rem;
  line-height: 1;
}

@media (min-width: 640px) {
  .brand-logo-box {
    width: 3.15rem;
    height: 3.15rem;
  }
  .brand-title {
    font-size: 1.5rem;
  }
}
