/* ===========================================================================
   SOZO - design system + components
   Palette: deep agricultural green, trust blue, harvest yellow, clean white.
   =========================================================================== */

:root {
  --green-900: #0f3d22;
  --green-800: #13512c;
  --green-700: #17693a;
  --green-600: #1e8347;
  --green-500: #27a05a;
  --green-100: #e7f4ec;
  --blue-700: #0b4f8a;
  --blue-500: #1479c9;
  --blue-100: #e6f1fb;
  --yellow-500: #f2b705;
  --yellow-400: #ffc93c;
  --ink: #14231a;
  --muted: #5d6f63;
  --line: #e2eae4;
  --white: #ffffff;
  --surface: #f6faf7;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(15, 61, 34, .07);
  --shadow-md: 0 12px 34px rgba(15, 61, 34, .12);
  --shadow-lg: 0 24px 60px rgba(15, 61, 34, .18);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4, .display-title { font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }

a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-600); }

img { max-width: 100%; height: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 2000;
  background: var(--green-700); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible { outline: 3px solid var(--yellow-500); outline-offset: 2px; }

/* ------------------------------------------------------------- topbar --- */
.topbar {
  background: var(--green-900);
  color: #d7e6dc;
  font-size: .85rem;
  padding: .45rem 0;
}
.topbar a { color: #d7e6dc; transition: color .2s var(--ease); }
.topbar a:hover { color: var(--yellow-400); }
.topbar .divider { display: inline-block; width: 1px; height: 12px; background: rgba(255,255,255,.2); margin: 0 .9rem; vertical-align: middle; }
.topbar-social a { margin-left: .8rem; font-size: 1rem; }

/* ---------------------------------------------------------- navigation --- */
.site-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease), padding .3s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }
.navbar { padding: .65rem 0; }
.navbar-brand img { display: block; height: 82px; width: auto; }
.site-footer img[src$="logo.png"] { height: 72px; width: auto; }
@media (max-width: 991.98px) { .navbar-brand img { height: 60px; } }

.navbar-nav .nav-link {
  position: relative;
  font-weight: 600;
  color: var(--green-900);
  padding: .6rem .85rem;
  transition: color .25s var(--ease);
}
.navbar-nav .nav-link::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .28rem;
  height: 2px; background: var(--blue-500);
  transform: scaleX(0); transform-origin: left;
  transition: transform .32s var(--ease);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--blue-700); }
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { transform: scaleX(1); }

.dropdown-menu {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: .4rem;
  animation: dropIn .22s var(--ease);
}
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.dropdown-item { border-radius: 9px; font-weight: 500; padding: .55rem .8rem; }
.dropdown-item:hover { background: var(--green-100); color: var(--green-800); }

/* header search */
.header-search { position: relative; display: flex; }
.header-search .form-control {
  border-radius: 999px 0 0 999px; border-right: 0; min-width: 190px; height: 42px;
}
.btn-search {
  border-radius: 0 999px 999px 0; background: var(--green-700); color: #fff;
  border: 1px solid var(--green-700); padding-inline: 1rem;
}
.btn-search:hover { background: var(--green-800); color: #fff; }
.search-suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); max-height: 320px; overflow: auto;
}
.search-suggest a { display: block; padding: .55rem .8rem; font-size: .9rem; border-bottom: 1px solid var(--line); }
.search-suggest a:last-child { border-bottom: 0; }
.search-suggest a:hover { background: var(--green-100); }

