/* Tezera website
   Palette: white and a soft neutral, charcoal text, deep green for actions
   (it echoes the logo's green), and a warm accent taken from the logo's gold.
   The warm accent fails contrast as text on white, so it is used only for lines and marks. */

@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-latin-wght.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-latin-wght.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --white: #ffffff;
  --soft: #f8f5f2;
  --charcoal: #282526;
  --green: #24533d;        /* primary: buttons, links, key marks */
  --green-hover: #1b4030;
  --green-tint: #e8f0eb;
  --accent: #cf893d;       /* lines and marks only */
  --accent-text: #8f5718;  /* accent that passes contrast on white */
  --muted: #5e5759;
  --line: #e6e0da;
  --field: #8a8285;        /* form borders: 3:1 against white */
  --error: #b3261e;

  --head: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 6.5rem);
  --radius: 6px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.65;
}

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

h1, h2, h3 {
  font-family: var(--head);
  color: var(--charcoal);
  line-height: 1.15;
  margin: 0 0 0.6em;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); letter-spacing: -0.025em; line-height: 1.08; }
h2, .h2-like { font-size: clamp(1.7rem, 3.2vw, 2.35rem); letter-spacing: -0.02em; }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }

a { color: var(--green); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--green-hover); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--charcoal);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 100;
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: var(--white); }

/* Small label above headings. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 1.25rem;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  flex: none;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  border: 2px solid var(--green);
  border-radius: var(--radius);
  background: var(--green);
  color: var(--white);
  font: 600 1.02rem/1.2 var(--head);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.button:hover { background: var(--green-hover); border-color: var(--green-hover); color: var(--white); text-decoration: none; }
.button[disabled] { opacity: 0.6; cursor: progress; }
.button-small { min-height: 2.5rem; padding: 0.45rem 1rem; font-size: 0.98rem; }
.button-quiet { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.button-quiet:hover { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }
.button-light { background: var(--white); border-color: var(--white); color: var(--green); }
.button-light:hover { background: var(--soft); border-color: var(--soft); color: var(--green-hover); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(8px); }
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--charcoal);
}
.brand:hover { color: var(--charcoal); }
.brand img { width: auto; height: 2.75rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.brand-sub { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.02em; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a:not(.button) {
  color: var(--charcoal);
  text-decoration: none;
  font-family: var(--head);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:not(.button):hover { color: var(--green); border-bottom-color: var(--green); }
.site-nav .button { color: var(--white); }

.nav-toggle { display: none; }

@media (max-width: 960px) {
  /* Without JavaScript the menu stays open, so every link is still reachable. */
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.4rem 0.9rem;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--charcoal);
    font: 600 1rem var(--head);
    cursor: pointer;
  }
  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    display: block;
    width: 1.1rem;
    height: 2px;
    background: currentColor;
    position: relative;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }

  .header-inner { flex-wrap: wrap; }
  .site-nav { width: 100%; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0 1.25rem;
  }
  .site-nav a:not(.button) {
    display: block;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.1rem;
  }
  .site-nav li:last-child { margin-top: 1rem; }
  .site-nav .button { width: 100%; }
}

/* Hero */
.hero {
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 7vw, 5rem);
  background: var(--soft);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.lead {
  font-size: clamp(1.15rem, 1.8vw, 1.28rem);
  color: var(--muted);
  max-width: 37rem;
}
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }

.hero-photo { margin: 0; }
.hero-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
}
/* Credit lines that the photo licences require. */
.hero-photo figcaption,
.about-photo figcaption {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.hero-photo figcaption a,
.about-photo figcaption a { color: var(--muted); }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { max-width: 28rem; }
}

/* Four-step strip under the hero */
.pillars {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.pillars ul {
  list-style: none;
  margin: 0;
  padding: 1.25rem 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem 2rem;
  font-size: 1rem;
  color: var(--muted);
}
.pillars li { border-left: 3px solid var(--accent); padding-left: 0.85rem; }
.pillars strong { display: block; font-family: var(--head); color: var(--charcoal); font-weight: 600; font-size: 1.05rem; }
@media (max-width: 760px) { .pillars ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Sections */
.section { padding: var(--section) 0; }
.section-alt { background: var(--soft); }
.section-head { max-width: 44rem; margin-bottom: clamp(2.25rem, 5vw, 3.25rem); }
.section-head > p:last-child { color: var(--muted); font-size: 1.15rem; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.about-side { display: grid; gap: 1.5rem; }
.about-photo { margin: 0; }
.about-photo img { width: 100%; border-radius: var(--radius); }

.meaning {
  background: var(--soft);
  border-left: 3px solid var(--accent);
  padding: 2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.meaning h3 { font-size: 1.1rem; }
.meaning blockquote {
  margin: 1.5rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
}
.meaning blockquote p {
  font-family: var(--head);
  font-size: 1.3rem;
  line-height: 1.35;
  color: var(--green);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}

.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem clamp(2rem, 5vw, 4rem);
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.vm { border-top: 3px solid var(--green); padding-top: 1.25rem; }
.vm p { margin: 0; font-size: 1.15rem; }

.values-title { margin-top: clamp(3rem, 6vw, 4.5rem); }
.values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.75rem 2rem;
  margin: 1.5rem 0 0;
}
.values div { border-top: 1px solid var(--line); padding-top: 1rem; }
.values dt { font-family: var(--head); font-weight: 600; color: var(--charcoal); font-size: 1.05rem; }
.values dd { margin: 0.3rem 0 0; color: var(--muted); font-size: 1rem; line-height: 1.5; }

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

/* Focus areas: lettered A to I, as in the profile. */
.focus-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: focus;
}
.focus-grid li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.8rem;
  counter-increment: focus;
}
.focus-grid li::before {
  content: counter(focus, upper-alpha);
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--green-tint);
  color: var(--green);
  font: 600 0.95rem var(--head);
  margin-bottom: 0.9rem;
}
.focus-grid h3 { font-size: 1.15rem; margin-bottom: 0.45rem; }
.focus-grid p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.55; }

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

