/* services-anti-poaching.css — Anti-Poaching & Game Reserves detail page */

/* ============================================================
   Afrique Du Sud K9 — Anti-Poaching & Game Reserves detail
   Page-specific styles for /src/pages/services/anti-poaching.html.
   Tokens, base styles, header/footer chrome, .container,
   .slash-mask, [data-reveal], .mono, .skip-link, .btn-*
   utilities all live in main.css — do not redefine here.
   Mobile-first; widen via @media (min-width: 700px / 1100px).
   Section BEM roots locked by plan "Round-2 Client Review",
   Agent A2 BEM map:
     .ap-overview / .ap-threat / .ap-capability /
     .ap-units / .ap-reserves / .ap-callout
     (hero + related + cta use shared partials in main.css)
   ============================================================ */


/* ============================================================
   Hero — uses shared .page-hero from main.css via the
   src/partials/page-hero.html partial. No page-local rules.
   ============================================================ */


/* ============================================================
   #ap-overview — paper intro + in-page jump nav
   Single column on mobile; jump pills stack vertically.
   Widens to a horizontal row of pill chips at >=700px.
   Padding-block halved to match service-overview convention.
   ============================================================ */
#ap-overview.ap-overview {
  background: var(--paper);
  padding-block: calc(var(--section-y) / 2);
}

.ap-overview__inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.ap-overview__intro {
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 1.2vw, 1.25rem);
  line-height: 1.6;
  color: var(--grey-700);
  max-width: 72ch;
  margin: 0 0 2rem;
}

.ap-overview__jumps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.ap-overview__jump {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: var(--fs-small);
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: var(--radius);
  padding: 0.625rem 1rem;
  text-decoration: none;
  transition: border-color 150ms ease, color 150ms ease,
              background-color 150ms ease;
}
.ap-overview__jump:hover,
.ap-overview__jump:focus-visible {
  border-color: var(--orange);
  color: var(--ink);
  background: var(--white);
  text-decoration: none;
}
.ap-overview__jump:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}


/* ============================================================
   #ap-threat — solid black/ink band; context + pull-quote
   Lead paragraph centered-left with the page width; an optional
   three-tile stat strip below the pull-quote (single column on
   mobile, 3-up at >=700px). Quote display-font, capped at 90vw.
   ============================================================ */
#ap-threat.ap-threat {
  background: var(--black);
  color: var(--white);
  padding-block: var(--section-y);
}

.ap-threat__inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.ap-threat__title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: var(--fs-h2);
  color: var(--orange);
  line-height: 1.15;
  margin: 0 0 1.25rem;
}

.ap-threat__lead {
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 1.2vw, 1.25rem);
  line-height: 1.6;
  color: var(--white);
  opacity: 0.92;
  max-width: 72ch;
  margin: 0 0 2.5rem;
}

.ap-threat__quote {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  line-height: 1.3;
  color: var(--white);
  max-width: 90vw;
  margin: 0 0 2.5rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--red);
}

.ap-threat__stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.ap-threat__stat {
  border-top: 3px solid var(--orange);
  padding: 1.25rem 0 0;
}
.ap-threat__stat:nth-child(2) {
  border-top-color: var(--red);
}
.ap-threat__stat:nth-child(3) {
  border-top-color: var(--orange);
}

.ap-threat__stat-figure {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.1;
  color: var(--white);
  margin: 0 0 0.5rem;
}

.ap-threat__stat-label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--white);
  opacity: 0.85;
  margin: 0;
}


/* ============================================================
   #ap-capability — white band; 3-col advantage tile grid
   Short intro paragraph above; 1-col mobile -> 3-col at >=1100px.
   Tiles share white bg with an alternating accent border-top
   in the brand red/orange palette.
   ============================================================ */
#ap-capability.ap-capability {
  background: var(--white);
  padding-block: var(--section-y);
}

.ap-capability__inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.ap-capability__intro {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--grey-700);
  max-width: 72ch;
  margin: 0 0 2rem;
}

.ap-capability__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.ap-capability__tile {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.ap-capability__tile:nth-child(2) {
  border-top-color: var(--orange);
}
.ap-capability__tile:nth-child(3) {
  border-top-color: var(--red);
}
.ap-capability__tile:nth-child(4) {
  border-top-color: var(--orange);
}

.ap-capability__tile-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: var(--fs-h3);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.ap-capability__tile-body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--grey-700);
  margin: 0;
}


/* ============================================================
   #ap-units — paper band; 3 capability articles
   Each item stacks on mobile; widens to a 2-col image/copy grid
   at >=1100px with the image side alternating per row. Photo
   uses 4/3 aspect-ratio, slash-mask applied via utility class
   on the .ap-units__media wrapper (set in HTML).
   ============================================================ */
#ap-units.ap-units {
  background: var(--paper);
  padding-block: var(--section-y);
}

.ap-units__inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.ap-units__title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: var(--fs-h2);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.ap-units__intro {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--grey-700);
  max-width: 72ch;
  margin: 0 0 2.5rem;
}

.ap-units__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 5vw, 4.5rem);
}

.ap-units__item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

