/* ==== 00-globals.css ==== */
/* ==========================================================================
   00-globals.css — design tokens, reset, base typography
   Stanley Livestock Training, Climate Change Mitigation & Consultancy Firm
   ========================================================================== */

:root {
  /* Brand palette */
  --green-900: #0B2E1A;
  --green-800: #0F3B22;
  --green-700: #14532D;
  --green-600: #1A6B39;
  --green-500: #237A45;
  --green-300: #6FAE86;
  --green-100: #DEEFE1;
  --green-50:  #F2F8F2;

  --gold-600: #B8860B;
  --gold-500: #D4A017;
  --gold-400: #E4B33C;
  --gold-200: #F3DE9E;
  --gold-100: #FBF3DA;

  --earth-800: #4A3320;
  --earth-600: #6B4A2F;
  --earth-400: #9C7A55;

  --teal-600: #146C7E;
  --teal-500: #1C8A9C;
  --teal-100: #DDF0F3;

  --sky-500: #2F7FA8;
  --leaf-500: #7BB661;

  /* Neutrals */
  --ink:        #16241B;
  --ink-soft:   #44564A;
  --ink-muted:  #66786C;
  --line:       #D9E4DB;
  --line-soft:  #E9F0EA;
  --surface:    #FFFFFF;
  --surface-2:  #F7FAF7;
  --surface-3:  #EFF6F0;
  --cream:      #FBF8F1;

  /* Gradients */
  --grad-brand: linear-gradient(135deg, var(--green-700) 0%, var(--green-500) 55%, var(--teal-500) 100%);
  --grad-gold: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-400) 100%);
  --grad-earth: linear-gradient(140deg, var(--green-800) 0%, var(--green-700) 40%, var(--teal-600) 100%);
  --grad-sheen: linear-gradient(120deg, rgba(255,255,255,.22), rgba(255,255,255,0) 45%);

  /* Radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --r-pill: 999px;

  /* Elevation */
  --sh-xs: 0 1px 2px rgba(11, 46, 26, .06);
  --sh-sm: 0 4px 12px rgba(11, 46, 26, .07);
  --sh-md: 0 12px 28px rgba(11, 46, 26, .10);
  --sh-lg: 0 22px 55px rgba(11, 46, 26, .16);
  --sh-gold: 0 12px 28px rgba(184, 134, 11, .22);

  /* Rhythm */
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --maxw: 1200px;
  --maxw-narrow: 860px;
  --section-y: clamp(3.25rem, 7vw, 6rem);
  --gap: clamp(1rem, 2.4vw, 1.75rem);

  /* Motion */
  --ease: cubic-bezier(.22, .68, .24, 1);
  --t-fast: .18s var(--ease);
  --t-med: .32s var(--ease);

  /* Type */
  --font-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --fs-h1: clamp(2.05rem, 1.35rem + 2.9vw, 3.5rem);
  --fs-h2: clamp(1.6rem, 1.15rem + 1.85vw, 2.5rem);
  --fs-h3: clamp(1.15rem, 1rem + .62vw, 1.5rem);
  --fs-h4: clamp(1.02rem, .95rem + .3vw, 1.18rem);
  --fs-lead: clamp(1.02rem, .97rem + .42vw, 1.22rem);
  --fs-body: 1rem;
  --fs-sm: .9rem;
  --fs-xs: .8rem;
}

/* --- reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 7.5rem;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* NOTE: no `overflow-x: hidden` here. It is a common crutch for small
     horizontal overflows, but it turns the body into a scroll container, which
     breaks `position: sticky` on the header in several browsers. Overflows are
     clipped at the source instead (`main { overflow-x: clip }`), and the
     off-canvas drawer is kept out of the scrollable area with `visibility`. */
}

/* Drawer open: stop the page behind it from scrolling. Applied to <html> as
   well as <body> — with `overflow: hidden` on the body alone the document
   element is still the scroll container and the page keeps moving. */
html.nav-open,
body.nav-open {
  overflow: hidden;
  overscroll-behavior: none;
}

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }

input, button, textarea, select { font: inherit; color: inherit; }

button { cursor: pointer; background: none; border: 0; }

a { color: var(--green-600); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--green-700); }

ul, ol { padding: 0; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--green-900);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -.012em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

strong { color: var(--green-800); }

::selection { background: var(--gold-200); color: var(--green-900); }