/* What we do */
.work-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(2rem, 5vw, 4rem);
}
.work-list article {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.work-list article:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: calc(50% - 2rem); }
.work-list h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.work-list p { margin: 0; color: var(--muted); }

@media (max-width: 760px) {
  .work-list { grid-template-columns: 1fr; }
  .work-list article:last-child:nth-child(odd) { max-width: none; }
}

/* Approach: five stages in a row on wide screens. */
#approach .section-head { max-width: 52rem; }
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-top: 3.4rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 2.3rem;
  height: 2.3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font: 600 1rem var(--head);
}
.steps li::after {
  content: "";
  position: absolute;
  top: 1.15rem;
  left: 2.9rem;
  right: -1rem;
  height: 2px;
  background: var(--accent);
}
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.steps p { margin: 0; font-size: 1rem; color: var(--muted); line-height: 1.55; }

.stance {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--head);
  font-weight: 500;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--charcoal);
  letter-spacing: -0.01em;
}

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding: 0 0 1.75rem 3.6rem; }
  .steps li::after { top: 2.5rem; bottom: 0.2rem; left: 1.1rem; right: auto; width: 2px; height: auto; }
}

/* Partners and impact */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
}
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li {
  position: relative;
  padding: 0.6rem 0 0.6rem 1.6rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
}
/* A small check mark drawn with borders. */
.ticks li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 1.02rem;
  width: 0.65rem;
  height: 0.35rem;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}
.note { margin-top: 1.75rem; color: var(--muted); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* Get involved */
.section-dark { background: var(--green); color: var(--white); }
.section-dark h2 { color: var(--white); }
.section-dark .eyebrow { color: rgba(255, 255, 255, 0.85); }
.section-dark a:not(.button) { color: var(--white); }
.gi-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.gi-close { font-family: var(--head); font-weight: 500; font-size: 1.25rem; margin: 1.5rem 0 2rem; }
.gi-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.gi-list li {
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 1.1rem;
}
.gi-list li::before { content: "\2192"; color: var(--accent); margin-right: 0.75rem; }
@media (max-width: 860px) { .gi-grid { grid-template-columns: 1fr; } }

/* Contact */
#contact { background: var(--soft); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.safety {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--white);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1rem;
}
.safety h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.safety p:last-child { margin-bottom: 0; }
.safety a { font-weight: 600; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.35rem; font-size: 1rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.8rem;
  font: inherit;
  font-size: 1.05rem;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--field);
  border-radius: var(--radius);
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); outline: 3px solid var(--green-tint); outline-offset: 0; box-shadow: 0 0 0 1px var(--green); }
.field [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.field-error { color: var(--error); font-size: 0.95rem; margin: 0.35rem 0 0; font-weight: 500; }
.field-error::before { content: "\26A0\FE0E  "; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.cf-turnstile { margin: 0.5rem 0 1rem; min-height: 65px; }
.form-privacy { font-size: 0.95rem; color: var(--muted); }
.form-status { margin: 1rem 0 0; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-success { color: var(--green); }
.form-status.is-error { color: var(--error); }
.form-status:focus { outline: none; }

@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.8);
  padding: 3.5rem 0 2.5rem;
  font-size: 1rem;
}
.footer-inner { display: grid; gap: 1.75rem; }
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-brand img { height: 3rem; width: auto; background: var(--white); border-radius: 50%; padding: 0.35rem; }
.footer-name { font-family: var(--head); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--white); font-size: 1.2rem; margin: 0; }
.footer-tagline { margin: 0; font-style: italic; }
.signature { font-family: var(--head); font-weight: 500; font-size: 1.1rem; color: var(--white); max-width: 40rem; margin: 0; }
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.footer-meta p { margin: 0; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--white); }
.site-footer :focus-visible { outline-color: var(--white); }

/* Simple inner pages: privacy, thank you, errors */
.page { padding: var(--section) 0; }
.page .container { max-width: 46rem; }
.page h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
.page h2 { font-size: 1.4rem; margin-top: 2.5rem; }
.page ul { padding-left: 1.25rem; }
.page li { margin-bottom: 0.4rem; }
.page .meta { color: var(--muted); }

@media print {
  .site-header, .nav-toggle, .contact-form, .skip-link { display: none; }
  .section-dark, .site-footer { background: none; color: #000; }
  .section-dark h2, .signature, .footer-name { color: #000; }
}
