/* ========== Poultry page (poultry.html) ==========
   Brand colors only. Fonts: Barlow Semi Condensed (headings), Source Sans 3 (text). */
:root {
  --pp-blue: #0D6EFD;
  --pp-charcoal: #212529;
  --pp-black: #000000;
  --pp-grey: #808080;
  --pp-silver: #ABABAB;
  --pp-mist: #B5B5B5;
  --pp-white: #FFFFFF;
  --pp-head: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  --pp-text: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --pp-wrap: 1180px;
}

.pp-body *, .pp-body *::before, .pp-body *::after { box-sizing: border-box; }
body.pp-body {
  overflow-x: hidden;
  font-family: var(--pp-text);
  font-variant: normal;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--pp-charcoal);
  background: var(--pp-white);
}
.pp-body h1, .pp-body h2, .pp-body h3, .pp-body h4, .pp-body h5 {
  font-family: var(--pp-head);
  font-variant: normal;
  text-shadow: none;
  letter-spacing: 0;
}
.pp-body .navbar-brand strong { font-family: var(--pp-head); font-size: 1.35rem; }
.pp-body .nav-link, .pp-body .dropdown-item { font-family: var(--pp-head); font-weight: 600; font-size: 1.1rem; }

/* The site stylesheet centers every h2 and sets lighter weights; keep this page's headings left and bold. */
.pp-body main h1, .pp-body main h2, .pp-body main h3 { text-align: left; font-weight: 700; }