:focus-visible {
  outline: 3px solid var(--gold-400);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: .5rem;
  z-index: 200;
  background: var(--green-700);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: var(--r-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: .75rem; color: #fff; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js [data-animate] { opacity: 1 !important; transform: none !important; }
}

@media (max-width: 400px) {
  /* Very narrow phones: a little of the gutter back so the wide logo, the
     wordmark and the Menu button still share one row. */
  :root { --gutter: clamp(.85rem, 3.2vw, 2.5rem); }
}

@media print {
  .site-header, .site-footer, .to-top, .cta-band { display: none !important; }
  body { color: #000; }
}


/* ==== 10-layout.css ==== */
/* ==========================================================================
   10-layout.css — shell, containers, sections, grids, helpers
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--maxw-narrow); }
.container--wide { max-width: 1400px; }

/* ---- sections ------------------------------------------------------------ */
/* Clipping the horizontal axis here guards against a few pixels of decorative
   or grid-induced overflow on narrow screens. `clip` (not `hidden`) keeps the
   sticky header working and does not create a scroll container. */
main { overflow-x: clip; }

.section { padding-block: var(--section-y); position: relative; }.section--tight { padding-block: clamp(2.25rem, 4.5vw, 3.5rem); }
.section--surface { background: var(--surface-2); }
.section--tint { background: var(--green-50); }
.section--cream { background: var(--cream); }
.section--dark {
  background: var(--grad-earth);
  color: rgba(255, 255, 255, .84);
}
.section--dark h2, .section--dark h3, .section--dark h4, .section--dark strong { color: #fff; }
.section--dark a { color: var(--gold-200); }
/* Adds highlights to a band without replacing the band's own background.
   `.section--dark` and `.section--pattern` are both single-class selectors, so
   whichever is declared last wins the `background` shorthand — which used to
   wipe out the dark gradient and leave white text on white. Layering the
   gradient in here is what keeps dark bands dark. */
.section--pattern {
  background:
    radial-gradient(circle at 12% 18%, rgba(212, 160, 23, .12), rgba(0, 0, 0, 0) 42%),
    radial-gradient(circle at 88% 82%, rgba(28, 138, 156, .14), rgba(0, 0, 0, 0) 46%),
    var(--grad-earth);
}
.section--pattern.section--cream,
.section--pattern.section--surface,
.section--pattern.section--tint {
  background-color: var(--surface-2);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(212, 160, 23, .1), transparent 42%),
    radial-gradient(circle at 88% 82%, rgba(28, 138, 156, .12), transparent 46%);
}
.section--edge::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  background: var(--grad-gold);
}

/* ---- section headings ---------------------------------------------------- */
.section-head { max-width: 780px; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p { font-size: var(--fs-lead); color: var(--ink-soft); }
.section--dark .section-head p { color: rgba(255, 255, 255, .8); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green-600);
  background: var(--green-100);
  border-radius: var(--r-pill);
  padding: .4rem .95rem;
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: .5rem; height: .5rem;
  border-radius: 50%;
  background: var(--gold-500);
  flex: none;
}
.section--dark .eyebrow { background: rgba(255,255,255,.12); color: var(--gold-200); }

.rule {
  width: 76px;
  height: 5px;
  border-radius: var(--r-pill);
  background: var(--grad-gold);
  margin: 1.1rem 0 1.35rem;
}
.section-head--center .rule { margin-inline: auto; }

.lead { font-size: var(--fs-lead); color: var(--ink-soft); }
.section--dark .lead { color: rgba(255,255,255,.82); }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2.25rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2.25rem; }

/* ---- grids --------------------------------------------------------------- */
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid--2-1 { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.grid--1-2 { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.grid--gap-sm { gap: clamp(.7rem, 1.6vw, 1.1rem); }
.grid--gap-lg { gap: clamp(1.5rem, 4vw, 3rem); }
.align-center { align-items: center; }
.align-start { align-items: start; }
.stretch { align-items: stretch; }

@media (max-width: 900px) {
  .grid--2-1, .grid--1-2 { grid-template-columns: minmax(0, 1fr); }
}

/* ---- media --------------------------------------------------------------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--green-100);
  box-shadow: var(--sh-md);
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--ratio { aspect-ratio: 4 / 3; }
.media--wide { aspect-ratio: 16 / 9; }
.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }
.media--zoom img { transition: transform .6s var(--ease); }
.media--zoom:hover img { transform: scale(1.06); }

.media-frame {
  position: relative;
  border-radius: var(--r-lg);
  /* clip: the decorative offset below must not add scrollable overflow */
  overflow: clip;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: auto -14px -14px auto;
  width: 44%;
  height: 44%;
  border-radius: var(--r-lg);
  border: 3px solid var(--gold-400);
  z-index: -1;
}

/* ---- stats --------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--gap);
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.4rem 1.25rem;
  text-align: center;
  box-shadow: var(--sh-xs);
}
.section--dark .stat {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.16);
  backdrop-filter: blur(4px);
}
.stat__value {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 1.3rem + 1.7vw, 2.6rem);
  font-weight: 700;
  color: var(--green-700);
  line-height: 1;
}
.section--dark .stat__value { color: var(--gold-400); }
.stat__label {
  display: block;
  margin-top: .5rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.section--dark .stat__label { color: rgba(255,255,255,.78); }

/* ---- split / prose ------------------------------------------------------- */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1rem; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose__list { list-style: none; display: grid; gap: .7rem; }
.prose__list li {
  position: relative;
  padding-left: 1.9rem;
}
.prose__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: .62rem; height: .62rem;
  border-radius: 3px;
  transform: rotate(45deg);
  background: var(--grad-gold);
}
.prose--dark .prose__list li::before { background: var(--gold-400); }

/* ---- callout ------------------------------------------------------------- */
.callout {
  border-left: 5px solid var(--gold-500);
  background: var(--gold-100);
  border-radius: var(--r-sm);
  padding: 1.15rem 1.3rem;
  color: var(--earth-800);
}
.callout strong { color: var(--earth-800); }
.callout--green { border-color: var(--green-500); background: var(--green-50); color: var(--green-800); }
.callout--green strong { color: var(--green-800); }

/* ---- divider ------------------------------------------------------------- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  border: 0;
  margin-block: clamp(2rem, 4vw, 3rem);
}


/* ==== 20-components.css ==== */
/* ==========================================================================
   20-components.css — buttons, cards, badges, chips, accordion, tabs,
   page hero, breadcrumbs, pagination, forms, tables, timeline, gallery
   ========================================================================== */

