/* ===========================================================================
   UPR — foundations: design tokens, reset, the shared section system, the
   header, the menu drawer and the footer. Every template loads this file and
   then one stylesheet of its own.
   =========================================================================== */

:root {
  /* Brand */
  --cream: #f6f5ef;
  --deep: #0d3324;
  --lime: #c7f24d;
  --green: #14663d;
  --stone: #e9ece5;

  /* Ink */
  --ink: #12261c;
  --body: #3c4f44;
  --muted: #6c8175;

  /* Page palette */
  --page: #f7faf6;
  --page-ink: #101512;
  --nav-ink: #1d2a24;
  --green-mid: #1a6b34;
  --green-bright: #2f7d3f;
  --green-deep: #0c3d20;
  --green-deep-hover: #0f4d28;
  --muted-soft: #69737d;
  --muted-alt: #5b6470;
  --navy: #16324a;

  /* Section tints */
  --tint-mint: #dceade;
  --tint-sand: #eef2e0;
  --tint-sky: #dfecea;
  --tint-lime: #e6f3c8;
  --band-green: #0d3324;
  --band-green-soft: #14492f;

  /* On dark */
  --on-dark: #cfe3d6;
  --on-dark-dim: #a9c4b2;

  --page-max: 1240px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* The home page's fixed certification rail is 136px wide at --rail-left, so
     content beside it is inset by rail-left + 160px to clear it. Below 820px
     the rail becomes a bottom bar and the inset drops to a normal margin. */
  --rail-left: clamp(10px, 2.6vw, 50px);
  --gutter: calc(clamp(10px, 2.6vw, 50px) + 160px);
  --page-bottom: 0px;
}

@media (max-width: 819px) {
  :root {
    --gutter: clamp(18px, 5vw, 32px);
    --page-bottom: 188px;
  }
}

/* ---- Type ----------------------------------------------------------------- *
 * Archivo, self-hosted so there is no third-party request on first paint. One
 * variable file covers every weight the design uses (400-700).
 */
@font-face {
  font-family: Archivo;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/archivo-variable.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Archivo;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/archivo-variable-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Reset ---------------------------------------------------------------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--page-ink);
  font-family: Archivo, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--green-mid);
  text-decoration: none;
}

a:hover {
  color: var(--green);
}

::selection {
  background: var(--lime);
  color: var(--deep);
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--green-deep);
  color: #fff;
}

/* ---- Scroll reveal -------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
}

.no-js [data-reveal] {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ---- The section system ---------------------------------------------------
   Every page is a stack of `.sec` blocks in one of six grounds. */
.sec {
  position: relative;
  padding: clamp(64px, 9vw, 120px) clamp(18px, 4vw, 72px);
}

.sec--white { background: #fff; }
.sec--mint { background: var(--tint-mint); }
.sec--sand { background: var(--tint-sand); }
.sec--sky { background: var(--tint-sky); }
.sec--band { background: var(--band-green); color: #fff; }
.sec--band-soft { background: var(--band-green-soft); color: #fff; }

/* The home page insets its left edge for the fixed certification rail. */
.sec--gutter { padding-left: var(--gutter); }

.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--page-max);
  margin: 0 auto;
}

/* ---- Shared type ---------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--tint-lime);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--green-bright);
}

.sec--band .eyebrow,
.sec--band-soft .eyebrow {
  background: rgba(199, 242, 77, 0.16);
  color: var(--lime);
}

.h1 {
  margin: 0;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--green-deep);
  text-wrap: balance;
}

.h2 {
  margin: 0;
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--page-ink);
  text-wrap: balance;
}

.sec--band .h2,
.sec--band-soft .h2 {
  color: #fff;
}

.lede {
  margin: 20px 0 0;
  max-width: 56ch;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
  color: var(--muted-alt);
  text-wrap: pretty;
}

.sec--band .lede,
.sec--band-soft .lede {
  color: var(--on-dark);
}

.prose p {
  margin: 0 0 20px;
  font-size: clamp(16.5px, 1.3vw, 19px);
  line-height: 1.7;
  color: var(--page-ink);
  text-wrap: pretty;
}

/* Embedded video carries fixed pixel dimensions from whatever produced it, so
   constrain it to the column rather than letting it push the page sideways on
   a phone. The provider's own player is responsive inside the frame. */
.prose iframe {
  display: block;
  max-width: 100%;
  margin: 28px 0;
  border: 0;
  border-radius: 16px;
}

.prose img {
  height: auto;
  margin: 28px 0;
  border-radius: 16px;
}

/* ---- Buttons and links ---------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 52px;
  padding: 0 30px;
  border: 0;
  border-radius: 999px;
  background: var(--green-deep);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(12, 61, 32, 0.22);
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}

.btn:hover {
  background: var(--green-deep-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(12, 61, 32, 0.3);
}

.btn--lime {
  background: var(--lime);
  color: var(--deep);
}

.btn--lime:hover {
  background: #d6f77a;
  color: var(--deep);
}

.btn--outline {
  background: rgba(255, 255, 255, 0.55);
  border: 1.5px solid var(--navy);
  color: var(--navy);
  box-shadow: none;
}

.btn--outline:hover {
  background: var(--navy);
  color: #fff;
  transform: none;
}

.btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  box-shadow: none;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--green-deep);
}

.link-more .arrow {
  transition: transform 0.3s var(--ease);
}

a:hover > .link-more .arrow,
.link-more:hover .arrow {
  transform: translateX(4px);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
  font-size: 12.5px;
  color: var(--muted-soft);
}

.crumbs a {
  color: var(--muted-soft);
}

.crumbs a:hover,
.crumbs [aria-current] {
  color: var(--green-bright);
}

/* ---- Header --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 32px;
  padding: 14px clamp(18px, 3vw, 56px);
  background: rgba(247, 250, 246, 0.92);
  border-bottom: 1px solid rgba(24, 44, 34, 0.07);
}

.site-header__logo img {
  display: block;
  height: clamp(46px, 5vw, 60px);
  width: auto;
  mix-blend-mode: multiply;
}

.site-header__wordmark {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--green-deep);
}

.site-header__nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px clamp(14px, 3vw, 44px);
  white-space: nowrap;
}

.site-header__nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--nav-ink);
}

/* wp_nav_menu needs a real list; `contents` keeps the items as direct flex
   children of the nav, so the layout above is unchanged. */
.nav-list {
  display: contents;
  margin: 0;
  padding: 0;
}

.nav-list li {
  display: block;
  list-style: none;
}

.site-header__nav a:hover {
  color: var(--green-bright);
}

.site-header__nav .btn--outline {
  height: 46px;
}

.site-header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 11px;
  border: 1.5px solid rgba(24, 44, 34, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}

.site-header__burger span {
  display: block;
  height: 1.8px;
  background: var(--nav-ink);
  border-radius: 2px;
}

/* ---- Slide-in menu -------------------------------------------------------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  border: 0;
  padding: 0;
  background: rgba(9, 25, 17, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.menu-overlay[data-open='true'] {
  opacity: 1;
  pointer-events: auto;
}

.menu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: min(86vw, 340px);
  padding: 26px 26px calc(26px + env(safe-area-inset-bottom));
  background: var(--deep);
  color: #fff;
  box-shadow: -20px 0 60px rgba(9, 25, 17, 0.35);
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(0.22, 0.9, 0.3, 1);
}

.menu-drawer[data-open='true'] {
  transform: translateX(0);
}

.menu-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-drawer__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--lime);
}

.menu-drawer__close {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.menu-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  /* Breathing room between the Menu label above and the Join Us button below. */
  padding: 12px 0 16px;
}

