/* ============================================
   Fresh & Fruity — Custom Styles
   Classic & Elegant · Forest Green + Off-White
   ============================================ */

/* --- Base & Typography --- */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background-color: #1a4a21;
  color: #fdfcfa;
}

/* --- Scroll Reveal --- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-on-scroll.is-visible:nth-child(2) { transition-delay: 0.1s; }
.reveal-on-scroll.is-visible:nth-child(3) { transition-delay: 0.2s; }
.reveal-on-scroll.is-visible:nth-child(4) { transition-delay: 0.3s; }

/* --- Hero Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

@keyframes floatDelayed {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-16px) scale(1.03); }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

@keyframes scrollLine {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

.animate-fade-in-up {
  animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in {
  animation: fadeIn 1s ease forwards;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-delay {
  animation: floatDelayed 7s ease-in-out infinite;
  animation-delay: 1s;
}

.animate-float-slow {
  animation: floatSlow 8s ease-in-out infinite;
  animation-delay: 2s;
}

.animate-scroll-line {
  animation: scrollLine 2s ease-in-out infinite;
}

/* --- Marquee --- */
@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  display: flex;
  gap: 1rem;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}

/* --- Header State: Scrolled --- */
header.scrolled #header-bg {
  background-color: rgba(253, 252, 250, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

header.scrolled #logo-text,
header.scrolled #logo-icon {
  color: #1a3c2a;
}

header.scrolled #logo-sub {
  color: #6b8f72;
}

/* --- Mobile Menu --- */
#mobile-menu.open {
  transform: translateX(0);
}

.mobile-nav-link {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-nav-link {
  opacity: 1;
  transform: translateY(0);
}

#mobile-menu.open .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-nav-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-nav-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-nav-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-nav-link:nth-child(5) { transition-delay: 0.3s; }

/* --- Custom Select Arrow --- */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2382b485' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* --- Smooth image loading --- */
img {
  display: block;
  max-width: 100%;
}

/* --- Focus visible for accessibility --- */
:focus-visible {
  outline: 2px solid #529456;
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Responsive adjustments --- */
@media (max-width: 767px) {
  .font-display {
    line-height: 1.15;
  }
}

/* --- Print styles --- */
@media print {
  header, footer, #contact-form, #form-success {
    display: none;
  }
  body {
    color: #1a3c2a;
    background: white;
  }
  a {
    color: #1a4a21;
  }
}