/* ---- buttons ------------------------------------------------------------- */
.btn {
  --btn-bg: var(--green-700);
  --btn-fg: #fff;
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .92rem 1.6rem;
  border-radius: var(--r-pill);
  border: 2px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: .015em;
  text-decoration: none;
  line-height: 1.2;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  box-shadow: var(--sh-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-md); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn svg { flex: none; }

.btn--gold { --btn-bg: var(--gold-500); --btn-fg: #2A1F05; box-shadow: var(--sh-gold); }
.btn--gold:hover { --btn-bg: var(--gold-400); color: #2A1F05; }
.btn--green { --btn-bg: var(--green-600); }
.btn--green:hover { --btn-bg: var(--green-700); }
.btn--teal { --btn-bg: var(--teal-600); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--green-700); --btn-bd: var(--green-600); box-shadow: none; }
.btn--ghost:hover { --btn-bg: var(--green-700); --btn-fg: #fff; }
.btn--light { --btn-bg: rgba(255,255,255,.14); --btn-fg: #fff; --btn-bd: rgba(255,255,255,.5); backdrop-filter: blur(6px); }
.btn--light:hover { --btn-bg: #fff; --btn-fg: var(--green-800); }
.btn--sm { padding: .6rem 1.15rem; font-size: var(--fs-xs); }
.btn--lg { padding: 1.1rem 2rem; font-size: 1rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }
.btn-row--center { justify-content: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 700;
  font-size: var(--fs-sm);
  text-decoration: none;
  color: var(--green-600);
}
.link-arrow::after {
  content: "→";
  transition: transform var(--t-fast);
}
.link-arrow:hover::after { transform: translateX(4px); }

/* ---- badges & chips ------------------------------------------------------ */
.badge {
  display: inline-block;
  padding: .28rem .7rem;
  border-radius: var(--r-pill);
  background: var(--green-100);
  color: var(--green-700);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.badge--gold { background: var(--gold-100); color: var(--gold-600); }
.badge--teal { background: var(--teal-100); color: var(--teal-600); }
.badge--earth { background: #EFE4D6; color: var(--earth-600); }
.badge--solid { background: var(--green-700); color: #fff; }

.chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  display: inline-block;
  padding: .38rem .85rem;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  border: 1px solid var(--line);
  color: var(--green-800);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.section--dark .chip { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #fff; }

/* ---- icon bubble --------------------------------------------------------- */
.icon-bubble {
  width: 58px; height: 58px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--green-100);
  color: var(--green-700);
  box-shadow: inset 0 0 0 1px rgba(20, 83, 45, .08);
}
.icon-bubble svg { width: 28px; height: 28px; }
.icon-bubble--gold { background: var(--gold-100); color: var(--gold-600); }
.icon-bubble--teal { background: var(--teal-100); color: var(--teal-600); }
.icon-bubble--earth { background: #EFE4D6; color: var(--earth-600); }
.icon-bubble--solid { background: var(--grad-brand); color: #fff; }
.icon-bubble--lg { width: 70px; height: 70px; border-radius: 22px; }
.icon-bubble--lg svg { width: 34px; height: 34px; }

/* ---- cards --------------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-xs);
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); border-color: var(--green-300); }
.card__body { padding: clamp(1.15rem, 2.4vw, 1.6rem); display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.card__title { margin: 0; }
.card__title a { color: inherit; text-decoration: none; }
.card__title a:hover { color: var(--green-600); }
.card__text { font-size: var(--fs-sm); color: var(--ink-muted); }
.card__foot { margin-top: auto; padding-top: .4rem; }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--green-100); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__badges { position: absolute; top: .85rem; left: .85rem; z-index: 2; display: flex; gap: .4rem; flex-wrap: wrap; }

.card--flat { box-shadow: none; }
.card--flat:hover { transform: none; box-shadow: var(--sh-sm); }

.card--accent { border-top: 5px solid var(--gold-500); }
.card--feature {
  background: var(--grad-earth);
  border-color: transparent;
  color: rgba(255, 255, 255, .86);
}
.card--feature .card__title, .card--feature .card__title a, .card--feature strong { color: #fff; }
.card--feature .card__text { color: rgba(255, 255, 255, .78); }
.card--feature:hover { border-color: transparent; }

.card--icon .card__body { gap: .85rem; }
.card--row { flex-direction: row; align-items: stretch; }
.card--row .card__media { width: 40%; aspect-ratio: auto; }
@media (max-width: 640px) {
  .card--row { flex-direction: column; }
  .card--row .card__media { width: 100%; aspect-ratio: 16 / 10; }
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  font-size: var(--fs-xs);
  color: var(--ink-muted);
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.card__meta span { display: inline-flex; align-items: center; gap: .35rem; }

/* ---- list card (icon + text, no media) ----------------------------------- */
.feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.feature__body h3, .feature__body h4 { margin-bottom: .35rem; }
.feature__body p { font-size: var(--fs-sm); color: var(--ink-muted); }

/* ---- media object with overlay caption ----------------------------------- */
.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--green-900);
  box-shadow: var(--sh-sm);
  display: block;
  text-decoration: none;
  color: #fff;
}
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .7s var(--ease); }
.tile:hover img { transform: scale(1.07); }
.tile__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.4rem 1.1rem 1rem;
  background: linear-gradient(to top, rgba(11, 46, 26, .92), rgba(11, 46, 26, .1) 70%, transparent);
  color: #fff;
}
.tile__overlay h3, .tile__overlay h4 { color: #fff; margin-bottom: .2rem; }
.tile__overlay p { font-size: var(--fs-xs); color: rgba(255,255,255,.82); margin: 0; }
.tile:hover { color: #fff; }
.tile--tall img { aspect-ratio: 3 / 4; }
.tile--square img { aspect-ratio: 1 / 1; }
.tile__tag {
  position: absolute;
  top: .8rem; left: .8rem;
  z-index: 2;
}

/* ---- gallery ------------------------------------------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.filter-btn {
  padding: .55rem 1.15rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--green-800);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: all var(--t-fast);
}
.filter-btn:hover { border-color: var(--green-500); color: var(--green-700); }
.filter-btn[aria-pressed="true"] {
  background: var(--green-700);
  border-color: var(--green-700);
  color: #fff;
  box-shadow: var(--sh-sm);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: var(--gap);
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--green-100);
  box-shadow: var(--sh-xs);
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .7s var(--ease); cursor: zoom-in; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  padding: .7rem .9rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
}
.gallery-item[hidden] { display: none; }
.gallery-item--wide { grid-column: span 2; }
@media (max-width: 640px) { .gallery-item--wide { grid-column: span 1; } }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(8, 26, 15, .9);
  backdrop-filter: blur(6px);
}
.lightbox[open], .lightbox.is-open { display: grid; }
.lightbox img { max-width: min(1100px, 100%); max-height: 78vh; border-radius: var(--r-md); box-shadow: var(--sh-lg); }
.lightbox__caption { color: #fff; text-align: center; margin-top: 1rem; font-size: var(--fs-sm); }
.lightbox__close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  display: grid;
  place-items: center;
}
.lightbox__close:hover { background: rgba(255,255,255,.3); }

/* ---- accordion ----------------------------------------------------------- */
.accordion { display: grid; gap: .75rem; }
.accordion__item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.accordion__item.is-open { border-color: var(--green-300); box-shadow: var(--sh-sm); }
.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
  padding: 1.05rem 1.2rem;
  font-family: var(--font-head);
  font-size: var(--fs-h4);
  font-weight: 700;
  color: var(--green-900);
}
.accordion__trigger:hover { color: var(--green-600); }
.accordion__trigger::after {
  content: "+";
  margin-left: auto;
  flex: none;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  font-family: var(--font-sans);
  font-size: 1.15rem;
  line-height: 1;
  transition: transform var(--t-fast), background-color var(--t-fast);
}
.accordion__item.is-open .accordion__trigger::after { content: "−"; background: var(--gold-500); color: #2A1F05; }
.accordion__panel { padding: 0 1.2rem 1.2rem; }
.accordion__panel[hidden] { display: none; }
.accordion__panel > * + * { margin-top: .8rem; }
.accordion__panel p, .accordion__panel li { font-size: var(--fs-sm); }

/* ---- page hero ----------------------------------------------------------- */
.page-hero {
  position: relative;
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
  background: var(--grad-earth);
  color: rgba(255,255,255,.85);
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 82% 22%, rgba(212,160,23,.25), transparent 38%),
    radial-gradient(circle at 8% 88%, rgba(28,138,156,.32), transparent 42%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero p { font-size: var(--fs-lead); color: rgba(255,255,255,.85); max-width: 62ch; }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.page-hero--image { background-size: cover; background-position: center; }
.page-hero--image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(11,46,26,.94) 8%, rgba(15,59,34,.82) 48%, rgba(20,83,45,.6) 100%);
}
.page-hero--image .container { z-index: 2; }
.page-hero--compact { padding-block: clamp(2rem, 4.5vw, 3.25rem); }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  list-style: none;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: rgba(255,255,255,.72);
}
.breadcrumbs li { display: flex; align-items: center; gap: .45rem; }
.breadcrumbs li + li::before { content: "/"; opacity: .55; }
.breadcrumbs a { color: rgba(255,255,255,.9); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold-400); }
.breadcrumbs [aria-current] { color: var(--gold-400); }

/* ---- CTA band ------------------------------------------------------------ */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--grad-earth);
  color: rgba(255,255,255,.86);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,160,23,.28), transparent 68%);
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.84); font-size: var(--fs-lead); }

