@charset "UTF-8";
/* ===========================================================================
   Lios Soil — design system
   Written from scratch. Colours, type and rhythm are lifted from the live
   WordPress site so the rebuild reads as the same brand; none of the Vamtam
   theme's CSS is reused (the theme licence is not ours to ship).
   Palette sampled from the live stylesheets: see docs/reference/ for the
   desktop + mobile screenshots this was matched against.
   =========================================================================== */

/* ---------- tokens -------------------------------------------------- */
:root {
  /* brand */
  --blue:        #86aed0;   /* logo blue — headings, links, rules */
  --blue-deep:   #5d87ab;   /* hover / higher-contrast text on white */
  --terracotta:  #d94729;   /* soil accent — buttons, emphasis */
  --terracotta-deep: #b83a20;

  /* neutrals */
  --paper:       #fcfaf7;   /* warm page background */
  --card:        #ffffff;
  --ink:         #3f4448;   /* body copy */
  --ink-soft:    #6b7378;
  --rule:        #e8e3dc;

  /* type */
  --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --track-wide: .18em;      /* the letterspacing that defines this brand */
  --track-mid:  .08em;

  /* rhythm */
  --gap:      clamp(1.25rem, 3vw, 2.5rem);
  --section:  clamp(3.5rem, 9vw, 7.5rem);
  --wrap:     1180px;

  --shadow: 0 2px 18px rgba(63, 68, 72, .07);
  --radius: 2px;
}

/* ---------- reset ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-deep); text-decoration: none; }
a:hover { color: var(--terracotta); }
button { font: inherit; }

/* ---------- typography ---------------------------------------------- */
h1, h2, h3, h4 {
  font-weight: 700;                 /* live site sets these bold, not light */
  color: var(--blue);
  letter-spacing: .06em;            /* bold needs less tracking than the wordmark */
  text-transform: uppercase;
  line-height: 1.25;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1rem; letter-spacing: var(--track-mid); }
p  { margin: 0 0 1.15em; }
strong { font-weight: 700; color: var(--blue-deep); }   /* live site bolds in blue */

.lead { font-size: 1.1rem; color: var(--ink-soft); }
.eyebrow {
  font-size: .72rem; letter-spacing: var(--track-wide);
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 1rem;
}

/* ---------- layout --------------------------------------------------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
/* narrower measure for text-led pages such as the Lios Report */
.wrap--narrow { width: min(100% - 2.5rem, 780px); }
.is-centred h1, .is-centred h2, .is-centred h3, .is-centred h4 { text-align: center; }
/* a paragraph that is nothing but bold text is a standalone statement — centre it,
   but leave its <strong> styling alone */
.is-centred .prose > p:has(> strong:only-child) { text-align: center; }
.is-centred figure { margin-inline: auto; max-width: 100%; text-align: center; }
.is-centred figure img { margin-inline: auto; }
.is-centred .prose > .row { justify-items: center; }
/* on the report page the sub-heading is grey sentence case, not blue caps */
.is-centred .prose h3 { color: var(--blue); text-transform: none; letter-spacing: 0; }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .55); }

/* the alternating image / text row that carries most of this site */
.split {
  display: grid;
  gap: var(--gap);
  align-items: stretch;
  overflow: hidden;
  grid-template-columns: 1fr;
  background: var(--card);
  box-shadow: var(--shadow);
  margin-bottom: var(--gap);
}
/* The media cell is a positioned box; the image fills it absolutely so it can
   never push the row taller than the text column. min-height on the <img> plus
   no overflow clipping was what made these spill over the card below. */
.split__media { position: relative; min-height: clamp(260px, 32vw, 460px); overflow: hidden; }
.split__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.split__body { padding: clamp(1.5rem, 4vw, 3.25rem); }

@media (min-width: 820px) {
  .split { grid-template-columns: 1fr 1fr; gap: 0; }
  /* reverse every other row, as on the live site */
  .split--reverse .split__media { order: 2; }
}

