/* =========================================================
   1. DESIGN TOKENS
   ========================================================= */
:root {
  --green-deep: #24402A;
  --green-mid:  #4C7A45;
  --cream:      #F6F2E7;
  --brown-soil: #7A5230;
  --gold-wheat: #C99A2E;
  --charcoal:   #23241F;
  --card-bg:    #E8C168;
  --green-mist: #E7ECDD;

  --font-display: 'Fraunces', serif;
  --font-body: 'Work Sans', sans-serif;

  --max-width: 1180px;
  --radius: 6px;
}

/* =========================================================
   2. RESET
   ========================================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; }

/* =========================================================
   3. SHARED HELPERS
   ========================================================= */
.kicker { font-weight: 600; color: var(--brown-soil); margin-bottom: 10px; }
.kicker-light { color: var(--gold-wheat); }
.section-lead { max-width: 60ch; color: #4a4d40; margin-top: 10px; }

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-family: var(--font-body);
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
  cursor: pointer;
  font-size: 1rem;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold-wheat); color: var(--charcoal); }
.btn-primary:hover { background: #b98a25; }
.btn-ghost { border-color: var(--cream); color: var(--cream); }
.btn-ghost:hover { background: rgba(246, 242, 231, 0.12); }
.hero .btn-ghost { border-color: var(--cream); color: var(--cream); }
.hero .btn-ghost:hover { background: rgba(246, 242, 231, 0.15); }

/* =========================================================
   4. NAVIGATION
   ========================================================= */
.nav { position: sticky; top: 0; z-index: 100; background: var(--green-deep); border-bottom: 1px solid rgba(0, 0, 0, 0.15); }
.nav-inner { max-width: var(--max-width); margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--gold-wheat); color: var(--green-deep); font-family: var(--font-display); font-weight: 700; }
.brand-logo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--cream); }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--cream); line-height: 1.2; }
.brand-name small { font-weight: 400; font-size: 0.75rem; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 0.92rem; font-weight: 500; color: var(--cream); }
.nav-links a:hover { color: var(--gold-wheat); }
.nav-cta { background: var(--gold-wheat); color: var(--green-deep) !important; padding: 8px 18px; border-radius: var(--radius); }
.nav-cta:hover { background: #e0b246; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--cream); }

/* =========================================================
   5. HERO + STATS BAR
   ========================================================= */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(20, 31, 16, 0.72) 0%, rgba(20, 31, 16, 0.55) 45%, rgba(20, 31, 16, 0.85) 100%),
    url('images/hero-bg-cattle.jpg') center / cover no-repeat;
}
.hero-inner { max-width: var(--max-width); margin: 0 auto; padding: 100px 24px 120px; }
.hero-text { max-width: 640px; }
.hero-text h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--cream); margin-top: 8px; }
.hero-tagline { font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--gold-wheat); font-weight: 600; margin-top: 10px; }
.hero-sub { margin-top: 20px; max-width: 46ch; color: rgba(246, 242, 231, 0.9); }
.hero-actions { margin-top: 32px; display: flex; gap: 16px; flex-wrap: wrap; }

.hero-slideshow {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 260px;
  margin-top: 48px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 4px solid rgba(246, 242, 231, 0.85);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }

.stats-bar { background: var(--green-deep); }
.stats-inner { max-width: var(--max-width); margin: 0 auto; padding: 36px 24px; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.stats-hours { color: var(--gold-wheat); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em; }
.stats-row { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 24px; width: 100%; }
.stat-block { display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--cream); }
.stat-num { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; color: var(--gold-wheat); }
.stat-label { font-size: 0.82rem; margin-top: 4px; opacity: 0.85; }
.stat-label em { font-style: normal; opacity: 0.65; }

.trust-badges { display: flex; flex-wrap: wrap; gap: 10px 20px; list-style: none; margin-top: 18px; padding: 0; }
.trust-badges li { font-size: 0.82rem; font-weight: 600; color: var(--cream); }

/* =========================================================
   6. ABOUT
   ========================================================= */
.about-inner { max-width: var(--max-width); margin: 0 auto; padding: 100px 24px 80px; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.about-media img { border-radius: var(--radius); height: 460px; object-fit: cover; }
.about-text h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--green-deep); margin-bottom: 18px; }

/* =========================================================
   7. LIVESTOCK / POULTRY BANDS
   ========================================================= */
.band-dark { background: var(--green-deep); color: var(--cream); }
.band-inner { max-width: var(--max-width); margin: 0 auto; padding: 90px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.band-inner.reverse { direction: rtl; }
.band-inner.reverse > * { direction: ltr; }
.band-media img { border-radius: var(--radius); height: 420px; object-fit: cover; }
.band-text h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 16px; }
.band-dark .band-text h2 { color: var(--cream); }
.poultry .band-text h2 { color: var(--green-deep); }
.feature-list { margin-top: 22px; list-style: none; }
.feature-list li { padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, 0.15); }
.poultry .feature-list li { border-top-color: rgba(36, 64, 42, 0.15); }
.feature-list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
.poultry .feature-list li:last-child { border-bottom-color: rgba(36, 64, 42, 0.15); }

