/* Shared ENGAGE site styles. Replace image placeholders with real assets when available. */

:root {
  --engage-red: #b00020;
  --engage-red-dark: #870019;
  --ink: #202024;
  --muted: #62636a;
  --paper: #ffffff;
  --soft: #f6f4f3;
  --line: #e8e4e3;
  --content-width: 1120px;
  --page-gutter: clamp(1.25rem, 4vw, 3.5rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

a { color: inherit; }

.site-shell {
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
}

.site-header {
  min-height: 88px;
  padding: .6rem var(--page-gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 7vw, 6.5rem);
  background: #fff;
  border-bottom: 1px solid #f0eeee;
  position: relative;
  z-index: 2;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  display: block;
  width: 82px;
  max-height: 64px;
  object-fit: contain;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4.2vw, 3.5rem);
}

.primary-nav a {
  padding: .45rem 0;
  color: #19191d;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a.active {
  color: var(--engage-red);
}

.primary-nav a:focus-visible,
.text-link:focus-visible,
.menu-toggle:focus-visible {
  outline: 3px solid #d7a3ad;
  outline-offset: 4px;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: .5rem;
  cursor: pointer;
}

.menu-toggle > span:not(.sr-only) {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.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;
}

.hero-image {
  min-height: clamp(340px, 48vw, 600px);
  display: flex;
  align-items: center;
  padding: 2rem var(--page-gutter);
  overflow: hidden;
  background: var(--ink);
  position: relative;
  isolation: isolate;
}

.hero-image::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(90deg, rgb(15 19 24 / 65%), rgb(15 19 24 / 8%) 75%);
  pointer-events: none;
}

.hero-slides {
  position: absolute;
  inset: 0 auto 0 0;
  display: flex;
  width: 300%;
  height: 100%;
  transform: translateX(calc(var(--active-slide, 0) * -33.333333%));
  transition: transform 900ms cubic-bezier(.22, .72, .24, 1);
}

.hero-slide {
  flex: 0 0 33.333333%;
  min-width: 0;
  height: 100%;
}

.hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.hero-placeholder {
  position: relative;
  z-index: 1;
  width: min(100%, var(--content-width));
  margin: 0 auto;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .4rem;
  text-shadow: 0 1px 12px rgb(0 0 0 / 25%);
}

.hero-controls {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(.75rem, 3vw, 2rem);
  pointer-events: none;
}

.hero-control {
  display: grid;
  width: clamp(2.75rem, 5vw, 3.5rem);
  height: clamp(2.75rem, 5vw, 3.5rem);
  place-items: center;
  border: 1px solid rgb(255 255 255 / 75%);
  border-radius: 50%;
  background: rgb(20 25 30 / 35%);
  color: white;
  font: inherit;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease;
  pointer-events: auto;
}

.hero-control:hover {
  background: rgb(20 25 30 / 70%);
  transform: scale(1.05);
}

.hero-control:focus-visible {
  outline: 3px solid white;
  outline-offset: 3px;
}

.placeholder-kicker {
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
}

.placeholder-title {
  max-width: 680px;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -.035em;
}

.placeholder-title span {
  display: block;
}

.placeholder-note {
  margin-top: .65rem;
  font-size: .8rem;
  opacity: .85;
}

.intro {
  padding: clamp(3.5rem, 8vw, 7rem) var(--page-gutter);
  display: flex;
  justify-content: center;
  text-align: left;
  background: #fff;
}

.intro-copy {
  width: min(100%, var(--content-width));
}

.eyebrow {
  margin: 0 0 .65rem;
  color: var(--engage-red);
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.intro h1 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.13;
  letter-spacing: -.04em;
  font-weight: 650;
}

.intro-text {
  max-width: none;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  text-align: left;
}

.intro-text + .intro-text {
  margin-top: 1rem;
}

.page-intro {
  padding: clamp(4rem, 9vw, 7rem) var(--page-gutter);
  text-align: center;
  background: #840827;
  color: white;
}

.page-intro .eyebrow,
.page-intro-copy > p:last-child {
  color: white;
}