/* ---- steps / timeline ---------------------------------------------------- */
.steps { list-style: none; display: grid; gap: clamp(1rem, 2.4vw, 1.5rem); counter-reset: step; }
.step {
  position: relative;
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.2rem 1.3rem;
  box-shadow: var(--sh-xs);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  flex: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--grad-brand);
}
.step h3, .step h4 { margin-bottom: .25rem; }
.step p { font-size: var(--fs-sm); color: var(--ink-muted); margin: 0; }

.timeline { list-style: none; display: grid; gap: 1.5rem; position: relative; padding-left: 2rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: .44rem; top: .5rem; bottom: .5rem;
  width: 2px;
  background: linear-gradient(var(--green-300), var(--gold-400));
}
.timeline__item { position: relative; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -1.9rem; top: .45rem;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--green-500);
}
.timeline__date { display: block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-600); }
.timeline__item h3, .timeline__item h4 { margin: .2rem 0 .3rem; font-size: var(--fs-h4); }
.timeline__item p { font-size: var(--fs-sm); margin: 0; }

/* ---- table --------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; min-width: 620px; font-size: var(--fs-sm); }
table.data caption { text-align: left; padding: 1rem 1.1rem 0; font-weight: 700; color: var(--green-800); }
table.data th, table.data td { padding: .85rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line-soft); }
table.data thead th {
  background: var(--green-50);
  color: var(--green-800);
  font-size: var(--fs-xs);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
table.data tbody tr:hover { background: var(--surface-2); }
table.data tbody tr:last-child td { border-bottom: 0; }

/* ---- notice -------------------------------------------------------------- */
.notice {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  background: var(--teal-100);
  border: 1px solid #BFE3E9;
  border-radius: var(--r-md);
  padding: 1rem 1.15rem;
  font-size: var(--fs-sm);
  color: #0F4F5C;
}
.notice--gold { background: var(--gold-100); border-color: var(--gold-200); color: var(--earth-800); }
.notice strong { color: inherit; }

/* ---- pagination / post nav ---------------------------------------------- */
.post-nav { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; margin-top: 2rem; }

