/* Ojas Farms — Custom Styles */

html {
  scroll-behavior: smooth;
}

/* Skip-to-content link (accessibility) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  z-index: 100;
  padding: 0.75rem 1.5rem;
  background-color: #2a4432;
  color: #fefcf8;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 0 0 0.75rem 0;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid #d4a373;
  outline-offset: 2px;
}

/* Focus-visible styles for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #d4a373;
  outline-offset: 2px;
  border-radius: 4px;
}
.btn-primary:focus-visible,
.btn-gold:focus-visible,
.btn-outline:focus-visible,
.btn-outline-light:focus-visible {
  outline: 3px solid #d4a373;
  outline-offset: 3px;
}
.nav-link:focus-visible {
  outline: 2px solid #d4a373;
  outline-offset: 4px;
  border-radius: 4px;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: #fefcf8;
  color: #0f2418;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Fraunces', Georgia, serif;
}

/* Nav states */
.nav-transparent {
  background: transparent;
}
.nav-transparent .nav-link,
.nav-transparent .nav-logo {
  color: #fefcf8;
}
.nav-transparent .nav-logo svg {
  stroke: #fefcf8;
}
.nav-transparent .mobile-menu-btn span {
  background: #fefcf8;
}

.nav-solid {
  background: rgba(254, 252, 248, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(15, 36, 24, 0.06);
}
.nav-solid .nav-link,
.nav-solid .nav-logo {
  color: #0f2418;
}
.nav-solid .nav-logo svg {
  stroke: #0f2418;
}
.nav-solid .mobile-menu-btn span {
  background: #0f2418;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.nav-link:hover {
  color: #d4a373;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  background-color: #2a4432;
  color: #fefcf8;
  transition: all 0.25s ease;
  border: 2px solid #2a4432;
}
.btn-primary:hover {
  background-color: #0f2418;
  border-color: #0f2418;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(15, 36, 24, 0.15);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  background-color: #d4a373;
  color: #0f2418;
  transition: all 0.25s ease;
  border: 2px solid #d4a373;
}
.btn-gold:hover {
  background-color: #b8855a;
  border-color: #b8855a;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(180, 133, 90, 0.2);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  background-color: transparent;
  color: #2a4432;
  transition: all 0.25s ease;
  border: 2px solid #2a4432;
}
.btn-outline:hover {
  background-color: #2a4432;
  color: #fefcf8;
  transform: translateY(-1px);
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  background-color: transparent;
  color: #fefcf8;
  transition: all 0.25s ease;
  border: 2px solid rgba(254, 252, 248, 0.5);
}
.btn-outline-light:hover {
  background-color: rgba(254, 252, 248, 0.1);
  border-color: #fefcf8;
}

/* Hero overlay */
.hero-overlay {
  position: relative;
}
.hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 31, 20, 0.4) 0%, rgba(10, 31, 20, 0.6) 50%, rgba(10, 31, 20, 0.85) 100%);
  pointer-events: none;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.revealed {
  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; }

/* Form styles */
.form-input {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: 2px solid #d4e6db;
  border-radius: 0.75rem;
  background-color: #fefcf8;
  color: #0f2418;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}
.form-input:focus {
  border-color: #4d6b56;
  box-shadow: 0 0 0 3px rgba(77, 107, 86, 0.1);
}
.form-input::placeholder {
  color: #8fae9d;
}
.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: #2a4432;
}

/* Form status messages */
.form-success {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  background-color: #d4e6db;
  color: #0f2418;
  font-weight: 500;
  margin-top: 1rem;
}
.form-success.show {
  display: block;
}
.form-error {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  background-color: #fce4e4;
  color: #9b2c2c;
  font-weight: 500;
  margin-top: 1rem;
}
.form-error.show {
  display: block;
}

/* Crop card */
.crop-card {
  border-radius: 1rem;
  overflow: hidden;
  background: #fefcf8;
  border: 1px solid #e8ebe9;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.crop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 36, 24, 0.1);
}

/* Availability badge */
.badge-available {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: #d4e6db;
  color: #2a4432;
}
.badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: #fef3e2;
  color: #b8855a;
}

/* Section spacing */
.section-pad {
  padding-top: 5rem;
  padding-bottom: 5rem;
}
@media (min-width: 768px) {
  .section-pad {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
}

/* Stat number */
.stat-number {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 3rem;
  line-height: 1;
  color: #2a4432;
}
@media (min-width: 768px) {
  .stat-number {
    font-size: 4rem;
  }
}

/* Mobile menu */
#mobile-menu {
  background: rgba(254, 252, 248, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid #e8ebe9;
}
#mobile-menu a {
  display: block;
  padding: 1rem 1.5rem;
  font-weight: 500;
  color: #0f2418;
  border-bottom: 1px solid #f0f2f0;
  transition: background-color 0.2s ease;
}
#mobile-menu a:hover {
  background-color: #f0faf4;
  color: #d4a373;
}

/* Hamburger animation */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  background: transparent;
  border: none;
}
.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.mobile-menu-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Footer */
footer a {
  transition: color 0.2s ease;
}

/* Leaf icon SVG color */
.leaf-icon {
  transition: stroke 0.3s ease;
}

/* Mobile menu focus styles */
#mobile-menu a:focus-visible {
  outline: 2px solid #d4a373;
  outline-offset: -2px;
}

/* Print */
@media print {
  header, footer, .no-print, #mobile-menu, .skip-link {
    display: none !important;
  }
  main {
    padding-top: 0 !important;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .reveal-delay-1,
  .reveal-delay-2,
  .reveal-delay-3,
  .reveal-delay-4 {
    transition-delay: 0s;
  }
  .btn-primary,
  .btn-gold,
  .btn-outline,
  .btn-outline-light,
  .crop-card,
  .nav-link,
  footer a,
  .leaf-icon {
    transition: none;
  }
  .btn-primary:hover,
  .btn-gold:hover,
  .btn-outline:hover,
  .crop-card:hover {
    transform: none;
  }
}