/* three-up promo tiles under the hero */
.tiles { display: grid; grid-template-columns: 1fr; gap: 2px; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { position: relative; overflow: hidden; min-height: clamp(190px, 20vw, 260px); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile:hover img { transform: scale(1.04); }
.tile__label {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: #fff; font-size: clamp(1rem, 2vw, 1.35rem); font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  background: rgba(63, 68, 72, .16);
  text-shadow: 0 1px 10px rgba(40, 50, 60, .45);
  text-align: center; padding: 1rem;
}
.tile:hover .tile__label { background: rgba(63, 68, 72, .30); }

/* card grid — used by the team block and the blog index */
.grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--card);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 2.5vw, 2rem);
}

/* post cards: image sits flush in the card, padding only on the copy below */
.card--post { padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.card--post__media { display: block; }
.card--post__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card--post__body { padding: clamp(1.25rem, 2.5vw, 1.75rem); }
.card--post__body > *:first-child { margin-top: 0; }
.card h3 { color: var(--ink); text-transform: none; letter-spacing: 0; font-weight: 600; }
.card__role {
  color: var(--ink); font-size: .88rem; font-weight: 700; letter-spacing: 0;
  text-transform: none; margin-bottom: 1.25rem;
}
.card p { font-size: .9rem; line-height: 1.7; }

/* the team block on who-we-are: centred cards, grey sentence-case heading */
.team-heading {
  margin-top: 3.5rem; margin-bottom: 2rem;
  color: var(--ink-soft); text-transform: none; letter-spacing: 0; font-weight: 400;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}
.grid--3 .card { text-align: center; }
.grid--3 .card h3 { text-align: center; }

/* ---------- utility bar (Contact / Get involved, above the nav) ------- */
.utilbar { border-bottom: 1px solid var(--rule); background: var(--paper); }
.utilbar__in { display: flex; justify-content: flex-end; align-items: center; gap: 1.5rem; padding-block: .45rem; }
.utilbar a {
  font-size: .68rem; font-weight: 500; letter-spacing: var(--track-mid);
  text-transform: none; color: var(--ink-soft);
  border-bottom: 1px solid var(--rule); padding-bottom: 2px;
}
.utilbar a:hover { color: var(--blue); border-color: var(--blue); }

/* ---------- header --------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(252, 250, 247, .94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--gap); padding-block: .9rem;
}
.brand { display: flex; align-items: center; gap: .6rem; }
.brand img { height: 34px; width: auto; }
.brand__word {
  font-size: 1.15rem; letter-spacing: .42em; color: var(--blue);
  text-transform: uppercase; padding-left: .1em;
}
.nav { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.9rem); }
.nav a {
  font-size: .74rem; font-weight: 500; letter-spacing: var(--track-mid);
  text-transform: uppercase; color: var(--ink); white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); }

.lang { display: flex; gap: .4rem; align-items: center; font-size: .7rem; letter-spacing: var(--track-mid); }
.lang a { color: var(--ink-soft); text-transform: uppercase; }
.lang a[aria-current="true"] { color: var(--blue); font-weight: 600; }
.lang span { color: var(--rule); }

/* burger — nav collapses below 900px */
.burger { display: none; background: none; border: 0; padding: .4rem; cursor: pointer; }
.burger span { display: block; width: 22px; height: 1.5px; background: var(--ink); margin: 5px 0; transition: .25s; }
@media (max-width: 899px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 61px 0 auto; flex-direction: column; align-items: flex-start;
    gap: 0; background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 1rem 1.25rem 1.5rem; transform: translateY(-120%); transition: transform .3s ease;
  }
  .nav[data-open="true"] { transform: translateY(0); }
  .nav a { padding: .65rem 0; font-size: .82rem; }
}