/* ---- misc ---------------------------------------------------------------- */
.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.stack { display: grid; gap: 1rem; }
.stack--sm { gap: .6rem; }
.stack--lg { gap: 1.75rem; }
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.35rem;
  box-shadow: var(--sh-xs);
}
.sidebar-card + .sidebar-card { margin-top: 1.25rem; }
.sidebar-card h3 { font-size: var(--fs-h4); margin-bottom: .8rem; }
.sidebar-list { list-style: none; display: grid; gap: .55rem; font-size: var(--fs-sm); }
.sidebar-list a { text-decoration: none; font-weight: 600; color: var(--ink-soft); }
.sidebar-list a:hover { color: var(--green-600); }


/* ==== 30-site-chrome.css ==== */
/* ==========================================================================
   30-site-chrome.css — header, navigation, footer, home hero, utilities
   ========================================================================== */

/* ---- topbar -------------------------------------------------------------- */
.site-header { position: relative; z-index: 60; }

.topbar {
  background: var(--green-900);
  color: rgba(255, 255, 255, .8);
  font-size: var(--fs-xs);
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-block: .5rem;
}
.topbar__tagline {
  margin: 0;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold-200);
}
.topbar__tagline span { opacity: .5; }
.topbar__contact {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.4rem;
}
.topbar__contact a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  font-weight: 600;
}
.topbar__contact a:hover { color: var(--gold-400); }
@media (max-width: 720px) {
  .topbar__inner { justify-content: center; }
  .topbar__tagline { display: none; }
  .topbar__contact { justify-content: center; row-gap: .2rem; }
  .topbar__contact span { white-space: nowrap; }
}

/* ---- navbar -------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  /* The navbar is position:sticky, which creates a stacking context — so the
     off-canvas drawer's z-index is resolved *inside* it. The navbar must
     therefore outrank the scrim, which is a sibling at the root level;
     otherwise the scrim paints over the open menu and greys it out. */
  z-index: 90;
  /* Solid background on purpose: a backdrop-filter here would become the
     containing block for the fixed off-canvas nav and push it past the
     viewport, creating horizontal scroll on small screens. */
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--t-med), background-color var(--t-med);
}
.navbar.is-stuck { box-shadow: 0 8px 26px rgba(11, 46, 26, .1); }
.navbar__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 74px;
  padding-block: .6rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  flex: none;
  margin-right: auto;
}
/* The logo is the client's circular badge, which already carries the firm's
   name, its services and its motto, so it is set large enough to read rather
   than reduced to a small icon. */
.brand__mark { width: 52px; height: 52px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand__text strong {
  font-family: var(--font-head);
  font-size: clamp(1.05rem, .95rem + .35vw, 1.32rem);
  color: var(--green-800);
  letter-spacing: -.01em;
}
.brand__text span {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--gold-600);
}

/* Below this width the links no longer fit beside the brand, so the strapline
   goes first, then the badge steps down with the name. */
@media (max-width: 1100px) {
  .brand__text span { display: none; }
}
@media (max-width: 768px) {
  .brand { gap: .55rem; }
  .brand__mark { width: 46px; height: 46px; }
  .brand__text strong { font-size: clamp(.98rem, .84rem + .8vw, 1.16rem); }
}
@media (max-width: 430px) {
  .brand { gap: .45rem; }
  .brand__mark { width: 40px; height: 40px; }
  .brand__text strong { font-size: .96rem; }
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  padding: .55rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--green-800);
  font-weight: 700;
  font-size: var(--fs-xs);
  letter-spacing: .06em;
  text-transform: uppercase;
  z-index: 95; /* stays above the scrim and the open drawer so it can close it */
}
.nav-toggle__bars { display: grid; gap: 4px; width: 20px; }
/* Room for the wide emblem plus the wordmark on the narrowest phones. */
@media (max-width: 420px) {
  .nav-toggle { padding: .45rem .6rem; gap: .35rem; }
  .nav-toggle__label { font-size: .68rem; }
  .nav-toggle__bars { width: 16px; }
}
.nav-toggle__bars span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform var(--t-fast), opacity var(--t-fast); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.primary-nav { display: flex; align-items: center; gap: 1.25rem; min-width: 0; }
/* Drawer-only extras; shown inside the mobile drawer below. */
.primary-nav__title, .primary-nav__contact { display: none; }
.primary-nav__list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: .15rem;
}
.primary-nav__list a {
  display: block;
  position: relative;
  padding: .62rem .8rem;
  border-radius: var(--r-sm);
  color: var(--green-800);
  font-size: .875rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--t-fast), background-color var(--t-fast);
}
.primary-nav__list a:hover { color: var(--green-600); background: var(--green-50); }
.primary-nav__list a::after {
  content: "";
  position: absolute;
  left: .8rem; right: .8rem; bottom: .32rem;
  height: 2.5px;
  border-radius: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med);
}
.primary-nav__list a:hover::after,
.primary-nav__list a.is-active::after { transform: scaleX(1); }
.primary-nav__list a.is-active { color: var(--green-700); }
.primary-nav__cta { display: flex; }

