@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=DM+Sans:wght@400;500;600&display=swap');

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

:root {
  --primary: #2d5016;
  --accent: #d4a574;
  --light: #f9f8f6;
  --dark: #1a1a1a;
}

/* Hero Entrance Animation */
@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroImageSlideIn {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-text {
  animation: heroFadeIn 0.8s ease-out forwards;
}

.hero-image {
  animation: heroImageSlideIn 0.9s ease-out forwards;
  animation-delay: 0.2s;
}

/* Scroll Reveal */
@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-reveal {
  animation: revealUp 0.7s ease-out forwards;
}

/* Smooth Scroll Behavior */
html {
  scroll-behavior: smooth;
}

/* Button Hover Animation */
.btn-primary,
.btn-secondary {
  position: relative;
  overflow: hidden;
}

.btn-primary:active,
.btn-secondary:active {
  transform: translateY(-1px);
}

/* Card Hover Effect */
.group {
  position: relative;
}

/* FAQ Details Styling */
details {
  transition: all 0.3s ease;
}

details[open] {
  box-shadow: 0 4px 12px rgba(45, 80, 22, 0.15);
}

summary::marker {
  display: none;
}

/* Testimonial Grain Overlay (subtle) */
.bg-gray-50::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' seed='2' /%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23noiseFilter)' /%3E%3C/svg%3E");
  pointer-events: none;
  z-index: -1;
}

/* Mobile Menu Animation */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#mobileMenu:not(.hidden) {
  animation: slideDown 0.3s ease-out;
}

/* Marquee-style scroll (used in special sections) */
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

.marquee {
  overflow: hidden;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Responsive Fixes */
@media (max-width: 768px) {
  .display-lg {
    font-size: 2rem;
  }
  
  .display-md {
    font-size: 1.5rem;
  }
}

/* Link underline animation */
a {
  position: relative;
  text-decoration: none;
}

a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

a:hover::after {
  width: 100%;
}

/* Smooth Image Loading */
img {
  display: block;
  width: 100%;
  height: auto;
}

/* Form & Input Styling */
input,
textarea,
select {
  font-family: 'DM Sans', sans-serif;
}

/* Utility: Subtle Border Animation */
.border-animate {
  position: relative;
  overflow: hidden;
}

.border-animate::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.3), transparent);
  transition: left 0.5s ease;
}

.border-animate:hover::before {
  left: 100%;
}

