/* =====================================================================
   products.css — styles used ONLY by the Products page (products.html and en/products.html)
   HOW TO EDIT: normally nothing to change here. Colours come from site.css.
   TABLE OF CONTENTS
   1. Banner layout   2. Walking sheep (colours + movement)   3. Product lines   4. Raw milk notice
   (the plain green banner itself is shared, in site.css)
   ===================================================================== */

/* ===== SECTION: Banner layout | room at the bottom for the walking sheep ===== */
.products-hero { --sheep-w: 210px; --edge-h: 84px; --sheep-lift: 16px; min-height: 0; }
.products-hero .hero-content { padding-block: var(--space-5) calc(var(--sheep-w) * 0.667 + var(--sheep-lift) + var(--space-3)); }
.hero-wave--tall { height: var(--edge-h); }
@media (min-width: 760px) {
  .products-hero { --sheep-w: 300px; --edge-h: 120px; --sheep-lift: 30px; }
}
/* Less empty space between the banner and the first product */
#meat { padding-top: var(--space-5); }
/* ===== END SECTION: Banner layout ===== */


/* ===== SECTION: Walking sheep | EDIT: colours of the sheep below ===== */
.walking-sheep {
  --sheep-wool-top: #FFFDF8;   /* fleece, top (in the light) */
  --sheep-wool-mid: #F1EBDF;   /* fleece, middle */
  --sheep-wool-low: #D8CEBB;   /* fleece, lower part (in shadow) */
  --sheep-tuft-edge: #B5A78D; /* soft shadow around each wool tuft */
  --sheep-face-light: #C99561; /* face, nose end */
  --sheep-face-mid: #A9733F;   /* face, middle */
  --sheep-face-dark: #7E5130;  /* face, top of head; ear */
  --sheep-ear-tip: #6A4226;
  --sheep-dark: #2E1D12;       /* eye, nostril */
}
.st-wool-top { stop-color: var(--sheep-wool-top); }
.st-wool-mid { stop-color: var(--sheep-wool-mid); }
.st-wool-low { stop-color: var(--sheep-wool-low); }
.st-shine { stop-color: #FFFFFF; }
.st-face-light { stop-color: var(--sheep-face-light); }
.st-face-mid { stop-color: var(--sheep-face-mid); }
.st-face-dark { stop-color: var(--sheep-face-dark); }
.st-ear-tip { stop-color: var(--sheep-ear-tip); }
.st-clump-edge { stop-color: var(--sheep-tuft-edge); }
.sheep-rim { fill: var(--sheep-wool-low); opacity: 0.8; }
.sheep-tufts { opacity: 0.6; }
.sheep-cheek { fill: var(--sheep-face-dark); opacity: 0.22; }
.sheep-muzzle { fill: var(--sheep-face-dark); opacity: 0.45; }
.sheep-dark { fill: var(--sheep-dark); }
.sheep-line, .sheep-lid { fill: none; stroke: var(--sheep-face-dark); stroke-width: 1.4; stroke-linecap: round; }
.sheep-line { stroke: var(--sheep-dark); stroke-width: 1.1; opacity: 0.7; }

/* The sheep crosses the whole banner from right to left, slowly, then starts again */
.sheep-track {
  position: absolute;
  left: 0;
  bottom: var(--sheep-lift); /* raised a little so more of the sheep shows; its legs stay hidden */
  z-index: 2;            /* behind the curved edge (z-index 3), so its legs are hidden */
  width: 100%;
  direction: ltr;        /* keeps the sheep at the start of its track on Arabic pages too */
  pointer-events: none;
  animation: sheep-cross 30s linear infinite;
  animation-delay: -9s;  /* already part-way across when the page opens */
}
.walking-sheep { display: block; width: var(--sheep-w); height: auto; overflow: visible; }

/* Walking feel: the body bobs with each step, the head nods, the ear swings, the eye blinks */
.sheep-body { transform-box: view-box; transform-origin: 180px 170px; animation: sheep-bob 1.2s ease-in-out infinite; }
.sheep-head { transform-box: view-box; transform-origin: 92px 66px; animation: sheep-nod 1.2s ease-in-out infinite; }
.sheep-ear  { transform-box: view-box; transform-origin: 74px 70px; animation: sheep-ear 1.2s ease-in-out infinite; animation-delay: -0.25s; }
.sheep-eye  { transform-box: fill-box; transform-origin: 50% 50%; animation: sheep-blink 5s infinite; }

@keyframes sheep-cross {
  from { transform: translateX(100%); }
  to   { transform: translateX(calc(-1 * var(--sheep-w))); }
}
@keyframes sheep-bob {
  0%, 50%, 100% { transform: translateY(0) rotate(0deg); }
  25%           { transform: translateY(-3px) rotate(-0.6deg); }
  75%           { transform: translateY(-3px) rotate(0.6deg); }
}
@keyframes sheep-nod {
  0%, 50%, 100% { transform: rotate(0deg); }
  25%, 75%      { transform: rotate(-3deg); }
}
@keyframes sheep-ear {
  0%, 50%, 100% { transform: rotate(0deg); }
  25%, 75%      { transform: rotate(6deg); }
}
@keyframes sheep-blink {
  0%, 92%, 100% { transform: scaleY(1); }
  95%           { transform: scaleY(0.1); }
}
/* Visitors who ask for less motion: the sheep simply stands still near the left side */
@media (prefers-reduced-motion: reduce) {
  .sheep-track { animation: none; transform: translateX(6%); }
  .walking-sheep * { animation: none !important; }
}
/* ===== END SECTION: Walking sheep ===== */


/* ===== SECTION: Product lines ===== */
.line-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.75rem;
  line-height: 1;
  color: var(--olive-700);
  margin-bottom: var(--space-2);
}
.line-list { list-style: none; margin: var(--space-3) 0 0; padding: 0; }
.line-list li {
  position: relative;
  padding-inline-start: var(--space-5);
  margin-bottom: var(--space-2);
  font-weight: 600;
}
.line-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.9em;
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: var(--lime-500);
}
.line-actions { margin-top: var(--space-4); }

/* On wide screens the photo alternates sides: lines 02 and 04 put it on the other side */
@media (min-width: 900px) {
  #milk .split > .media,
  #fertilizer .split > .media { order: 2; }
}
/* ===== END SECTION: Product lines ===== */

/* ===== SECTION: Raw milk notice ===== */
.notice {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  margin-top: var(--space-6);
  padding: var(--space-5);
  border: 3px solid var(--olive-700);
  border-radius: var(--radius-m);
  background: var(--paper);
}
.notice h3 { margin-bottom: var(--space-2); }
.notice p { margin: 0; }
.notice-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-700);
  color: var(--lime-500);
}
.notice-icon svg { width: 28px; height: 28px; }
/* Phones: icon above the text, so the text gets the full width */
@media (max-width: 600px) {
  .notice { flex-direction: column; }
}
/* ===== END SECTION: Raw milk notice ===== */