/* Block, so the row is the full width of the drawer rather than the width of
   its own label: the tap target covers the whole line. */
.menu-drawer__nav a {
  display: block;
  padding: 12px 0;
  font-size: 19px;
  font-weight: 500;
  color: #fff;
}

.menu-drawer__nav a:hover {
  color: var(--lime);
}

.menu-drawer__join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--deep);
  font-size: 16px;
  font-weight: 600;
}

.menu-drawer__join:hover {
  color: var(--deep);
}

.menu-drawer__foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  color: #9fb5a6;
}

.menu-drawer__foot a {
  color: #e6f2ea;
  font-weight: 600;
}

@media (max-width: 819px) {
  .site-header__nav {
    display: none;
  }

  .site-header__burger {
    display: flex;
  }
}

/* ---- Footer --------------------------------------------------------------- */
.site-footer {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: clamp(56px, 7vw, 104px) clamp(16px, 4vw, 52px) 30px;
  background: var(--deep);
  color: #bcd4c5;
}

.site-footer__grid {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(30px, 4vw, 56px);
  justify-content: space-between;
  max-width: var(--page-max);
  margin: 0 auto;
}

.site-footer__brand {
  flex: 1 1 300px;
  min-width: 250px;
}

.site-footer__plate {
  display: inline-flex;
  padding: 14px 18px;
  border-radius: 4px;
  background: var(--cream);
}

.site-footer__plate img {
  height: 44px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
}

.site-footer__body {
  margin: 22px 0 0;
  max-width: 330px;
  font-size: 13.5px;
  line-height: 1.7;
  text-wrap: pretty;
}

.site-footer__diverted {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 0;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(199, 242, 77, 0.1);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
}

.site-footer__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--lime);
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 0 1 180px;
}

.site-footer__colTitle {
  margin: 0 0 6px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #7f9a8a;
}

.site-footer__col a,
.site-footer__col address {
  font-size: 14px;
  font-style: normal;
  line-height: 1.6;
  color: #bcd4c5;
}

.site-footer__col a:hover {
  color: var(--lime);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--page-max);
  margin: clamp(36px, 5vw, 64px) auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12.5px;
  color: #7f9a8a;
}

.site-footer__legal nav {
  display: flex;
  gap: 22px;
}

.site-footer__legal a {
  color: #7f9a8a;
}

.site-footer__legal a:hover {
  color: var(--lime);
}

/* ---- Closing band (used at the foot of every content page) ---------------- */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.cta-band__heading {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.03;
  font-weight: 600;
  letter-spacing: -0.035em;
  color: #fff;
  text-wrap: balance;
}

.cta-band__body {
  margin: 22px 0 0;
  max-width: 56ch;
  font-size: clamp(15.5px, 1.2vw, 17.5px);
  line-height: 1.65;
  color: var(--on-dark);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