.pp-wrap { max-width: var(--pp-wrap); margin: 0 auto; padding: 0 24px; }
.pp-sec { padding: 88px 0; }
.pp-h2 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 700; line-height: 1.02; margin: 0 0 14px; max-width: 21ch; }
.pp-h2.pp-oneline { max-width: none; margin-bottom: 28px; }
.pp-lede { font-size: 1.2rem; max-width: 60ch; color: #3a3f44; margin: 0 0 32px; }

.pp-btn {
  display: inline-block; font-family: var(--pp-head); font-weight: 700; font-size: 1.15rem;
  padding: 13px 26px; border-radius: 3px; text-decoration: none; text-align: center; border: 2px solid var(--pp-blue);
  background: var(--pp-blue); color: var(--pp-white); cursor: pointer; transition: background .15s, color .15s;
}
.pp-btn:hover { background: var(--pp-white); color: var(--pp-blue); }
.pp-btn.pp-ghost { background: transparent; border-color: var(--pp-white); color: var(--pp-white); }
.pp-btn.pp-ghost:hover { background: var(--pp-white); color: var(--pp-charcoal); }
.pp-body a:focus-visible, .pp-body button:focus-visible, .pp-body input:focus-visible,
.pp-body select:focus-visible, .pp-body textarea:focus-visible { outline: 3px solid var(--pp-blue); outline-offset: 3px; }

/* ---------- Hero ---------- */
.pp-hero { position: relative; min-height: 86vh; display: flex; align-items: flex-end; color: var(--pp-white); overflow: hidden; background: var(--pp-charcoal); }
.pp-hero video, .pp-hero .pp-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.pp-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(33,37,41,.35) 0%, rgba(33,37,41,.8) 100%); }
.pp-hero-in { position: relative; z-index: 2; width: 100%; padding-bottom: 64px; }
.pp-hero h1 { font-size: clamp(3.4rem, 9vw, 7.6rem); font-weight: 700; line-height: .9; margin: 0 0 22px; }
.pp-hero h1 span { display: block; }
.pp-hero p { font-size: 1.3rem; max-width: 46ch; margin: 0 0 30px; color: #e9e9e9; }
.pp-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.pp-haze { display: none; }
/* Desktop: the footage sits on the right at its own shape, sharp. Behind the headline, a blurred
   copy of the same footage (drawn by poultry.js) fills the hero, tinted charcoal (#212529). */
@media (min-width: 1100px) and (min-aspect-ratio: 3/2) {
  .pp-hero { --pp-col: clamp(400px, 29vw, 500px); --pp-blk: calc(max(24px, (100vw - var(--pp-wrap)) / 2 + 24px) + var(--pp-col) + 40px); background: var(--pp-charcoal); }
  .pp-hero video, .pp-hero .pp-poster { inset: 0 0 0 auto; width: auto; max-width: 100%; aspect-ratio: 4 / 3; z-index: 1;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 140px); mask-image: linear-gradient(90deg, transparent 0, #000 140px); }
  .pp-haze { display: block; position: absolute; top: -40px; left: -40px; width: calc(100% + 80px); height: calc(100% + 80px); filter: blur(18px) saturate(.85); }
  .pp-hero::after { z-index: 1; background: linear-gradient(90deg, rgba(33,37,41,.78) 0, rgba(33,37,41,.5) calc(var(--pp-blk) - 60px), rgba(33,37,41,0) calc(var(--pp-blk) + 260px)); }
  .pp-hero-in .pp-wrap > * { max-width: var(--pp-col); }
  .pp-hero-in .pp-wrap > .pp-hero-ctas { max-width: none; }
  .pp-hero h1 { font-size: clamp(3.2rem, 5.2vw, 5.6rem); }
}
}
.pp-reveal span, .pp-reveal-after { opacity: 0; transform: translateY(28px); animation: ppRise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.pp-reveal span:nth-child(2) { animation-delay: .18s; }
.pp-reveal-after { animation-delay: .45s; }
@keyframes ppRise { to { opacity: 1; transform: none; } }

/* ---------- IPPE strip (delete after the show) ---------- */
.pp-ippe { background: var(--pp-blue); color: var(--pp-white); }
.pp-ippe .pp-wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: start; padding-top: 22px; padding-bottom: 22px; }
.pp-ippe h2 { font-size: 1.9rem; margin: 0; line-height: 1; white-space: nowrap; }
.pp-ippe h2 small { display: block; max-width: 28ch; white-space: normal; font-family: var(--pp-text); font-size: .95rem; font-weight: 400; opacity: .9; margin-top: 4px; }
.pp-ippe dl { display: grid; grid-template-columns: repeat(3, max-content); gap: 8px 32px; margin: 0; justify-content: center; }
.pp-ippe dt { font-weight: 400; font-size: .95rem; }
.pp-ippe dd { font-family: var(--pp-head); font-weight: 700; font-size: 1.2rem; margin: 0; white-space: nowrap; }
.pp-ippe .pp-btn { background: var(--pp-white); color: var(--pp-blue); border-color: var(--pp-white); }
.pp-ippe .pp-btn:hover { background: transparent; color: var(--pp-white); }

.pp-ippe .pp-times { display: flex; flex-direction: column; font-size: 1.05rem; line-height: 1.35; white-space: nowrap; }

/* ---------- Farm map ---------- */
.pp-map-sec { background: #f2f2f2; }
.pp-map-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 28px; align-items: start; }
.pp-map { position: relative; background: var(--pp-charcoal); }
.pp-map svg { display: block; width: 100%; height: auto; }
.pp-toggle { display: inline-flex; border: 2px solid var(--pp-charcoal); border-radius: 3px; margin-bottom: 16px; }
.pp-toggle button { font-family: var(--pp-head); font-weight: 700; font-size: 1.05rem; padding: 9px 18px; background: var(--pp-white); color: var(--pp-charcoal); border: 0; cursor: pointer; }
.pp-toggle button[aria-pressed="true"] { background: var(--pp-charcoal); color: var(--pp-white); }
/* While the map switches views on its own, a bar fills under the active view to show it is timed. */
.pp-toggle button { position: relative; }
.pp-toggle.is-auto button[aria-pressed="true"]::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--pp-blue); transform-origin: left; animation: ppAutoBar 4.5s linear forwards; }
@keyframes ppAutoBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.pp-hot { cursor: pointer; }
.pp-hot circle.pp-ring { fill: var(--pp-white); stroke: var(--pp-charcoal); stroke-width: 5; transition: fill .15s; }
.pp-hot text { font-family: var(--pp-head); font-weight: 700; font-size: 42px; fill: var(--pp-charcoal); pointer-events: none; }
.pp-hot:hover circle.pp-ring, .pp-hot[aria-pressed="true"] circle.pp-ring { fill: var(--pp-blue); stroke: var(--pp-blue); }
.pp-hot:hover text.pp-n, .pp-hot[aria-pressed="true"] text.pp-n { fill: var(--pp-white); }
.pp-hot:focus { outline: none; }
.pp-hot:focus-visible circle.pp-ring { stroke: var(--pp-blue); stroke-width: 10; }
.pp-paths path { fill: none; stroke: var(--pp-white); stroke-width: 6; stroke-dasharray: 16 14; filter: drop-shadow(0 1px 1px rgba(0,0,0,.7)); }
.pp-paths .pp-bird { fill: var(--pp-white); stroke: var(--pp-black); stroke-width: 2; }
.pp-patrol { fill: var(--pp-blue); stroke: var(--pp-white); stroke-width: 2; }
.pp-in, .pp-out { transition: opacity .6s ease; }
.pp-out { opacity: 0; }
.pp-map.is-covered .pp-in { opacity: 0; }
.pp-map.is-covered .pp-out { opacity: 1; }
.pp-out path { stroke: var(--pp-mist); }
.pp-zone { fill: var(--pp-blue); fill-opacity: .12; stroke: var(--pp-blue); stroke-width: 8; stroke-dasharray: 4 20; stroke-linecap: round; }
.pp-panel { background: var(--pp-white); border: 1px solid var(--pp-mist); border-top: 5px solid var(--pp-blue); }
.pp-panel img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; background: var(--pp-silver); transition: opacity .22s ease; }
.pp-panel { overflow: hidden; }
.pp-panel-body { padding: 20px 22px 24px; }
.pp-panel h3 { font-size: 1.7rem; margin: 0 0 6px; }
.pp-panel p { margin: 0; }
.pp-map-note { font-size: .95rem; color: var(--pp-charcoal); margin-top: 12px; }