@media (max-width: 1320px) {
  /* Below this width the links no longer fit beside the brand, so the whole
     nav moves to its own row inside the sticky bar instead of overflowing. */
  .navbar__inner { flex-wrap: wrap; padding-bottom: .55rem; }
  .primary-nav { flex-basis: 100%; justify-content: center; }
  .primary-nav__list { flex-wrap: wrap; justify-content: center; }
  .primary-nav__list a { padding: .5rem .62rem; font-size: .84rem; }
  .primary-nav__cta { display: none; }
  .primary-nav__list a::after { left: .62rem; right: .62rem; bottom: .2rem; }
}
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .navbar__inner { min-height: 66px; }
  .primary-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(340px, 88vw);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4.9rem 1.6rem 2rem;
    background: var(--surface);
    border-left: 1px solid var(--line);
    box-shadow: -18px 0 45px rgba(11, 46, 26, .16);
    transform: translateX(105%);
    visibility: hidden; /* keeps the closed drawer out of the scrollable area */
    transition: transform var(--t-med), visibility var(--t-med);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .primary-nav.is-open { transform: translateX(0); visibility: visible; }

  .primary-nav__title {
    margin: 0 0 .35rem .9rem;
    font-size: var(--fs-xs);
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold-600);
  }

  .primary-nav__list { flex-direction: column; align-items: stretch; gap: .15rem; }
  .primary-nav__list a { padding: .85rem .9rem; font-size: 1rem; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .primary-nav__list a::after { display: none; }
  .primary-nav__list a.is-active { background: var(--green-50); border-left: 4px solid var(--gold-500); padding-left: 1.1rem; }

  .primary-nav__cta { display: flex; margin-top: 1.5rem; }
  .primary-nav__cta .btn { width: 100%; }

  .primary-nav__contact {
    display: grid;
    gap: .3rem;
    margin-top: 1.35rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line-soft);
    font-size: var(--fs-sm);
    font-weight: 600;
  }
  .primary-nav__contact a { color: var(--green-700); text-decoration: none; }
  .primary-nav__contact a:hover { text-decoration: underline; }

  .nav-scrim {
    position: fixed;
    inset: 0;
    /* Deliberately no backdrop-filter: a filter applies to everything painted
       beneath it, which made the open drawer look washed out. */
    background: rgba(8, 26, 15, .62);
    z-index: 80;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-med);
  }
  .nav-scrim.is-open { opacity: 1; pointer-events: auto; }
}

/* ---- home hero ----------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--green-900);
  color: rgba(255, 255, 255, .88);
  padding-block: clamp(3rem, 7vw, 6.5rem);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(102deg, rgba(9, 38, 21, .93) 4%, rgba(13, 52, 29, .87) 42%, rgba(20, 83, 45, .62) 100%),
    linear-gradient(to top, rgba(9, 38, 21, .75), transparent 55%),
    radial-gradient(circle at 88% 12%, rgba(212, 160, 23, .26), transparent 42%);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: center;
}
@media (max-width: 980px) { .hero__grid { grid-template-columns: minmax(0, 1fr); } }

.hero h1 { color: #fff; max-width: 22ch; }
.hero__lead { font-size: var(--fs-lead); color: rgba(255, 255, 255, .86); max-width: 60ch; margin-top: 1.1rem; }
.hero .motto {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  margin-top: 1.5rem;
  padding: .7rem 1.2rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .24);
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: .05em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.hero .motto em { font-style: normal; color: var(--gold-400); }
.hero__actions { margin-top: 1.9rem; }
.hero__points {
  list-style: none;
  display: grid;
  gap: .55rem;
  margin-top: 1.9rem;
  font-size: var(--fs-sm);
}
.hero__points li { display: flex; gap: .6rem; align-items: flex-start; color: rgba(255,255,255,.9); }
.hero__points li::before {
  content: "✓";
  flex: none;
  width: 22px; height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(212, 160, 23, .9);
  color: #2A1F05;
  font-size: .72rem;
  font-weight: 800;
  margin-top: .2rem;
}

.hero__panel {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--r-lg);
  padding: clamp(1.2rem, 2.6vw, 1.9rem);
  backdrop-filter: blur(10px);
  box-shadow: var(--sh-lg);
}
.hero__panel h2 { color: #fff; font-size: var(--fs-h3); margin-bottom: .9rem; }
.hero__panel .prose__list { font-size: var(--fs-sm); color: rgba(255,255,255,.88); }
.hero__panel .prose__list li::before { background: var(--gold-400); }
.hero__panel-foot {
  margin-top: 1.3rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, .18);
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .7);
  font-weight: 700;
}

/* ---- marquee strip ------------------------------------------------------- */
.strip {
  background: var(--green-800);
  color: rgba(255, 255, 255, .9);
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.strip ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem clamp(1rem, 3vw, 2.5rem);
  padding-block: .9rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.strip li { display: inline-flex; align-items: center; gap: .6rem; }
.strip li::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--gold-500); }

/* ---- page hero image variants ------------------------------------------- */
.hero-img-about { background-image: url("../img/about-team.jpg"); }
.hero-img-services { background-image: url("../img/livestock-training.jpg"); }
.hero-img-training { background-image: url("../img/training-1.jpg"); }
.hero-img-projects { background-image: url("../img/project-5.jpg"); }
.hero-img-gallery { background-image: url("../img/gallery-1.jpg"); }
.hero-img-blog { background-image: url("../img/gallery-4.jpg"); }
.hero-img-contact { background-image: url("../img/consultancy.jpg"); }
.hero-img-ivs { background-image: url("../img/ivs-swamp.jpg"); }

/* ---- footer -------------------------------------------------------------- */
.site-footer {
  position: relative;
  overflow: clip;
  background: var(--green-900);
  color: rgba(255, 255, 255, .74);
  padding-block: clamp(2.75rem, 5vw, 4rem) 0;
  font-size: var(--fs-sm);
}
.site-footer__glow {
  position: absolute;
  inset: auto -80px -140px auto;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 160, 23, .18), transparent 66%);
  pointer-events: none;
}
.site-footer .container { position: relative; z-index: 1; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3.5vw, 3rem);
}
@media (max-width: 1000px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

.footer-grid__title {
  color: #fff;
  font-size: var(--fs-h4);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: .6rem;
}
.footer-grid__title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 38px; height: 3px;
  border-radius: 2px;
  background: var(--grad-gold);
}
.footer-grid__title--spaced { margin-top: 1.5rem; }

