/* YourFirstFoodGarden.com — Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@400;500;600;700&display=swap');

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #10b981;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #059669;
}

/* Navigation link active state */
.nav-link {
  color: #4b5563;
}
.nav-link:hover {
  color: #059669;
  background: #ecfdf5;
}
.nav-link.active {
  color: #047857;
  background: #d1fae5;
  font-weight: 600;
}

/* Mobile menu transition */
#mobile-menu {
  transition: all 0.3s ease-in-out;
}
#mobile-menu.hidden {
  display: none;
}
#mobile-menu:not(.hidden) {
  display: block;
}

/* Section scroll animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Guide page anchor offset for sticky navs */
#location, #soil, #crops, #planting, #care, #harvest {
  scroll-margin-top: 120px;
}

/* FAQ accordion */
.faq-question .rotate-180 {
  transform: rotate(180deg);
}

/* Form input focus styles */
input:focus, textarea:focus, select:focus {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* Button hover effect */
.hover-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.15);
}

/* Gradient text utility */
.text-gradient {
  background: linear-gradient(135deg, #059669, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Card hover effect */
.card-hover {
  transition: all 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.1);
}

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
}

/* Loading spinner for form */
.spinner {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Smooth page transitions between multi-page */
main {
  animation: fadeInPage 0.5s ease;
}
@keyframes fadeInPage {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile nav improvements */
@media (max-width: 767px) {
  .nav-link.active {
    background: transparent;
    color: #059669;
  }
}

/* Print styles */
@media print {
  nav, footer { display: none; }
  body { color: #000; background: #fff; }
}