.ap-units__media {
  width: 100%;
}
.ap-units__media picture,
.ap-units__media picture > img {
  width: 100%;
  display: block;
}
.ap-units__media picture > img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ap-units__copy > :first-child {
  margin-top: 0;
}
.ap-units__copy > :last-child {
  margin-bottom: 0;
}

.ap-units__name {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: var(--fs-h3);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.ap-units__body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--grey-700);
  margin: 0 0 1rem;
}

.ap-units__traits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.ap-units__traits li {
  position: relative;
  padding-left: 1.25rem;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--grey-700);
}
.ap-units__traits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--orange);
}


/* ============================================================
   #ap-reserves — white band; centered title + lead + card grid
   Mirrors the guarding-environments pattern: centered h2, short
   lead, then a grid of cards (image stacked over heading + body)
   in 3:2 slash-masked photos. 1-col mobile → 2-col >=700px →
   3-col >=1100px (3 items in source order).
   ============================================================ */
#ap-reserves.ap-reserves {
  background: var(--white);
  padding-block: var(--section-y);
}

.ap-reserves__inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.ap-reserves__title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: var(--fs-h2);
  color: var(--ink);
  line-height: 1.15;
  text-align: center;
  margin: 0 0 1rem;
}

.ap-reserves__lead {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--grey-700);
  max-width: 72ch;
  margin: 0 auto 3rem;
  text-align: center;
}

.ap-reserves__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.ap-reserves__item {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.ap-reserves__media {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
}
.ap-reserves__media picture,
.ap-reserves__media picture > img {
  width: 100%;
  display: block;
}
.ap-reserves__media picture > img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.ap-reserves__copy {
  margin-top: 1rem;
}

.ap-reserves__heading {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--fs-h3);
  color: var(--ink);
  line-height: 1.2;
  margin: 0;
}

.ap-reserves__body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--grey-700);
  margin: 0.5rem 0 0;
}


/* ============================================================
   #ap-callout — solid ink pull-quote band
   Display-font quote, width capped at min(80vw, 1100px) and
   centered. Below the quote, an uppercase mono tag and a single
   centered link out to the Training page (handler pipeline).
   ============================================================ */
#ap-callout.ap-callout {
  background: var(--ink);
  color: var(--white);
  padding-block: var(--section-y);
}

.ap-callout__inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
}

.ap-callout__quote {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  line-height: 1.3;
  color: var(--white);
  max-width: 90vw;
  margin: 0 auto 1.5rem;
}

.ap-callout__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--fs-small);
  color: var(--orange);
  margin: 0 0 1.5rem;
}

.ap-callout__row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

.ap-callout__link {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: var(--fs-small);
  color: var(--orange);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 150ms ease;
}
.ap-callout__link:hover,
.ap-callout__link:focus-visible {
  color: var(--white);
  text-decoration: underline;
}
.ap-callout__link:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}


/* ============================================================
   Cross-section reveal cascade
   The shared [data-reveal] utility in main.css handles per-block
   fade-in. The anti-poaching page has 6 content sections plus the
   shared related + cta; the cascade timing in main.css already
   covers them — no per-page override needed. This comment is a
   note for future maintainers so nobody re-adds a redundant rule.
   ============================================================ */


/* ============================================================
   Print styles
   Strip background bands so the page reads as a service brief on
   paper: white background, ink text everywhere, no inverse on the
   threat / callout bands. Reveal opacity collapses to 1.
   ============================================================ */
@media print {
  #ap-threat.ap-threat,
  #ap-callout.ap-callout {
    background: var(--white);
    color: var(--ink);
  }
  .ap-threat__lead,
  .ap-threat__quote,
  .ap-threat__stat-figure,
  .ap-threat__stat-label,
  .ap-callout__quote {
    color: var(--ink);
    opacity: 1;
  }
  .ap-overview__jumps,
  .ap-callout__row {
    display: none;
  }
}


/* ============================================================
   Related services — uses shared .related-services block
   from main.css via the src/partials/related-services.html
   partial. No page-local rules.
   ============================================================ */


/* ============================================================
   Breakpoint: >=700px
   Modest layout tweaks: jump pills go horizontal, threat stats
   become 3-up, reserves sub-items become 3-up.
   ============================================================ */
@media (min-width: 700px) {
  .ap-overview__jumps {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .ap-threat__stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .ap-reserves__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}


/* ============================================================
   Breakpoint: >=1100px
   Major layout shifts: capability becomes 3-col; units items
   become alternating-side 2-col rows; reserves grid becomes
   image-left / copy-right 2-col with the sub-items still 3-up
   below the image+copy band.
   ============================================================ */
@media (min-width: 1100px) {
  .ap-units__item {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
  }
  /* Alternate the image side on even rows */
  .ap-units__item:nth-child(even) .ap-units__media {
    order: 2;
  }

  .ap-reserves__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}


/* ============================================================
   Reduced-motion local guards
   (global guard in main.css already disables transitions/anims
   on everything; these are belt-and-braces for the jump-pill
   colour swap, the reserves inline link, and the callout link.)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .ap-overview__jump,
  .ap-reserves__copy a,
  .ap-callout__link { transition: none !important; }
}