/* ---------- hero ----------------------------------------------------- */
.hero { text-align: center; padding-block: clamp(3rem, 8vw, 6rem) clamp(2rem, 5vw, 3.5rem); }
.hero__mark { width: clamp(90px, 12vw, 130px); margin: 0 auto 1.5rem; }
.hero__word {
  font-size: clamp(2.4rem, 7vw, 4.4rem); letter-spacing: .18em; font-weight: 500;
  color: var(--blue); text-transform: uppercase; margin: 0 0 .35em; padding-left: .18em;
}
.hero__tag { color: var(--ink-soft); letter-spacing: var(--track-mid); font-size: .95rem; }

/* interior page banner */
.banner { height: clamp(220px, 34vw, 420px); overflow: hidden; }
.banner img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- page hero (banner + centred title + scroll cue) ----------- */
.pagehero {
  position: relative;
  min-height: clamp(320px, 52vh, 560px);
  display: grid; place-items: center;
  background: var(--blue) center/cover no-repeat;
  text-align: center;
  overflow: hidden;
}
/* light gradients only — the photography should still read through */
.pagehero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(35,45,52,.30) 0%, rgba(35,45,52,.06) 38%, rgba(35,45,52,.34) 100%);
}
.pagehero__title {
  position: relative;
  margin: 0; padding: 1rem clamp(1rem, 5vw, 3rem);
  color: #fff; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; line-height: 1.15;
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  text-shadow: 0 2px 18px rgba(30, 40, 48, .35);
}
.pagehero__scroll {
  position: absolute; left: 50%; bottom: clamp(1.25rem, 3vw, 2.25rem);
  transform: translateX(-50%);
  width: 42px; height: 42px; display: grid; place-items: center;
  color: #fff; border: 1px solid rgba(255,255,255,.6); border-radius: 999px;
  animation: lios-bob 2.4s ease-in-out infinite;
}
.pagehero__scroll:hover { color: #fff; background: rgba(255,255,255,.16); border-color: #fff; }
@keyframes lios-bob {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 7px); }
}
@media (prefers-reduced-motion: reduce) { .pagehero__scroll { animation: none; } }