.brand--footer {
  flex-direction: column;
  align-items: flex-start;
  gap: .85rem;
  margin-bottom: 1.1rem;
}
.brand--footer .brand__mark { width: 104px; height: 104px; }
.brand--footer .brand__text strong { color: #fff; font-size: 1.15rem; }
.brand--footer .brand__text span { color: var(--gold-400); }
.footer-about p { margin-bottom: .85rem; }
.footer-about__motto {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--gold-400);
  font-weight: 700;
}
.footer-about__reg { font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.6); }

.footer-links { list-style: none; display: grid; gap: .55rem; }
.footer-links a {
  color: rgba(255, 255, 255, .76);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  transition: color var(--t-fast), transform var(--t-fast);
}
.footer-links a::before { content: "›"; color: var(--gold-500); font-weight: 700; }
.footer-links a:hover { color: #fff; transform: translateX(3px); }

.footer-contact { list-style: none; display: grid; gap: .9rem; }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; }
.footer-contact__icon {
  flex: none;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, .1);
  font-size: 1rem;
}
.footer-contact a { color: #fff; text-decoration: none; font-weight: 600; }
.footer-contact a:hover { color: var(--gold-400); }
.footer-contact small { color: rgba(255, 255, 255, .55); font-size: var(--fs-xs); }

.footer-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; }
.footer-chips li {
  font-size: var(--fs-xs);
  padding: .3rem .7rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .82);
}

.footer-bottom {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-block: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, .62);
}
.footer-bottom p { margin: 0; }
.footer-bottom__note { color: var(--gold-400); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

/* ---- back to top --------------------------------------------------------- */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 90;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--green-700);
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: var(--sh-md);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity var(--t-med), transform var(--t-med), background-color var(--t-fast);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--gold-500); color: #2A1F05; }

/* ---- scroll reveal -------------------------------------------------------
   Only ever hidden once the script has confirmed it can reveal again
   (html.js is added by 00-ui.js), so content stays visible without JS. */
.js [data-animate] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  will-change: opacity, transform;
}
.js [data-animate].is-in { opacity: 1; transform: none; }
.js [data-animate="fade"] { transform: none; }
.js [data-animate="left"] { transform: translateX(-24px); }
.js [data-animate="right"] { transform: translateX(24px); }
.js [data-animate="zoom"] { transform: scale(.96); }
.js [data-animate].is-in { transform: none; }

/* ---- print/small helper -------------------------------------------------- */
@media (max-width: 420px) {
  .btn { width: 100%; }
  .btn-row { gap: .6rem; }
  .card__badges { position: static; padding: .7rem .7rem 0; }
}


/* ==== 40-pages.css ==== */
/* ==========================================================================
   40-pages.css — forms, contact, blog, services, projects, training
   ========================================================================== */

/* ---- forms --------------------------------------------------------------- */
.form { display: grid; gap: 1.1rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--green-800);
}
.field .hint { font-size: var(--fs-xs); color: var(--ink-muted); font-weight: 500; }
.field .req { color: #B3261E; }

.input, .select, .textarea {
  width: 100%;
  padding: .8rem .95rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--fs-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--green-600) 50%), linear-gradient(135deg, var(--green-600) 50%, transparent 50%);
  background-position: calc(100% - 20px) 1.15rem, calc(100% - 14px) 1.15rem;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}
.textarea { min-height: 140px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 4px rgba(35, 122, 69, .14);
}
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] {
  border-color: #B3261E;
  box-shadow: 0 0 0 4px rgba(179, 38, 30, .12);
}
.error-msg {
  font-size: var(--fs-xs);
  color: #B3261E;
  font-weight: 600;
  min-height: 1.1em;
}
.checkbox-row { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--fs-xs); color: var(--ink-muted); }
.checkbox-row input { margin-top: .28rem; flex: none; width: 18px; height: 18px; accent-color: var(--green-600); }

.form-status {
  display: none;
  gap: .7rem;
  align-items: flex-start;
  border-radius: var(--r-sm);
  padding: .95rem 1.1rem;
  font-size: var(--fs-sm);
  font-weight: 600;
}
.form-status.is-visible { display: flex; }
.form-status--ok { background: var(--green-50); border: 1px solid var(--green-300); color: var(--green-800); }
.form-status--err { background: #FDECEA; border: 1px solid #F3B7B2; color: #8C1D18; }

/* ---- contact ------------------------------------------------------------- */
.contact-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.2rem 1.3rem;
  box-shadow: var(--sh-xs);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--sh-sm); }
.contact-card h3 { font-size: var(--fs-h4); margin-bottom: .2rem; }
.contact-card a { font-weight: 700; text-decoration: none; }
.contact-card p { font-size: var(--fs-sm); margin: 0; }
.contact-card small { color: var(--ink-muted); font-size: var(--fs-xs); }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 940px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

.map-embed {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 240px;
  background:
    linear-gradient(135deg, var(--green-100), var(--surface-3));
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.6rem;
  color: var(--green-800);
}

/* ---- home: turning waste into wealth ---- */
.waste { --section-y: clamp(2.5rem, 5vw, 4.5rem); }

/* The figure has a visible edge on the light sections; on the dark band it needs
   a gold ring so it does not float. */
.section--dark .media { box-shadow: 0 0 0 1px rgba(212, 160, 23, .4), var(--sh-lg); }

.waste__points { list-style: none; display: grid; gap: .55rem; }
.waste__points li {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, .88);
}
.waste__points li::before {
  content: "";
  flex: none;
  margin-top: .55em;
  width: .5rem;
  height: .5rem;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--grad-gold);
}