/* -------------------------------------------------------------- buttons --- */
.btn { border-radius: 999px; font-weight: 700; padding: .7rem 1.5rem; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green-700); border-color: var(--green-700); }
.btn-primary:hover, .btn-primary:focus { background: var(--green-800); border-color: var(--green-800); box-shadow: var(--shadow-sm); }
.btn-outline-light-green { border: 2px solid #fff; color: #fff; }
.btn-outline-light-green:hover { background: #fff; color: var(--green-800); }
.btn-accent { background: var(--yellow-500); border-color: var(--yellow-500); color: #23200a; }
.btn-accent:hover { background: var(--yellow-400); border-color: var(--yellow-400); color: #23200a; }
.btn-blue { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }
.btn-blue:hover { background: var(--blue-500); border-color: var(--blue-500); color: #fff; }

/* ---------------------------------------------------------------- hero --- */
.hero { position: relative; height: min(88vh, 780px); min-height: 460px; overflow: hidden; background: var(--green-900); }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity 1s var(--ease), visibility 1s;
  display: grid; place-items: center;
}
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-slide img, .hero-slide video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06); transition: transform 8s linear;
}
/* Poster fallback sits under the video and only shows when the video can't play. */
.hero-slide .hero-video-fallback { opacity: 0; }
.hero-slide.video-unavailable .hero-video { display: none; }
.hero-slide.video-unavailable .hero-video-fallback { opacity: 1; }
.hero-slide.active img, .hero-slide.active video { transform: scale(1); }

.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(15,61,34,.88) 0%, rgba(15,61,34,.55) 45%, rgba(11,79,138,.35) 100%);
}
.hero-content { position: relative; z-index: 2; color: #fff; max-width: 720px; }
.hero-eyebrow {
  display: inline-block; background: rgba(242,183,5,.18); color: var(--yellow-400);
  border: 1px solid rgba(242,183,5,.5); border-radius: 999px;
  padding: .32rem 1rem; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.hero h1 { font-size: clamp(2rem, 5.2vw, 3.8rem); margin: 1rem 0 .6rem; }
.hero p.lead { font-size: clamp(1rem, 2vw, 1.3rem); color: #e3efe7; }
.hero-slide.active .hero-content > * { animation: heroUp .8s var(--ease) both; }
.hero-slide.active .hero-content > *:nth-child(2) { animation-delay: .12s; }
.hero-slide.active .hero-content > *:nth-child(3) { animation-delay: .24s; }
.hero-slide.active .hero-content > *:nth-child(4) { animation-delay: .36s; }
@keyframes heroUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); color: #fff;
  display: grid; place-items: center; transition: background .25s var(--ease);
}
.hero-nav:hover { background: var(--green-700); }
.hero-prev { left: 18px; } .hero-next { right: 18px; }
.hero-dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: .5rem; }
.hero-dots button { width: 30px; height: 4px; border: 0; border-radius: 4px; background: rgba(255,255,255,.4); }
.hero-dots button.active { background: var(--yellow-500); }

/* ----------------------------------------------------------- sections --- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 760px; margin: 0 auto 2.6rem; text-align: center; }
.section-eyebrow {
  color: var(--green-600); font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; font-size: .78rem;
}
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); margin: .5rem 0 .7rem; }
.section-head p { color: var(--muted); margin: 0; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-slide, .hero-slide img { transition: none !important; animation: none !important; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* -------------------------------------------------------------- cards --- */
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.6rem; height: 100%; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--green-500); }
.feature-icon {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: var(--green-100); color: var(--green-700); font-size: 1.5rem; margin-bottom: 1rem;
}