/* =========================================================
   8. PRODUCTS
   ========================================================= */
.products { background: var(--green-mist); }
.products-inner { max-width: var(--max-width); margin: 0 auto; padding: 100px 24px; }
.products-inner h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--green-deep); margin: 8px 0 4px; }

.filter-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.filter-tab {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(36, 64, 42, 0.25);
  background: transparent;
  color: var(--green-deep);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.filter-tab:hover { background: rgba(36, 64, 42, 0.08); }
.filter-tab.active { background: var(--green-deep); color: var(--cream); border-color: var(--green-deep); }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 32px; }
.product-card { background: var(--card-bg); border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(36, 64, 42, 0.12); display: flex; flex-direction: column; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(36, 64, 42, 0.12); }
.product-card img { height: 160px; object-fit: cover; width: 100%; }
.product-body { padding: 16px; display: flex; flex-direction: column; flex-grow: 1; }
.product-card h3 { font-size: 1.05rem; color: var(--green-deep); margin-bottom: 6px; }
.product-card p { font-size: 0.88rem; color: #4a4d40; margin-bottom: 12px; flex-grow: 1; }
.product-price { display: block; font-weight: 700; color: var(--brown-soil); margin-bottom: 14px; font-size: 0.95rem; }
.product-price em { font-style: normal; font-weight: 400; opacity: 0.55; font-size: 0.78rem; }
.product-link { display: block; text-align: center; padding: 12px; background: var(--green-deep); color: var(--cream); font-weight: 600; font-size: 0.88rem; border-radius: 4px; }
.product-link:hover { background: var(--green-mid); }
.filter-empty { text-align: center; margin-top: 32px; color: #6b6e5f; }

/* =========================================================
   9. BREED ADVISOR
   ========================================================= */
.advisor-inner { max-width: var(--max-width); margin: 0 auto; padding: 90px 24px; }
.advisor-inner h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 8px 0 32px; max-width: 22ch; }
.advisor-form { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-end; }
.advisor-field { display: flex; flex-direction: column; gap: 8px; min-width: 220px; }
.advisor-field label { font-size: 0.85rem; font-weight: 600; }
.advisor-field select {
  padding: 12px 14px;
  border-radius: var(--radius);
  border: none;
  background: rgba(246, 242, 231, 0.95);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.advisor-result {
  margin-top: 32px;
  padding: 24px;
  background: rgba(246, 242, 231, 0.08);
  border: 1px solid rgba(246, 242, 231, 0.25);
  border-radius: var(--radius);
  max-width: 60ch;
}

/* =========================================================
   10. SERVICES
   ========================================================= */
.services-inner { max-width: var(--max-width); margin: 0 auto; padding: 100px 24px; }
.services-inner h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--green-deep); margin-bottom: 48px; max-width: 20ch; }
.service-row { display: flex; gap: 28px; align-items: flex-start; padding: 28px 0; border-top: 1px solid rgba(36, 64, 42, 0.18); }
.service-row:last-child { border-bottom: 1px solid rgba(36, 64, 42, 0.18); }
.service-icon { width: 44px; height: 44px; flex-shrink: 0; color: var(--brown-soil); }
.service-row h3 { font-size: 1.15rem; color: var(--green-deep); margin-bottom: 6px; }
.service-row p { max-width: 55ch; color: #3d3f36; }

.map-embed { margin-top: 28px; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(246, 242, 231, 0.25); }
.map-embed iframe { display: block; }

/* =========================================================
   11. GALLERY
   ========================================================= */
.gallery { background: var(--green-mist); }
.gallery-inner { max-width: var(--max-width); margin: 0 auto; padding: 20px 24px 100px; }
.gallery-inner h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--green-deep); margin-bottom: 40px; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; gap: 16px; }
.gallery-item { padding: 0; border: none; background: none; cursor: pointer; border-radius: var(--radius); overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.2s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item.span-tall { grid-row: span 2; }

/* =========================================================
   11b. FARM VIDEOS
   ========================================================= */
.videos { background: var(--cream); }
.videos-inner { max-width: var(--max-width); margin: 0 auto; padding: 80px 24px; }
.videos-inner h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--green-deep); margin-bottom: 40px; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.video-card { background: var(--card-bg); border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(36, 64, 42, 0.12); }
.video-card video { width: 100%; display: block; aspect-ratio: 9 / 16; object-fit: cover; background: #000; }
.video-caption { padding: 12px 14px; font-size: 0.85rem; font-weight: 600; color: var(--green-deep); }

@media (max-width: 900px) {
  .video-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
}

/* =========================================================
   GALLERY LIGHTBOX
   ========================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 12, 0.92);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] {
  display: none;
}
.lightbox-img { max-width: 88vw; max-height: 85vh; object-fit: contain; border-radius: 4px; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(246, 242, 231, 0.12);
  border: none;
  color: var(--cream);
  cursor: pointer;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(246, 242, 231, 0.25); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* =========================================================
   FLOATING WHATSAPP BUTTON
   ========================================================= */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  z-index: 900;
  transition: transform 0.15s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

.call-float {
  position: fixed;
  bottom: 92px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--green-deep);
  color: var(--cream);
  padding: 10px 16px 10px 12px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  z-index: 900;
  font-size: 0.85rem;
  font-weight: 600;
  transition: transform 0.15s ease;
}
.call-float:hover { transform: scale(1.05); }
.call-float-label { white-space: nowrap; }