.pp-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.pp-chip { font-family: var(--pp-head); font-weight: 700; font-size: 1.05rem; min-height: 44px; padding: 8px 14px; border: 2px solid var(--pp-charcoal); background: var(--pp-white); color: var(--pp-charcoal); border-radius: 3px; cursor: pointer; }
.pp-chip[aria-pressed="true"] { background: var(--pp-blue); border-color: var(--pp-blue); color: var(--pp-white); }
.pp-check-row { display: flex; gap: 10px; align-items: center; }
.pp-form .pp-check-row input { width: 20px; padding: 0; height: 20px; flex: 0 0 auto; }
.pp-form .pp-check-row label { margin: 0; font-weight: 400; flex: 1 1 auto; min-width: 0; }
.pp-form > * { min-width: 0; }

.pp-credit { display: block; font-size: .8rem; margin-top: 4px; }

/* ---------- Steps ---------- */
.pp-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: step; border-top: 3px solid var(--pp-charcoal); }
.pp-steps li { padding: 26px 28px 8px 0; position: relative; }
.pp-steps li::before { counter-increment: step; content: counter(step); font-family: var(--pp-head); font-weight: 700; font-size: 4.2rem; line-height: 1; color: var(--pp-blue); display: block; margin-bottom: 10px; }
.pp-steps h3 { font-size: 1.6rem; margin: 0 0 6px; }
.pp-steps p { margin: 0; max-width: 32ch; }