.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; height: 100%; display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--green-100); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.07); }
.product-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--yellow-500); color: #23200a; font-size: .72rem; font-weight: 800;
  padding: .25rem .7rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em;
}
.product-body { padding: 1.15rem 1.25rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.product-cat { color: var(--blue-700); font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.product-title { font-size: 1.1rem; margin: 0; }
.product-title a { color: var(--ink); }
.product-title a:hover { color: var(--green-700); }
.product-desc { color: var(--muted); font-size: .92rem; margin: 0; }
.product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.product-price { font-weight: 800; color: var(--green-800); }
.stock { font-size: .78rem; font-weight: 700; padding: .18rem .6rem; border-radius: 999px; }
.stock.in { background: var(--green-100); color: var(--green-700); }
.stock.out { background: #fdeaea; color: #b3261e; }
.stock.pre { background: var(--blue-100); color: var(--blue-700); }

/* ------------------------------------------------------------ counters --- */
.stats { background: linear-gradient(120deg, var(--green-800), var(--blue-700)); color: #fff; }
.stat-value { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; color: var(--yellow-400); }
.stat-label { color: #dbe9e0; font-size: .95rem; }

/* -------------------------------------------------------------- news ---- */
.news-card { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; height: 100%; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.news-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--green-100); }
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news-card:hover .news-media img { transform: scale(1.06); }
.news-body { padding: 1.15rem 1.25rem 1.35rem; }
.news-meta { font-size: .8rem; color: var(--muted); display: flex; gap: .8rem; margin-bottom: .5rem; }
.news-cat { color: var(--blue-700); font-weight: 700; }

/* ------------------------------------------------------------ partners --- */
.partner-track { display: flex; gap: 3rem; align-items: center; width: max-content; animation: marquee 32s linear infinite; }
.partner-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.partner-marquee:hover .partner-track { animation-play-state: paused; }
.partner-track img { height: 56px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .72; transition: filter .3s, opacity .3s; }
.partner-track img:hover { filter: none; opacity: 1; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------------------------------------------------------- breadcrumb --- */
.bc-wrap { background: var(--surface); border-bottom: 1px solid var(--line); padding: .8rem 0; font-size: .88rem; }
.breadcrumb { margin: 0; }

.page-hero {
  background: linear-gradient(115deg, var(--green-900), var(--green-700) 60%, var(--blue-700));
  color: #fff; padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
.page-hero p { color: #d9e8de; max-width: 660px; margin: .6rem 0 0; }

/* --------------------------------------------------------------- forms --- */
.form-control, .form-select { border-radius: 12px; border: 1px solid var(--line); padding: .7rem .9rem; }
.form-control:focus, .form-select:focus { border-color: var(--green-500); box-shadow: 0 0 0 .2rem rgba(39,160,90,.15); }
.form-label { font-weight: 600; font-size: .92rem; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.2rem, 3vw, 2.2rem); box-shadow: var(--shadow-sm); }
.form-feedback.ok { color: var(--green-700); }
.form-feedback.err { color: #b3261e; }

/* ---------------------------------------------------------- yield bars --- */
.yield-bar { height: 14px; border-radius: 999px; background: var(--green-100); overflow: hidden; }
.yield-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--green-600), var(--yellow-500)); }

/* -------------------------------------------------------------- footer --- */
.site-footer { background: var(--green-900); color: #d7e6dc; padding: 3.4rem 0 1.6rem; margin-top: 0; }
.footer-title { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: 1rem; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links a, .footer-contact a { color: #c7d6cb; }
.footer-links li, .footer-contact li { margin-bottom: .5rem; font-size: .92rem; }
.footer-links a:hover, .footer-contact a:hover { color: var(--yellow-400); }
.footer-social a { color: #c7d6cb; font-size: 1.15rem; margin-right: .8rem; }
.footer-social a:hover { color: var(--yellow-400); }
.footer-map iframe { width: 100%; height: 130px; border: 0; border-radius: 12px; }
.footer-rule { border-color: rgba(255,255,255,.12); margin: 2.2rem 0 1.2rem; }
.footer-legal a { color: #c7d6cb; margin-left: 1rem; }

.back-to-top {
  position: fixed; right: 18px; bottom: 96px; z-index: 1040;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--green-700); color: #fff; box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.back-to-top.show { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); }

/* ------------------------------------------------------------- chatbot --- */
.chat-widget { position: fixed; right: 18px; bottom: 18px; z-index: 1050; }
.chat-toggle {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--green-700); color: #fff; border: 0; border-radius: 999px;
  padding: .75rem 1.15rem; font-weight: 700; box-shadow: var(--shadow-md);
  transition: transform .25s var(--ease), background .25s;
}
.chat-toggle:hover { transform: translateY(-3px); background: var(--green-800); }
.chat-toggle-label { font-size: .9rem; }
@media (max-width: 480px) { .chat-toggle-label { display: none; } }

.chat-panel {
  width: min(370px, calc(100vw - 28px)); height: min(520px, 74vh);
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden;
  animation: chatIn .28s var(--ease);
}
@keyframes chatIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.chat-head { background: var(--green-800); color: #fff; padding: .85rem 1rem; display: flex; align-items: center; justify-content: space-between; }
.chat-head small { display: block; opacity: .8; font-size: .76rem; }
.chat-close { background: transparent; border: 0; color: #fff; font-size: 1rem; }
.chat-log { flex: 1; overflow-y: auto; padding: 1rem; background: var(--surface); display: flex; flex-direction: column; gap: .6rem; }
.chat-msg { max-width: 85%; padding: .6rem .85rem; border-radius: 14px; font-size: .9rem; line-height: 1.5; }
.chat-msg.bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.chat-msg.user { background: var(--green-700); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-typing { display: inline-flex; gap: 4px; }
.chat-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.chat-typing i:nth-child(2) { animation-delay: .2s; }
.chat-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
.chat-quick { display: flex; flex-wrap: wrap; gap: .35rem; padding: .5rem .75rem 0; }
.chat-quick button {
  border: 1px solid var(--green-500); background: #fff; color: var(--green-700);
  border-radius: 999px; padding: .25rem .7rem; font-size: .78rem;
}
.chat-quick button:hover { background: var(--green-100); }
.chat-form { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid var(--line); }
.chat-form .btn { padding: .55rem .9rem; }

/* --------------------------------------------------------------- misc --- */
.gallery-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gallery-grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-grid figure:hover img { transform: scale(1.07); }
.ratio-video { aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; }
.ratio-video iframe, .ratio-video video { width: 100%; height: 100%; border: 0; }
.prose h2 { margin-top: 2rem; font-size: 1.5rem; }
.prose img { border-radius: var(--radius); }
.prose ul { padding-left: 1.2rem; }

/* ------------------------------------------- card carousel & farm show -- */
.carousel-wrap { position: relative; }
.carousel-track { display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding: .25rem .25rem 1rem; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-item-col { flex: 0 0 calc(25% - 1.125rem); scroll-snap-align: start; }
@media (max-width: 1199px) { .carousel-item-col { flex-basis: calc(33.333% - 1rem); } }
@media (max-width: 991px)  { .carousel-item-col { flex-basis: calc(50% - .75rem); } }
@media (max-width: 575px)  { .carousel-item-col { flex-basis: 85%; } }
.carousel-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: var(--green-800);
  box-shadow: 0 6px 20px rgba(0,0,0,.16); display: grid; place-items: center; font-size: 1.2rem; }
.carousel-nav:disabled { opacity: .35; cursor: default; }
.carousel-prev { left: -14px; }
.carousel-next { right: -14px; }
.farm-show { position: relative; max-width: 1140px; margin: 0 auto; aspect-ratio: 16 / 8;
  border-radius: 18px; overflow: hidden; box-shadow: 0 18px 48px rgba(0,0,0,.18); }
.farm-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.06);
  transition: opacity 1s var(--ease), transform 6s linear; }
.farm-slide.active { opacity: 1; transform: scale(1); }
.farm-slide img { width: 100%; height: 100%; object-fit: cover; }
.farm-slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.5rem 1.1rem;
  color: #fff; font-size: .95rem; background: linear-gradient(transparent, rgba(0,0,0,.72)); }
@media (prefers-reduced-motion: reduce) { .farm-slide { transition: none; transform: none; } }

/* ------------------------------------- image loading & fallback visuals -- */
/* Shimmering skeleton shown while slider / carousel imagery is still loading. */
.media-skeleton { position: relative; background: linear-gradient(110deg,
    var(--green-50, #eef5ee) 8%, #ffffff 22%, var(--green-50, #eef5ee) 36%);
  background-size: 220% 100%; }
.media-skeleton.is-loading { animation: media-shimmer 1.4s linear infinite; }
.media-skeleton.media-ready { animation: none; background: none; }
.media-skeleton.is-loading > img { opacity: 0; }
.media-skeleton > img { transition: opacity .45s var(--ease, ease); }
.media-skeleton > img.is-loaded { opacity: 1; }
/* Placeholder swapped in for missing or very slow images. */
.is-fallback > img, img.is-fallback { object-fit: cover; filter: saturate(.85); }
.hero-slide.is-fallback::after, .farm-slide.is-fallback::after {
  content: ''; position: absolute; inset: 0; background: linear-gradient(115deg,
    rgba(20,74,44,.55), rgba(13,71,120,.45)); pointer-events: none; }
@keyframes media-shimmer { from { background-position: 220% 0; } to { background-position: -20% 0; } }
@media (prefers-reduced-motion: reduce) { .media-skeleton.is-loading { animation: none; } }

/* ============================================================= layout CLS ==
   Reserved space for every media box so images never push content around
   while they load (Cumulative Layout Shift protection).
   ========================================================================= */
img { max-width: 100%; }
img[width][height] { height: auto; }
/* Brand mark keeps a fixed height in the header and footer. */
.navbar-brand img { height: 82px !important; width: auto; }
.site-footer img { height: 72px !important; width: auto; }
@media (max-width: 991.98px) { .navbar-brand img { height: 60px !important; } }
/* Images that fill a ratio-reserved box must ignore the intrinsic height. */
.hero-slide img, .hero-slide video,
.farm-slide img,
.news-media img, .product-media img,
.gallery-grid img, .ratio-video img { height: 100% !important; width: 100%; }

.hero-slides { position: absolute; inset: 0; }
.hero { contain: layout paint; }
.hero-slide { contain: layout paint; }
.farm-show { contain: layout paint; }
.farm-show::before { content: ""; display: block; padding-top: 50%; }
.news-media, .product-media, .gallery-grid figure, .ratio-video { contain: layout paint; }
/* Reserve the carousel row height so cards do not jump when images resolve. */
.carousel-track { min-height: 1px; }
.carousel-item-col { display: flex; }
.carousel-item-col > * { width: 100%; }
.partner-track img, .partner-logo img { width: auto; height: 56px; object-fit: contain; }

/* ====================================================== carousel a11y ====== */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.hero-nav:focus-visible, .carousel-nav:focus-visible,
.slider-playpause:focus-visible, .hero-dots button:focus-visible,
.carousel-track:focus-visible {
  outline: 3px solid var(--yellow-400, #ffd043);
  outline-offset: 3px;
}
/* Slider regions themselves are focusable so keyboard users can drive them. */
.hero:focus-visible, .farm-show:focus-visible, .carousel-wrap:focus-visible {
  outline: 3px solid var(--yellow-400, #ffd043);
  outline-offset: -3px;
}
/* Links and buttons inside slides need a high-contrast ring over imagery. */
.hero-slide a:focus-visible, .farm-slide a:focus-visible,
.carousel-item-col a:focus-visible, .carousel-item-col button:focus-visible {
  outline: 3px solid var(--yellow-400, #ffd043);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(0, 0, 0, .45);
  border-radius: 8px;
}
/* Controls stay solid (not translucent) whenever focus is inside the slider. */
.hero:focus-within .hero-nav, .hero-nav:focus-visible,
.hero:focus-within .slider-playpause, .slider-playpause:focus-visible,
.farm-show:focus-within .carousel-nav, .farm-show:focus-within .slider-playpause {
  background: var(--green-700); border-color: #fff;
}
.hero-dots button { position: relative; cursor: pointer; }
.hero-dots button::after { content: ""; position: absolute; inset: -12px -4px; }
.hero-dots button[aria-selected="true"] { background: var(--yellow-500); }
.hero-dots button:focus-visible { outline-offset: 6px; }
.slider-playpause {
  position: absolute; z-index: 6; right: 18px; bottom: 18px;
  width: 40px; height: 40px; min-width: 40px; border-radius: 50%;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.4); color: #fff;
  display: grid; place-items: center; cursor: pointer;
}
.slider-playpause:hover { background: var(--green-700); }
.farm-show .slider-playpause { right: 14px; bottom: 14px; }
@media (max-width: 575px) { .hero-nav, .carousel-nav, .slider-playpause { min-width: 44px; min-height: 44px; } }
@media (forced-colors: active) {
  .hero-nav:focus-visible, .carousel-nav:focus-visible, .slider-playpause:focus-visible,
  .hero-dots button:focus-visible, .hero:focus-visible, .farm-show:focus-visible { outline: 3px solid Highlight; }
}


/* =====================================================================
 * Compact scale (2026-08-05): tighter sections, smaller display type and
 * smaller call-to-action buttons. Navigation sizing is deliberately left
 * untouched so the menu keeps its comfortable tap targets.
 * ================================================================== */
.section { padding: clamp(2rem, 4.2vw, 3.25rem) 0; }
.section-head { margin-bottom: 1.6rem; }
.section-head h2 { font-size: clamp(1.35rem, 2.3vw, 1.9rem); margin: .35rem 0 .5rem; }
.section-head p { font-size: .95rem; }
.page-hero { padding: clamp(1.6rem, 3.4vw, 2.6rem) 0; }
.page-hero h1 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.prose h2 { margin-top: 1.4rem; font-size: 1.25rem; }
.stat-value { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.hero { height: min(66vh, 560px); min-height: 380px; }
.hero h1 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); margin: .6rem 0 .4rem; }
.hero p.lead { font-size: clamp(.95rem, 1.2vw, 1.05rem); }

/* Buttons: smaller everywhere except the header/menu buttons. */
.btn:not(.nav-icon-btn):not(.btn-search):not(.btn-cta) { padding: .45rem 1rem; font-size: .9rem; }
.btn-lg:not(.nav-icon-btn):not(.btn-search):not(.btn-cta) { padding: .55rem 1.15rem; font-size: .95rem; }
.btn-sm { padding: .35rem .8rem !important; font-size: .82rem !important; }
.form-card { padding: clamp(1rem, 2vw, 1.5rem); }
.row.g-5 { --bs-gutter-y: 1.75rem; --bs-gutter-x: 1.75rem; }

/* ------------------------------------------ split hero + seasonal seeds --- */
.hero-split { --hero-h: min(58vh, 480px); display: grid; grid-template-columns: 1fr; gap: 0; align-items: stretch; }
.hero-split .hero { height: var(--hero-h); min-height: 320px; }
.hero-split .hero .container { max-width: none; padding-inline: clamp(1rem, 4vw, 2.5rem); }
.seasonal-ads {
  background: var(--green-900); color: #fff; padding: 1rem 1.1rem;
  display: flex; flex-direction: column; gap: .7rem; min-width: 0;
}
.seasonal-ads h2 { font-size: 1.05rem; margin: 0; color: var(--yellow-400); }
.seasonal-ads .seasonal-sub { font-size: .8rem; color: #cfe1d5; margin: 0; }
.seasonal-ad {
  display: flex; gap: .65rem; align-items: center; background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: .5rem; color: #fff;
}
.seasonal-ad:hover { background: rgba(255,255,255,.14); color: #fff; }
.seasonal-ad img { width: 56px; height: 56px; object-fit: cover; border-radius: 9px; flex: 0 0 auto; }
.seasonal-ad-name { font-weight: 700; font-size: .86rem; line-height: 1.25; }
.seasonal-ad-price { font-size: .78rem; color: var(--yellow-400); }
@media (min-width: 992px) {
  .hero-split { grid-template-columns: minmax(0, 1fr) 300px; }
  /* never taller than the slideshow: pin the height and scroll the overflow */
  .seasonal-ads {
    height: var(--hero-h); min-height: 320px; max-height: var(--hero-h);
    overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.35) transparent;
  }
  .seasonal-ads::-webkit-scrollbar { width: 6px; }
  .seasonal-ads::-webkit-scrollbar-thumb { background: rgba(255,255,255,.3); border-radius: 999px; }
}


/* --------------------------------------------------- WhatsApp order CTA --- */
.btn-whatsapp, .btn-whatsapp:hover, .btn-whatsapp:focus {
  background: #25d366; border-color: #25d366; color: #06331a;
}
.btn-whatsapp:hover { background: #1fb857; border-color: #1fb857; }