.waste__flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem .7rem;
  margin-top: 1.4rem;
  padding: .8rem 1rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .84);
}
.waste__flow span { display: inline-flex; align-items: center; gap: .45rem; }
.waste__flow span:not(:last-child)::after {
  content: "→";
  margin-left: .7rem;
  color: var(--gold-400);
}
.waste__actions { margin-top: 1.6rem; }

/* Buttons that sit *inside* a dark band must stay legible even if some
   ancestor rule changes their colours. */
.section--dark .btn--light {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
  backdrop-filter: blur(6px);
}
.section--dark .btn--light:hover { background: #fff; color: var(--green-800); }

/* ---- services ------------------------------------------------------------ */
.service-block { scroll-margin-top: 8rem; }
.service-block + .service-block { margin-top: clamp(2.5rem, 5vw, 4.5rem); }
.service-block__head { display: flex; gap: 1.1rem; align-items: flex-start; margin-bottom: 1.4rem; }
.service-block__head h2 { margin-bottom: .35rem; }
.service-block__num {
  flex: none;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-600);
  background: var(--gold-100);
  border-radius: 12px;
  padding: .5rem .7rem;
  line-height: 1;
}
.service-list { list-style: none; display: grid; gap: .6rem; }
.service-list li {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  font-size: var(--fs-sm);
  padding: .6rem .85rem;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
}
.service-list li::before {
  content: "✓";
  flex: none;
  color: var(--green-600);
  font-weight: 800;
}

.sticky-aside { position: sticky; top: 7rem; }
@media (max-width: 1000px) { .sticky-aside { position: static; } }

.toc {
  list-style: none;
  display: grid;
  gap: .25rem;
  font-size: var(--fs-sm);
}
.toc a {
  display: flex;
  gap: .6rem;
  align-items: baseline;
  padding: .55rem .7rem;
  border-radius: var(--r-sm);
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
}
.toc a:hover { background: var(--green-50); color: var(--green-700); }
.toc a span { color: var(--gold-600); font-size: var(--fs-xs); font-weight: 800; }

/* ---- projects ------------------------------------------------------------ */
.project-card { display: flex; flex-direction: column; height: 100%; }
.project-facts {
  list-style: none;
  display: grid;
  gap: .4rem;
  font-size: var(--fs-xs);
  color: var(--ink-muted);
  margin-top: .2rem;
}
.project-facts li { display: flex; gap: .5rem; }
.project-facts b { color: var(--green-700); font-weight: 700; min-width: 5.5rem; }

.impact-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--gap);
}

/* ---- training ------------------------------------------------------------ */
.module {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--green-500);
  border-radius: var(--r-md);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--sh-xs);
}
.module--gold { border-left-color: var(--gold-500); }
.module--teal { border-left-color: var(--teal-500); }
.module__badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 15px;
  background: var(--green-50);
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--green-700);
}
.module h3 { font-size: var(--fs-h4); margin-bottom: .35rem; }
.module p { font-size: var(--fs-sm); margin-bottom: .7rem; }
.module__meta { display: flex; flex-wrap: wrap; gap: .4rem; }

.price-card {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--sh-xs);
  height: 100%;
}
.price-card--feature { border: 2px solid var(--gold-500); box-shadow: var(--sh-gold); }
.price-card h3 { font-size: var(--fs-h4); }
.price-card__tag {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--green-700);
  font-weight: 700;
}
.price-card ul { list-style: none; display: grid; gap: .5rem; font-size: var(--fs-sm); }
.price-card ul li { display: flex; gap: .55rem; }
.price-card ul li::before { content: "✓"; color: var(--green-600); font-weight: 800; flex: none; }

/* ---- blog --------------------------------------------------------------- */
.post-card { display: flex; flex-direction: column; height: 100%; }
.post-card__excerpt { font-size: var(--fs-sm); color: var(--ink-muted); }
.post-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
}
@media (max-width: 860px) { .post-feature { grid-template-columns: minmax(0, 1fr); } }
.post-feature__body { padding: clamp(1.25rem, 3vw, 2.25rem); }
.post-feature__media { height: 100%; min-height: 280px; }
.post-feature__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .post-feature__media { min-height: 220px; order: -1; } }

.article { max-width: 74ch; }
.article > * + * { margin-top: 1.05rem; }
.article h2 { margin-top: 2.2rem; padding-top: .4rem; }
.article h3 { margin-top: 1.7rem; }
.article ul, .article ol { padding-left: 1.3rem; display: grid; gap: .5rem; }
.article li { font-size: var(--fs-sm); }
.article blockquote {
  margin: 1.6rem 0;
  padding: 1.1rem 1.35rem;
  border-left: 5px solid var(--gold-500);
  background: var(--gold-100);
  border-radius: var(--r-sm);
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--earth-800);
}
.article blockquote p { margin: 0; }
.article figure { margin: 1.8rem 0; }
.article figure img { border-radius: var(--r-md); box-shadow: var(--sh-sm); width: 100%; }
.article figcaption { font-size: var(--fs-xs); color: var(--ink-muted); margin-top: .6rem; }
.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1.2rem;
}
.share-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.share-row span { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); }

/* ---- FAQ ---------------------------------------------------------------- */
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; align-items: start; }

/* ---- value cards -------------------------------------------------------- */
.value-card {
  text-align: center;
  padding: 1.6rem 1.2rem;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-xs);
  transition: transform var(--t-med), box-shadow var(--t-med);
  height: 100%;
}
.value-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.value-card .icon-bubble { margin: 0 auto .9rem; }
.value-card h3 { font-size: var(--fs-h4); margin-bottom: .35rem; }
.value-card p { font-size: var(--fs-sm); color: var(--ink-muted); margin: 0; }