.page-intro-copy {
  width: min(100%, 760px);
  margin: 0 auto;
}

.page-intro h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -.045em;
  font-weight: 650;
}

.page-intro-copy > p:last-child {
  max-width: 620px;
  margin: 1.15rem auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.project-copy {
  padding: clamp(3.5rem, 8vw, 6rem) var(--page-gutter);
  background: white;
}

.project-copy-inner {
  width: min(100%, 760px);
  margin: 0 auto;
}

.project-copy p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.project-copy p:last-child { margin-bottom: 0; }

.partners-section {
  padding: clamp(3.5rem, 7vw, 6rem) var(--page-gutter);
  background: var(--soft);
}

.partners-heading {
  max-width: var(--content-width);
  margin: 0 auto 2rem;
  text-align: center;
}

.partners-heading h2,
.contact-card h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -.035em;
}

.partners-heading > p:last-child {
  margin: .75rem 0 0;
  color: var(--muted);
}

.partner-grid {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.partner-card {
  min-height: 130px;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: white;
  border-radius: 5px;
}

.partner-card a {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

.partner-card a:focus-visible {
  outline: 3px solid #d7a3ad;
  outline-offset: 4px;
}

.partner-logo {
  display: block;
  width: 100%;
  max-height: 100px;
  object-fit: contain;
}

.contact-section {
  min-height: 420px;
  padding: clamp(3.5rem, 8vw, 6rem) var(--page-gutter);
  display: grid;
  place-items: center;
  background: white;
}

.contact-card {
  width: min(100%, 680px);
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: 5px;
  box-shadow: 0 12px 36px rgb(31 20 20 / 5%);
}

.contact-card > p:not(.eyebrow) { color: var(--muted); }

.contact-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-entry {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.contact-entry:first-child {
  padding-top: 0;
  border-top: 0;
}

.contact-entry h3 {
  margin: 0 0 .65rem;
  font-size: 1.25rem;
  line-height: 1.2;
}

.contact-entry p {
  margin: .2rem 0;
  color: var(--muted);
}

.contact-entry a {
  color: var(--engage-red);
}

.contact-detail {
  margin: 1rem 0 .35rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.contact-detail a { color: var(--engage-red); }

.contact-note { margin-bottom: 0; font-size: .88rem; }

.has-scroll-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease;
}

.has-scroll-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.partner-grid [data-reveal]:nth-child(4n + 2) { transition-delay: 80ms; }
.partner-grid [data-reveal]:nth-child(4n + 3) { transition-delay: 160ms; }
.partner-grid [data-reveal]:nth-child(4n + 4) { transition-delay: 240ms; }

.network-content {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 6rem) var(--page-gutter);
}

.network-copy {
  max-width: 760px;
  margin: 0 auto 2rem;
}

.network-copy p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.network-copy p:last-child { margin-bottom: 0; }

.network-hero .network-gallery {
  width: min(100%, 900px);
  margin: 2rem auto 0;
  text-align: left;
}

.network-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0 auto 3rem;
}

.network-card {
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 5px;
  box-shadow: 0 10px 28px rgb(31 20 20 / 4%);
}

.headshot-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #f5f3f2, #e9edf3);
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.network-card-copy {
  padding: 1.1rem 1rem 1.35rem;
}

.network-card-copy h2 {
  margin: 0 0 .3rem;
  font-size: 1.45rem;
}

.network-card-copy p {
  margin: 0;
  color: var(--muted);
}

.network-citations {
  max-width: 760px;
  margin: 0 auto;
}

.network-citations h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.network-citations ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.network-citations li + li {
  margin-top: .9rem;
}

.network-citations p {
  margin: 0;
}

.legal-section {
  padding: clamp(3rem, 6vw, 5rem) var(--page-gutter) clamp(4rem, 8vw, 6rem);
  background: white;
}

.legal-copy {
  width: min(100%, 760px);
  margin: 0 auto;
}

.legal-copy h2 {
  margin: 2rem 0 .75rem;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.2;
}

.legal-copy h2:first-child {
  margin-top: 0;
}

.legal-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.legal-copy a {
  color: var(--engage-red);
}

.content-grid {
  width: min(100% - 2 * var(--page-gutter), var(--content-width));
  margin: 0 auto;
  padding: 0 0 clamp(4rem, 7vw, 6.5rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.content-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: white;
  border-radius: 5px;
}

.card-image-placeholder {
  min-height: 190px;
  display: grid;
  place-items: center;
  color: #4b5558;
  background: linear-gradient(135deg, #d7e1e2, #aabfc3);
  font-size: .82rem;
}

.card-image-placeholder--alt {
  background: linear-gradient(135deg, #e8d7d3, #c5b1b1);
}

.card-copy { padding: 1.6rem 1.7rem 1.8rem; }

.card-copy h2,
.embed-heading h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -.025em;
}

.card-copy > p:not(.eyebrow) {
  margin: .75rem 0 1.15rem;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--engage-red);
  font-weight: 700;
  text-decoration: none;
}

.text-link span { transition: transform .18s ease; }
.text-link:hover span { transform: translateX(4px); }

.embed-section {
  padding: clamp(3.5rem, 7vw, 6rem) var(--page-gutter);
  background: var(--soft);
}

.embed-heading {
  max-width: var(--content-width);
  margin: 0 auto 1.75rem;
}

.embed-heading > p:last-child {
  color: var(--muted);
  margin-bottom: 0;
}

.iframe-frame {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border: 1px solid #ded9d8;
  background: #fff;
  border-radius: 5px;
}

.iframe-frame iframe {
  display: block;
  width: 100%;
  height: clamp(320px, 52vw, 620px);
  border: 0;
}

.iframe-placeholder-label {
  position: absolute;
  inset: auto 0 0;
  padding: .55rem 1rem;
  color: #555;
  background: rgb(255 255 255 / 92%);
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: .8rem;
  pointer-events: none;
}

.site-footer {
  padding: 2rem var(--page-gutter);
  color: white;
  background: #93223e;
}

.footer-inner {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.eu-credit {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1 1 auto;
  min-width: 0;
}

.eu-disclaimer {
  max-width: 560px;
  margin: 0;
  color: #d6c9cc;
  font-size: .78rem;
  line-height: 1.35;
}

.eu-credit strong { font-weight: 750; }

.eu-logo {
  display: block;
  width: min(100%, 220px);
  height: auto;
  flex: 0 0 220px;
  margin-left: calc(-1 * var(--page-gutter));
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .35rem;
}

.footer-link {
  color: white;
  font-size: .82rem;
  text-decoration: none;
  opacity: .9;
}

.footer-link:hover,
.footer-link:focus-visible {
  opacity: 1;
  text-decoration: underline;
}

.footer-note {
  margin: 0;
  font-size: .82rem;
  opacity: .88;
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 680px) {
  .site-header {
    min-height: 88px;
    justify-content: space-between;
    gap: 1rem;
  }

  .brand img { width: 82px; }

  .menu-toggle { display: block; }

  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: .75rem var(--page-gutter) 1.25rem;
    align-items: stretch;
    flex-direction: column;
    gap: .2rem;
    background: white;
    border-top: 1px solid var(--line);
    box-shadow: 0 12px 18px rgb(0 0 0 / 8%);
  }

  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: .65rem 0; }

  .hero-image { min-height: 360px; }
  .hero-controls { padding: 0 .65rem; }
  .network-gallery { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .card-image-placeholder { min-height: 170px; }
  .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-card { min-height: 105px; }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.2rem;
  }

  .eu-logo {
    width: min(100%, 160px);
    flex-basis: 160px;
  }

  .eu-credit {
    align-items: flex-start;
    flex-direction: column;
  }

  .eu-disclaimer {
    max-width: none;
    font-size: .75rem;
  }

  .footer-note {
    font-size: clamp(.65rem, 3.2vw, .82rem);
    text-align: left;
    white-space: nowrap;
  }
}

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