/* Varni Family Show Pigs - Custom Styles */
/* Extends Tailwind for premium farm aesthetic */

:root {
  --forest-green: #1f3a2e;
  --deep-green: #162d23;
  --warm-red: #8b3a2f;
  --accent-gold: #b48a4a;
  --cream: #f8f4eb;
  --sand: #e8dfc9;
  --charcoal: #2c2c2c;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Headings with slight premium touch */
h1, h2, .section-title {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Navbar */
.nav-link {
  position: relative;
  transition: color 0.2s ease;
}
.nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: #b48a4a;
  transition: width 0.25s ease;
}
.nav-link:hover:after {
  width: 100%;
}

/* Hero */
.hero {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.hero-overlay {
  background: linear-gradient(to bottom, rgba(31, 58, 46, 0.55), rgba(22, 45, 35, 0.75));
}

/* Card styles */
.pig-card {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}
.pig-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Gallery */
.gallery-img {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.3s ease;
  cursor: pointer;
}
.gallery-img:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.15);
}

/* Modal */
.modal {
  animation: fadeInScale 0.2s ease-out forwards;
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* Form */
input, select, textarea {
  transition: all 0.2s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: #b48a4a;
  box-shadow: 0 0 0 4px rgba(180, 138, 74, 0.15);
  outline: none;
}

/* Buttons */
.btn-primary {
  background-color: #1f3a2e;
  color: white;
  transition: all 0.2s ease;
}
.btn-primary:hover {
  background-color: #162d23;
  transform: translateY(-1px);
}
.btn-accent {
  background-color: #b48a4a;
  color: #1f3a2e;
  font-weight: 600;
}
.btn-accent:hover {
  background-color: #a37d42;
}

/* Section divider */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #e8dfc9, transparent);
}

/* Testimonial */
.testimonial {
  position: relative;
}
.testimonial:before {
  content: '“';
  font-family: Georgia, serif;
  font-size: 6rem;
  line-height: 1;
  position: absolute;
  top: -1.25rem;
  left: 1rem;
  opacity: 0.08;
  color: #1f3a2e;
}

/* Mobile menu */
.mobile-menu {
  animation: slideDown 0.25s ease-out;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Utility */
.farm-badge {
  background-color: #e8dfc9;
  color: #1f3a2e;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .hero {
    background-attachment: scroll;
  }
}