/* =========================================================
   BACK TO TOP BUTTON
   ========================================================= */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 90px;
  width: 44px;
  height: 44px;
  background: var(--green-deep);
  color: var(--cream);
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  z-index: 900;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.back-to-top:hover { transform: translateY(-3px); }

/* =========================================================
   12. TESTIMONIALS
   ========================================================= */
.testimonials-inner { max-width: var(--max-width); margin: 0 auto; padding: 20px 24px 100px; }
.testimonials-inner h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--green-deep); margin: 8px 0 4px; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.testimonial-card { background: var(--card-bg); border-radius: var(--radius); padding: 28px; border-left: 4px solid var(--gold-wheat); }
.testimonial-card p { font-style: italic; color: #3d3f36; margin-bottom: 16px; }
.testimonial-card cite { font-style: normal; font-weight: 600; color: var(--brown-soil); font-size: 0.88rem; }

/* =========================================================
   13. FAQ
   ========================================================= */
.faq-inner { max-width: 820px; margin: 0 auto; padding: 20px 24px 100px; }
.faq-inner h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--green-deep); margin: 8px 0 36px; }
.faq-item { border-bottom: 1px solid rgba(36, 64, 42, 0.18); }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  padding: 20px 0;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--green-deep);
  cursor: pointer;
  text-align: left;
}
.faq-plus { font-size: 1.3rem; color: var(--brown-soil); transition: transform 0.2s ease; }
.faq-item.open .faq-plus { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-item.open .faq-answer { max-height: 200px; }
.faq-answer p { padding-bottom: 20px; color: #4a4d40; max-width: 60ch; }

/* =========================================================
   14. CONTACT
   ========================================================= */
.contact-inner { max-width: var(--max-width); margin: 0 auto; padding: 100px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact-text h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 18px; }
.contact-info { margin-top: 28px; }
.contact-info p { margin-bottom: 8px; color: rgba(246, 242, 231, 0.85); }
.contact-info a { text-decoration: underline; }
.contact-info em { font-style: normal; opacity: 0.6; font-size: 0.85rem; }

.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.social-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.social-links a { color: var(--cream); font-weight: 600; font-size: 0.85rem; text-decoration: underline; opacity: 0.9; }
.social-links a:hover { opacity: 1; }

.contact-forms { display: flex; flex-direction: column; gap: 32px; }

.contact-form { display: flex; flex-direction: column; gap: 6px; }
.contact-form label { font-size: 0.85rem; font-weight: 600; margin-top: 14px; }
.contact-form input, .contact-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: none;
  background: rgba(246, 242, 231, 0.95);
  color: var(--charcoal);
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid var(--gold-wheat); }
.contact-form button { margin-top: 22px; align-self: flex-start; }

.subscribe-form { border-top: 1px solid rgba(36, 64, 42, 0.15); padding-top: 24px; }
.subscribe-form label { font-size: 0.95rem; font-weight: 700; color: var(--green-deep); }
.subscribe-row { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.subscribe-row input {
  flex: 1;
  min-width: 180px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(36, 64, 42, 0.25);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.subscribe-row input:focus { outline: 3px solid var(--gold-wheat); }
.form-status { margin-top: 14px; font-size: 0.9rem; color: var(--gold-wheat); }

/* =========================================================
   15. FOOTER
   ========================================================= */
.site-footer { background: #1a2e1e; color: rgba(246, 242, 231, 0.75); }
.footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 40px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--cream); font-family: var(--font-display); font-weight: 600; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 0.9rem; }
.footer-links a:hover { color: var(--gold-wheat); }
.footer-copy { width: 100%; text-align: center; font-size: 0.8rem; margin-top: 12px; }

/* =========================================================
   16. ACCESSIBILITY
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .faq-plus, .faq-answer { transition: none; }
}

/* =========================================================
   17. RESPONSIVE RULES
   ========================================================= */
@media (max-width: 900px) {
  .band-inner { grid-template-columns: 1fr; }
  .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .band-inner.reverse { direction: ltr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
  .product-grid { grid-template-columns: 1fr; }
  .whatsapp-float { width: 50px; height: 50px; bottom: 16px; right: 16px; }
  .call-float { bottom: 76px; right: 16px; width: 50px; height: 50px; padding: 0; justify-content: center; }
  .call-float-label { display: none; }
  .back-to-top { width: 40px; height: 40px; bottom: 16px; right: 76px; }
  .lightbox-prev, .lightbox-next { width: 38px; height: 38px; }
}

@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--green-deep); flex-direction: column; align-items: flex-start;
    gap: 0; padding: 8px 24px 20px; border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; width: 100%; }
  .product-grid { grid-template-columns: 1fr; }
  .advisor-form { flex-direction: column; align-items: stretch; }
}