/* ---------- buttons / links ------------------------------------------ */
.btn {
  display: inline-block; border: 1px solid var(--blue); color: var(--blue);
  padding: .7rem 1.6rem; font-size: .74rem; font-weight: 600; letter-spacing: var(--track-mid);
  text-transform: uppercase; background: none; cursor: pointer; transition: .2s;
}
.btn:hover { background: var(--blue); color: #fff; }
.btn--solid { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.btn--solid:hover { background: var(--terracotta-deep); border-color: var(--terracotta-deep); color: #fff; }

.more {
  display: inline-block; margin-top: 1.25rem;
  font-size: .82rem; font-weight: 400; letter-spacing: 0;
  text-transform: none; color: var(--ink-soft);
}
.more::after { content: " ›"; color: var(--ink-soft); }
.more:hover { color: var(--blue); }
.more:hover::after { color: var(--blue); }
.more::after { content: " ›"; }

/* ---------- article body (CMS output) -------------------------------- */
.prose { max-width: none; }   /* live site runs full container width */
.prose h2, .prose h3 { margin-top: 2em; }
.prose ul { padding-left: 1.15em; margin: 0 0 1.15em; }
.prose li { margin-bottom: .5em; }
.prose img { margin: 0; box-shadow: var(--shadow); }
.prose a { text-decoration: underline; text-underline-offset: .18em; }

/* ---------- migrated Beaver Builder rows ------------------------------ */
/* .row/.col come out of the content migration: BB's column layout, preserved. */
.prose .row { display: grid; gap: var(--gap); margin: 2.25rem 0; }
@media (min-width: 760px) {
  .prose .row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prose .row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .prose .row--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.prose .col > *:first-child { margin-top: 0; }
.prose .col > *:last-child  { margin-bottom: 0; }
.prose figure { margin: 0 0 1.25rem; }
.prose figure img { width: 100%; box-shadow: none; margin: 0; }
.prose figcaption {
  font-size: .78rem; color: var(--ink-soft); margin-top: .6rem; line-height: 1.5;
}

/* ---------- text + side image (the who-we-are layout) ----------------- */
.sideby { display: grid; gap: var(--gap); align-items: start; }
@media (min-width: 900px) { .sideby { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); } }
.sideby__media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .sideby__media { position: sticky; top: 96px; }
  .sideby__media img { max-height: 78vh; }
}

/* ---------- share row (blog posts) ------------------------------------ */
.share { margin-top: clamp(2.5rem, 5vw, 4rem); text-align: center; }
.share__title {
  font-size: .78rem; font-weight: 600; letter-spacing: var(--track-wide);
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 1.25rem;
}
.share__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; justify-content: center; flex-wrap: wrap; gap: .9rem;
}
.share__btn {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  color: #fff; background: var(--ink-soft);
  transition: transform .18s ease, filter .18s ease;
}
.share__btn:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.08); }
.share__btn--facebook  { background: #1877f2; }
.share__btn--x         { background: #14171a; }
.share__btn--pinterest { background: #e60023; }
.share__btn--linkedin  { background: #0a66c2; }

/* ---------- forms ---------------------------------------------------- */
.field { margin-bottom: 1.1rem; }
.field label {
  display: block; font-size: .72rem; letter-spacing: var(--track-mid);
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: .4rem;
}
.field input, .field textarea {
  width: 100%; padding: .8rem .9rem; font: inherit; font-size: .95rem;
  border: 1px solid var(--rule); background: #fff; color: var(--ink); border-radius: var(--radius);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.field textarea { min-height: 170px; resize: vertical; }
/* honeypot — must stay reachable to bots but invisible+unfocusable to humans */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .82rem; color: var(--ink-soft); }
.alert { padding: .9rem 1.1rem; margin-bottom: 1.25rem; font-size: .9rem; border-left: 3px solid; }
.alert--ok  { border-color: var(--blue); background: #f2f7fb; }
.alert--err { border-color: var(--terracotta); background: #fdf3f0; }

/* ---------- contact form ---------------------------------------------- */
.contact-form { max-width: 620px; margin-top: 2.5rem; }
/* blue, rounded — matches the splash CTA rather than the terracotta accent */
.contact-form .btn {
  margin-top: .5rem; border-radius: 999px; padding: .85rem 2.2rem;
  background: var(--blue); border-color: var(--blue); color: #fff;
}
.contact-form .btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }

/* PayPal donate button on Get Involved */
.donate-form { margin: 1.5rem 0 0; }
.btn--donate {
  border-radius: 999px; padding: .85rem 2.2rem;
  background: var(--blue); border-color: var(--blue); color: #fff;
}
.btn--donate:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.contact-form .form-note { margin-top: 1.25rem; }

/* the contact hero is left-aligned on the live site; every other page centres */
.pagehero--left { place-items: center start; text-align: left; }
.pagehero--left .pagehero__title { padding-left: max(2.5rem, calc((100vw - var(--wrap)) / 2)); }

/* ---------- splash overlay ------------------------------------------- */
/* The old site made this a whole page at / and pushed everyone through a
   click. It is now an overlay on the homepage, dismissible, shown once per
   session (see assets/js/lios.js). */
.splash {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center; text-align: center;
  background: #93a3ad center/cover no-repeat;
  opacity: 1; transition: opacity .5s ease, visibility .5s;
}
.splash[hidden] { display: none; }
.splash.is-closing { opacity: 0; visibility: hidden; }
/* The live splash has no heavy scrim — the aerial shot is already pale, and a
   dark overlay kills it. Just enough tint to keep the white legible. */
.splash::before { content: ""; position: absolute; inset: 0; background: rgba(70, 84, 96, .12); }

.splash__in { position: relative; padding: 2rem; color: #fff; }

/* the emblem carries this screen — it is big on the live site */
.splash__mark {
  width: clamp(170px, 20vw, 330px);
  margin: 0 auto clamp(1.5rem, 3vw, 2.75rem);
  filter: drop-shadow(0 1px 12px rgba(40, 50, 60, .25));
}
.splash__claim {
  font-size: clamp(1.6rem, 4.4vw, 3.15rem);
  font-weight: 400;                 /* bolder than the site's body weight */
  letter-spacing: 0;                /* the claim is NOT letterspaced */
  color: #fff; text-transform: none;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
  text-shadow: 0 1px 14px rgba(40, 50, 60, .22);
}
/* solid white pill, dark label */
.splash .btn {
  background: #fff; border-color: #fff; color: var(--ink);
  border-radius: 999px; padding: .85rem 2rem;
  font-size: .8rem; font-weight: 600; letter-spacing: var(--track-mid);
  box-shadow: 0 2px 14px rgba(40, 50, 60, .16);
}
.splash .btn::after { content: " ›"; }
.splash .btn:hover { background: #fff; color: var(--terracotta); }
.splash__close {
  position: absolute; top: 1.25rem; right: 1.5rem; background: none; border: 0;
  color: #fff; font-size: 1.75rem; line-height: 1; cursor: pointer; opacity: .8;
}
.splash__close:hover { opacity: 1; }

/* ---------- footer --------------------------------------------------- */
.site-footer { padding-block: var(--section) 2.5rem; text-align: center; }

/* big letterspaced wordmark, emblem standing in for the O */
.site-footer__mark {
  display: flex; align-items: center; justify-content: center; gap: .28em;
  font-size: clamp(2.2rem, 5.5vw, 3.4rem); font-weight: 300; letter-spacing: .1em;
  color: var(--blue); margin-bottom: 2.5rem;
}
.site-footer__mark img { width: clamp(46px, 5.5vw, 74px); height: auto; opacity: .95; }
/* the wordmark is the logo, not a text link — never let the global a:hover
   terracotta rule recolour its letters */
.site-footer__mark:hover { color: var(--blue-deep); }
.site-footer__mark:hover img { opacity: 1; }

.site-footer__cta { margin-bottom: 2rem; }
.site-footer__cta a {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .95rem; color: var(--ink-soft);
  padding: .6rem 1.4rem; border: 1px solid transparent; border-radius: 999px;
  transition: background .2s, border-color .2s, color .2s;
}
.site-footer__cta a svg { color: var(--ink-soft); transition: color .2s; }
/* becomes a button on hover */
.site-footer__cta a:hover {
  color: #fff; background: var(--blue); border-color: var(--blue);
}
.site-footer__cta a:hover svg { color: #fff; }

.site-footer nav {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1.75rem; margin-bottom: 1.5rem;
}
/* footer links are sentence case on the live site, not uppercase */
.site-footer nav a {
  font-size: .9rem; font-weight: 400; letter-spacing: 0;
  text-transform: none; color: var(--ink-soft);
}
.site-footer nav a:hover { color: var(--blue); }

.colophon {
  font-size: .95rem; letter-spacing: 0; text-transform: none;
  color: var(--ink); margin-bottom: 1.5rem;
}
.colophon a { color: var(--blue); }

.site-footer__ak { display: inline-block; margin-bottom: 1.75rem; opacity: .85; }
.site-footer__ak:hover { opacity: 1; }
.site-footer__ak img { width: 96px; height: auto; }

.site-footer__social { display: flex; justify-content: center; gap: 1.4rem; margin-bottom: 1.5rem; }
.site-footer__social a { color: var(--ink-soft); display: inline-flex; }
.site-footer__social a:hover { color: var(--blue); }

.site-footer__copy { font-size: .82rem; color: var(--ink-soft); }

/* ---------- utilities ------------------------------------------------ */
.center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--blue); color: #fff;
  padding: .7rem 1.1rem; z-index: 100;
}
.skip-link:focus { left: 0; color: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
