/* ===== Custom Styles for Goudreault Farm Greenhouse ===== */

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #1c1c24;
}
::-webkit-scrollbar-thumb {
  background: #3f3f46;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #52525b;
}

/* ===== Navigation ===== */
#navbar {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

#navbar.scrolled {
  background: rgba(19, 19, 24, 0.92);
  border-bottom: 1px solid rgba(63, 63, 70, 0.5);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #E8625C;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 60%;
}

/* ===== Hero Geometric Shapes ===== */
.hero-shape {
  position: absolute;
  opacity: 0.08;
  pointer-events: none;
}

.shape-circle-1 {
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: #E8625C;
  top: -200px;
  right: -150px;
  animation: float-slow 20s ease-in-out infinite;
}

.shape-circle-2 {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: #8eaa7d;
  bottom: 10%;
  right: 5%;
  animation: float-slow 15s ease-in-out infinite reverse;
}

.shape-circle-3 {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: #E8625C;
  top: 40%;
  left: 5%;
  animation: float-slow 12s ease-in-out infinite;
}

.shape-rect-1 {
  width: 200px;
  height: 200px;
  background: #8eaa7d;
  bottom: -50px;
  left: 10%;
  border-radius: 40px;
  transform: rotate(45deg);
  animation: float-slow 18s ease-in-out infinite reverse;
}

.shape-triangle {
  width: 0;
  height: 0;
  border-left: 100px solid transparent;
  border-right: 100px solid transparent;
  border-bottom: 173px solid #E8625C;
  top: 20%;
  left: 3%;
  opacity: 0.04;
  animation: rotate-slow 30s linear infinite;
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(3deg); }
  66% { transform: translateY(10px) rotate(-2deg); }
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Hero image animation */
.hero-image {
  animation: slide-up 1s ease-out both;
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-fade {
  animation: fade-in 0.8s ease-out both;
}

.hero-fade:nth-child(1) { animation-delay: 0.1s; }
.hero-fade:nth-child(2) { animation-delay: 0.25s; }
.hero-fade:nth-child(3) { animation-delay: 0.4s; }
.hero-fade:nth-child(4) { animation-delay: 0.55s; }

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Section Labels ===== */
.section-label {
  position: relative;
  display: inline-block;
}

.section-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: #E8625C;
  margin-bottom: 12px;
}

/* ===== Plant Cards ===== */
.plant-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.plant-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ===== Service Items ===== */
.service-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
  transform: translateX(6px);
}

/* ===== Scroll Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ===== Mobile Menu ===== */
#mobile-menu {
  animation: menu-slide 0.3s ease;
}

@keyframes menu-slide {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Button ripple effect ===== */
button, a {
  -webkit-tap-highlight-color: transparent;
}

/* ===== Focus styles ===== */
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 2px solid #E8625C;
  outline-offset: 2px;
}

/* ===== Responsive tweaks ===== */
@media (max-width: 640px) {
  .font-800 {
    font-weight: 700;
  }

  h1 {
    letter-spacing: -0.02em;
  }
}

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

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-shape {
    animation: none;
  }
}
