/* ═══════════════════════════════════════════════════════════════
   100 Companies That Care — site.css
   One stylesheet for every page. Colours and fonts live in :root;
   change them there and the whole site follows.
   ═══════════════════════════════════════════════════════════════ */

@font-face { font-family: "Archivo"; src: url("/fonts/archivo-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/fonts/poppins-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/fonts/poppins-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/fonts/poppins-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --bg: #fff;           /* page ground */
  --ink: #000;          /* text */
  --red: #fc0000;       /* buttons, links */
  --teal: #173636;      /* the dark C.A.R.E. band on Mission */
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;   /* headings */
  --body: "Poppins", "Helvetica Neue", Arial, sans-serif;       /* everything else */
  --gutter: clamp(16px, 3vw, 43.2px);
  --wide: 1354px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-weight: 300; font-size: 16px; line-height: 1.8; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
strong, b { font-weight: 600; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; margin: 0 0 .6em; line-height: 1.3; }

.display-xl { font-size: clamp(40px, 4.711vw, 67.84px); line-height: 1.232; }
.display-l  { font-size: clamp(34px, 3.271vw, 47.1px); line-height: 1.3; }
.display-m  { font-size: clamp(28px, 2.551vw, 36.74px); line-height: 1.333; }
.display-s  { font-size: clamp(22px, 1.831vw, 26.37px); line-height: 1.366; }
.display-xs { font-size: clamp(18px, 1.351vw, 19.46px); line-height: 1.3; }
.eyebrow { font-size: 16px; margin: 0 0 1.6em; }
.small { font-size: clamp(14.27px, 3.8vw, 14.92px); line-height: 1.8; }
@media (min-width: 768px) { .small { font-size: 14.27px; } }
.center { text-align: center; }

.wrap { max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 6.6vw, 96px) 0; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 100; }

/* ── Buttons: the square red button used across the site ── */
.btn { display: inline-flex; align-items: center; justify-content: center; line-height: 1.2; font-family: var(--body); font-weight: 500; font-size: 14.27px; letter-spacing: .02em; text-decoration: none; padding: 1.2em 2em; background: var(--red); color: #fff; border: 0; transition: opacity .2s; }
.btn:hover { opacity: .85; }
.btn.large { font-size: clamp(17.08px, 1.231vw, 17.73px); }
.btn.white { background: #fff; color: var(--red); }
.btn.tiny { font-size: clamp(12.54px, 3.55vw, 13.84px); }
@media (min-width: 768px) { .btn.tiny { font-size: 12.54px; } }

/* ═══ Header ═══ */
.site-header { background: #fff; position: relative; z-index: 20; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 var(--gutter); min-height: clamp(96px, 11.25vw, 162px); }
.logo img { width: clamp(170px, 17.8vw, 256px); }
.nav-main { display: flex; align-items: center; gap: clamp(20px, 2.7vw, 43px); }
.nav-main a { text-decoration: none; font-size: 16px; padding: 1.6px 0; }
.nav-main a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.nav-main a.btn { margin-left: clamp(0px, 1.2vw, 18px); padding: 1.2em 2em; font-size: 14.27px; }
.menu-toggle, .menu-close { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--ink); }
.menu-toggle span { display: block; width: 36px; height: 1px; background: currentColor; margin: 9px 0; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav-main { display: none; position: fixed; inset: 0; background: #fff; flex-direction: column; justify-content: center; gap: 22px; z-index: 50; }
  .nav-main.open { display: flex; }
  .nav-main a { font-size: 33.15px; }
  .nav-main a.btn { margin: 24px 0 0; font-size: 14.92px; }
  .menu-close { display: block; position: absolute; top: 28px; right: var(--gutter); font-size: 44px; line-height: 1; }
}

/* ═══ Inset video hero (Home, Members) ═══ */
.hero { padding: 0 var(--gutter) var(--gutter); }
.hero .box { position: relative; overflow: hidden; display: flex; align-items: center; color: #fff; }
.hero.full .box { min-height: calc(100svh - clamp(96px, 11.25vw, 162px) - var(--gutter)); }
.hero.medium .box { min-height: clamp(430px, 33vw, 476px); }
.hero video, .hero .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .box::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,var(--shade, .25)); }
.hero .content { position: relative; z-index: 1; padding: 48px clamp(16px, 3.1vw, 45px); max-width: 780px; }
.hero h1, .hero h2 { margin: 0; }
.hero .btn { margin-top: 1.9em; }

/* ═══ Photo band (full-bleed image, text on top) ═══ */
.band { position: relative; color: #fff; display: flex; align-items: center; overflow: hidden; }
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,var(--shade, .25)); }
.band .wrap { position: relative; z-index: 1; width: 100%; }
.band a { text-decoration-thickness: 1px; text-underline-offset: 8px; }

/* ═══ Split: image + text side by side (Home) ═══ */
.split { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
@media (min-width: 768px) {
  .split { grid-template-columns: repeat(12, 1fr); gap: 0 20px; }
  .split .media-l { grid-column: 1 / 7; }
  .split .text-r  { grid-column: 8 / 13; }
  .split .text-l  { grid-column: 1 / 6; grid-row: 1; }
  .split .media-r { grid-column: 7 / 13; grid-row: 1; }
}
.split h3 { margin-bottom: .75em; }
.split .btn { margin-top: .4em; }

/* ═══ Cards: image + title + text (C.A.R.E. model, member tools) ═══ */
.cards { display: grid; gap: 36px 20px; grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) { .cards.four { grid-template-columns: repeat(4, 1fr); } .cards.three { grid-template-columns: repeat(3, 1fr); gap: 36px 50px; } }
.cards img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 22px; }
.cards .btn { margin-top: .6em; }
.teal { background: var(--teal); color: #fff; }

/* ═══ Member logo grid ═══ */
.logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) { .logos { grid-template-columns: repeat(3, 1fr); gap: 26px; } }
.logos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ═══ FAQs ═══ */
.faq-top { display: grid; gap: 8px 40px; }
@media (min-width: 900px) { .faq-top { grid-template-columns: 4fr 3fr 3fr; } .faq-top > h1 { padding-left: 42px; } }
.faq-top h2 { margin-bottom: 1.1em; }
.faq-top .qa { margin-bottom: 1.6em; }
.faq-more { display: grid; gap: 24px 50px; }
@media (min-width: 768px) { .faq-more { grid-template-columns: 1fr 1fr; } }
.faq-more h2 { margin-bottom: 1.4em; }

/* ═══ Apply ═══ */
.apply-grid { display: grid; gap: 48px 80px; }
@media (min-width: 900px) { .apply-grid { grid-template-columns: 1fr 1.05fr; } }
.apply-grid ul { padding-left: 40px; }
.apply-grid li { margin-bottom: .3em; }
.form-embed { width: 100%; height: 560px; border: 0; background: #fafafa; }

/* ═══ Impact Updates (blog list + posts) ═══ */
.post-grid { display: grid; gap: 64px 40px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) { .post-grid { grid-template-columns: 1fr 1fr; gap: 80px 40px; } }
.post-grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 34px; }
.post-grid time { font-size: 16px; }
.post-grid h2 { margin: .45em 0 .75em; line-height: 1.4; }
.post-grid h2 a { text-decoration: none; }
.post-grid .excerpt a, .read-more { color: var(--red); }
.read-more { display: inline-block; margin-top: 1.4em; text-decoration: none; }

.post { max-width: 1014px; margin: 0 auto; }
.post .meta { font-size: 16px; font-weight: 300; margin-bottom: 1.6em; }
.post h1 { margin-bottom: .8em; line-height: 1.4; }
.post .body a { color: var(--red); }
.post .body figure { margin: 2em 0; }
.post .body img { width: 100%; }
.post .body figure.small-img img { width: auto; margin: 0 auto; }
.post .author { margin-top: 4em; font-size: 14.27px; }
.post .author a { text-decoration: none; }
.pager { display: flex; justify-content: space-between; gap: 24px; margin-top: 48px; }
.pager a { display: flex; align-items: center; gap: 22px; text-decoration: none; font-family: var(--display); font-weight: 500; }
.pager a.next { margin-left: auto; text-align: right; }
.pager svg { flex: none; width: 16px; height: 28px; }
@media (max-width: 767px) { .pager span { display: none; } .pager a::after { content: attr(data-label); font-family: var(--body); font-weight: 300; font-size: 16px; } }

/* ═══ Footer ═══ */
.site-footer { padding: 42px 0 64px; }
.site-footer h2 { margin-bottom: 2.6em; }
.site-footer .cols { display: grid; gap: 16px; }
@media (min-width: 768px) { .site-footer .cols { grid-template-columns: 225px 1fr; } }
.site-footer .links a { display: block; color: var(--red); margin-bottom: 1em; line-height: 1.2; text-underline-offset: 3px; }
.site-footer .cols a { color: var(--red); }

/* Reduced motion: hold background videos on their first frame */
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

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