/* ---------- Video band ---------- */
.pp-band { position: relative; color: var(--pp-white); background: var(--pp-black); overflow: hidden; min-height: min(56.25vw, 820px); display: flex; align-items: center; }
.pp-band-in { width: 100%; }
.pp-band video, .pp-band .pp-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 55%; }
.pp-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.62) 42%, rgba(0,0,0,0) 72%); }
.pp-band-in { position: relative; z-index: 2; padding: 120px 0; }
.pp-band-in .pp-wrap { display: flex; flex-direction: column; align-items: flex-end; }
.pp-band-in .pp-wrap > * { width: min(100%, 470px); max-width: none; }
.pp-band h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 700; line-height: .98; margin: 0 0 18px; max-width: 13ch; }
.pp-band p { font-size: 1.2rem; max-width: 44ch; color: #e6e6e6; margin: 0 0 26px; }
.pp-band-line { font-size: 1.25rem; color: var(--pp-white); border-left: 4px solid var(--pp-blue); padding-left: 14px; max-width: 40ch; }

/* ---------- Gallery ---------- */
.pp-gal-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.pp-gal-nav { display: flex; gap: 8px; }
.pp-gal-nav button { width: 48px; height: 48px; border: 2px solid var(--pp-charcoal); background: var(--pp-white); border-radius: 3px; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.pp-gal-nav button:hover { background: var(--pp-charcoal); color: var(--pp-white); }
.pp-gal { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 24px 18px max(24px, calc((100vw - var(--pp-wrap)) / 2 + 24px)); scroll-padding-left: max(24px, calc((100vw - var(--pp-wrap)) / 2 + 24px)); scrollbar-width: thin; }
.pp-gal figure { flex: 0 0 auto; width: min(78vw, 520px); margin: 0; scroll-snap-align: start; }
.pp-gal figure.pp-tall { width: min(60vw, 330px); }
.pp-gal img { width: 100%; height: 380px; object-fit: cover; display: block; background: var(--pp-silver); }
.pp-gal figcaption { font-size: .95rem; color: var(--pp-charcoal); padding-top: 8px; }

/* ---------- Biosecurity ---------- */
.pp-bio { background: var(--pp-charcoal); color: var(--pp-white); }
.pp-bio .pp-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.pp-bio .pp-lede { color: var(--pp-mist); }
.pp-check { list-style: none; padding: 0; margin: 0; }
.pp-check li { padding: 16px 0 16px 40px; border-bottom: 1px solid #3c4248; position: relative; font-size: 1.2rem; }
.pp-check li::before { content: ""; position: absolute; left: 0; top: 22px; width: 18px; height: 10px; border-left: 3px solid var(--pp-blue); border-bottom: 3px solid var(--pp-blue); transform: rotate(-45deg); }

/* ---------- Proof ---------- */
.pp-proof { padding: 44px 0; border-bottom: 1px solid var(--pp-mist); }
.pp-proof .pp-wrap { display: grid; grid-template-columns: 1fr; gap: 22px; }
.pp-proof h2 { font-size: 1.5rem; line-height: 1.1; margin: 0; }
.pp-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 44px; }
.pp-logos img { width: auto; height: var(--h, 48px); display: block; }
.pp-logos .pp-wordmark { font-family: var(--pp-head); font-weight: 700; font-size: 1.25rem; text-align: center; color: var(--pp-grey); }

/* ---------- Inquiry ---------- */
.pp-ask { background: #f2f2f2; border-top: 5px solid var(--pp-blue); }
.pp-ask .pp-wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; }
.pp-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pp-form label { display: block; font-weight: 600; font-size: .98rem; margin-bottom: 5px; }
.pp-form .pp-full { grid-column: 1 / -1; }
.pp-form input, .pp-form select, .pp-form textarea { width: 100%; font: inherit; padding: 11px 12px; border: 1px solid var(--pp-silver); border-radius: 3px; background: var(--pp-white); }
.pp-form textarea { min-height: 120px; resize: vertical; }
.pp-req { color: var(--pp-blue); }
.pp-status { grid-column: 1 / -1; font-weight: 600; min-height: 1.5em; margin: 0; }
.pp-status.is-ok { color: var(--pp-blue); }
.pp-status.is-err { color: var(--pp-charcoal); }
.pp-direct { border-left: 3px solid var(--pp-charcoal); padding-left: 24px; align-self: start; }
.pp-direct h3 { font-size: 1.6rem; margin: 0 0 10px; }
.pp-direct p { margin: 0 0 6px; }
.pp-direct a { color: var(--pp-charcoal); font-weight: 600; }
.pp-direct .pp-big { font-family: var(--pp-head); font-size: 1.9rem; font-weight: 700; text-decoration: none; display: inline-block; margin: 6px 0 2px; }

.pp-hp { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .pp-proof .pp-wrap { grid-template-columns: 1fr; gap: 20px; }
  .pp-ippe dl { grid-template-columns: repeat(2, max-content); justify-content: start; }
  .pp-map-grid, .pp-bio .pp-wrap, .pp-ask .pp-wrap { grid-template-columns: 1fr; }
  .pp-ippe .pp-wrap { grid-template-columns: 1fr; gap: 14px; }
  .pp-steps { grid-template-columns: 1fr; }
  .pp-steps li { padding-right: 0; border-bottom: 1px solid var(--pp-mist); padding-bottom: 22px; }
}
@media (max-width: 767px) {
  .pp-proof-sec { padding-top: 48px; }
}
@media (max-width: 767px) {
  .pp-band { display: block; min-height: 0; }
  .pp-band::after { display: none; }
  .pp-band-in .pp-wrap { align-items: flex-start; }
  .pp-band video { position: relative; inset: auto; display: block; height: auto; aspect-ratio: 4 / 3; object-position: 32% 50%; }
  .pp-band .pp-poster { display: none; }
  .pp-band-in { padding: 28px 0 48px; }
}
@media (max-width: 575px) {
  .pp-sec { padding: 64px 0; }
  .pp-wrap { padding: 0 16px; }
  .pp-form { grid-template-columns: minmax(0, 1fr); }
  .pp-logos { gap: 18px 28px; }
  .pp-logos img { height: calc(var(--h, 48px) * .72); }
  .pp-ippe dl { grid-template-columns: 1fr; }
  .pp-ippe dd { white-space: normal; }
  .pp-gal img { height: 280px; }
  .pp-gal { padding-left: 16px; padding-right: 16px; }
  .pp-hero { min-height: 78vh; }
  .pp-band-in { padding: 24px 0 44px; }
  .pp-gal-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pp-reveal span, .pp-reveal-after { animation: none; opacity: 1; transform: none; }
  .pp-in, .pp-out { transition: none; }
  .pp-motion { display: none; }
  .pp-band .pp-poster { display: block; position: relative; height: auto; aspect-ratio: 4 / 3; }
}
