@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;0,900;1,400&display=swap");

/* =========================================================
   MissionWise LLC — rebuilt to match the live IONOS theme
   ========================================================= */
:root {
  --page-bg: #e9e5e6;
  --header-bg: #d9d9d9;
  --section-bg: #02426b;
  --overlay-80: rgba(2, 66, 107, 0.8);
  --overlay-60: rgba(2, 66, 107, 0.6);
  --text-light: #e9e5e6;
  --text-dark: #383838;
  --heading-light: #645257;
  --accent: #005995;
  --font: "Lato", Arial, Helvetica, sans-serif;
  --content-w: 960px;
  --unit: 16px;
  --bg-hero: url("Images/herocircuit.png");
  --bg-navigate: url("Images/infra.jpg");
  --bg-whatwedo: url("Images/border.png");
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
html,
body {
  overflow-x: hidden;
}
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text-dark);
  font-family: var(--font);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.5px;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
p {
  margin: 0 0 1em;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font);
  margin: 0 0 0.5em;
  letter-spacing: 0;
}
h1 {
  font-size: 60px;
  font-weight: 900;
  line-height: 1.1;
}
h2 {
  font-size: 46px;
  font-weight: 900;
  line-height: 1.2;
}
h3 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 1px;
}
h4 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 1px;
}

.container {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 var(--unit);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 16px;
  max-width: none;
  width: 100%;
  padding: 10px 28px;
  position: relative;
}
.brand {
  flex: 0 0 auto;
  max-width: 220px;
  margin-right: auto;
}
.brand img {
  width: 100%;
  height: auto;
  background: transparent;
}

#nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  appearance: none;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 10px 7px;
  background: transparent;
  border: 0;
}
.burger span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--text-dark);
}

.site-nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.site-nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dark);
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.15s,
    color 0.15s;
}
.site-nav a:hover {
  background: rgba(2, 66, 107, 0.1);
}
.site-nav a[aria-current="page"] {
  background: var(--section-bg);
  color: var(--text-light);
}

.zone {
  background: var(--section-bg);
  color: var(--text-light);
}
.zone h1,
.zone h2,
.zone h3,
.zone h4 {
  color: var(--text-light);
}
.zone a {
  color: var(--text-light);
}

.zone.parallax {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.zone.hero {
  background-image: linear-gradient(var(--overlay-80), var(--overlay-80)), var(--bg-hero);
}
.zone.navigate {
  background-image: linear-gradient(var(--overlay-80), var(--overlay-80)), var(--bg-navigate);
}
.zone.whatwedo {
  background-image: linear-gradient(var(--overlay-60), var(--overlay-60)), var(--bg-whatwedo);
}

.zone.tall .container {
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 24px;
  padding-bottom: 24px;
}

.hero .tagline {
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  padding: 28px;
  margin: 0;
  max-width: none;
}
.hero .banner {
  padding: 0 0 var(--unit);
}
.hero .banner img {
  width: 100%;
  aspect-ratio: 1366 / 318;
  object-fit: cover;
}

.expertise .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: 1920px;
  margin: 0 auto;
}
.expertise .media {
  aspect-ratio: 1189 / 684;
  overflow: hidden;
}
.expertise .collage {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 6px;
  height: 100%;
}
.expertise .collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.expertise .collage img:nth-child(2) {
  object-position: center center;
}
.expertise .copy {
  padding: 20px calc(var(--unit) * 2 + 16px);
}

.quote .container {
  padding: 64px 32px;
  text-align: center;
}
.quote h2 {
  margin-bottom: 0.4em;
}
.quote p {
  font-style: italic;
  margin: 0;
}

.info .container {
  padding: 24px var(--unit);
}
.info .cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.info .box {
  border: 0;
  padding: 0;
  height: auto;
}
.info .box h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.site-footer {
  background: var(--section-bg);
  color: var(--text-light);
}
.site-footer .container {
  padding: 18px 28px 14px;
  max-width: none;
  text-align: center;
}
.site-footer .foot-tagline {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-light);
  text-transform: none;
  letter-spacing: 0;
}
.site-footer .foot-blurb {
  margin: 0 auto 10px;
  max-width: none;
  font-size: 13px;
  line-height: 1.45;
}
.site-footer .foot-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 12px;
  margin: 0 0 8px;
  font-size: 13px;
}
.site-footer .foot-meta a {
  color: var(--text-light);
}
.site-footer .foot-copy {
  margin: 0;
  font-size: 12px;
  opacity: 0.8;
}
.note {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 6px !important;
}

.page-hero {
  padding: 0;
  background: var(--section-bg);
}
.page-hero img {
  width: 100%;
  max-height: 640px;
  object-fit: cover;
  object-position: center center;
}

.page-stage {
  position: relative;
  z-index: 0;
}
.page-stage__bg {
  position: sticky;
  top: 0;
  height: 100vh;
  margin-bottom: -100vh;
  z-index: 0;
  background-color: var(--section-bg);
  background-size: cover;
  background-repeat: no-repeat;
}
.page-stage__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(2, 66, 107, 0.5) 0%,
    rgba(2, 66, 107, 0.18) 36%,
    rgba(2, 66, 107, 0.08) 100%
  );
}
.page-stage__fore {
  position: relative;
  z-index: 2;
}
.page-stage__title-slot {
  height: 8.5rem;
}
.page-stage__title {
  position: relative;
  z-index: 4;
  padding: 8px 0 16px;
}
.page-stage__title .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 28px;
  text-align: left;
  animation: titleRise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes titleRise {
  from {
    transform: translateY(42vh);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.page-stage__spacer {
  height: calc(100vh - 210px);
}
.page-stage__panels {
  position: relative;
  z-index: 2;
  will-change: transform; /* transform is driven by scroll in the page script */
}
.page-stage .kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
  opacity: 0.85;
}
.page-stage h1 {
  margin: 0;
  max-width: 16em;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  font-weight: 900;
  line-height: 1.12;
  color: var(--text-light);
  text-align: left;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
.page-banner--orgs {
  background-image: url("Images/team.png");
  background-position: center 42%;
}
.page-banner--gov {
  background-image: url("Images/capitol.png");
  background-position: center 55%;
}
.page-banner--leaders {
  background-image: url("Images/leaders.png");
  background-position: center 72%;
}
.page-banner--about {
  background-image: url("Images/service.jpg");
  background-position: center center;
}
.text-block {
  position: relative;
  z-index: 2;
  background: var(--section-bg);
}
.zone.info,
.site-footer {
  position: relative;
  z-index: 2;
}
.text-block .container {
  padding: 56px var(--unit);
}
.prose .container {
  padding: 56px var(--unit) 64px;
}
.prose h1 {
  font-size: 46px;
}
.prose h2 {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 1.6em 0 0.5em;
}
.prose ul {
  padding-left: 1.3em;
  margin: 0 0 1em;
}
.prose li {
  margin-bottom: 0.35em;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal[data-delay="1"] {
  transition-delay: 0.2s;
}
.reveal[data-delay="2"] {
  transition-delay: 0.4s;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .page-stage__copy .container {
    animation: none;
  }
  .page-stage__title .container {
    animation: none;
  }
}

@media (max-width: 1024px) {
  h1 {
    font-size: 48px;
  }
  h2 {
    font-size: 38px;
  }
  .expertise .row {
    grid-template-columns: 1fr;
  }
  .expertise .media {
    aspect-ratio: 16 / 9;
  }
  .info .cols {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }
  h1 {
    font-size: 36px;
  }
  h2 {
    font-size: 30px;
  }
  h3 {
    font-size: 24px;
  }
  .brand {
    flex-basis: 50%;
    max-width: 200px;
  }
  .burger {
    display: block;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--header-bg);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
    z-index: 40;
  }
  .site-nav.is-open,
  #nav-toggle:checked ~ .site-nav {
    display: flex;
  }
  .site-nav a {
    border-radius: 0;
    padding: 14px 20px;
  }
  .zone.parallax {
    background-attachment: scroll;
  }
  .zone.tall .container {
    min-height: 30vh;
  }
  .hero .banner img {
    aspect-ratio: 16 / 7;
  }
  .expertise .collage {
    grid-template-columns: 1fr;
  }
  .expertise .copy {
    padding: 24px var(--unit);
  }
  .quote .container {
    padding: 48px var(--unit);
  }

  /* --- Sub-page stage: on phones, drop the 100vh sticky/fixed effect and
         show the photo as a normal 4:3 banner with title + panels in flow. --- */
  .page-stage__bg {
    position: relative;
    height: auto;
    margin-bottom: 0;
    background-size: 100% auto;   /* full width, nothing cropped */
    background-position: center top;
  }
  /* Each banner takes the real aspect ratio of its photo so it shows uncropped. */
  .page-banner--orgs    { aspect-ratio: 3 / 2;    background-position: center top; }
  .page-banner--gov     { aspect-ratio: 1 / 1;    background-position: center top; }
  .page-banner--leaders { aspect-ratio: 1 / 1;    background-position: center top; }
  .page-banner--about   { aspect-ratio: 1024 / 572; background-position: center top; }
  .page-stage__bg::after {
    background: linear-gradient(to bottom, rgba(2, 66, 107, 0.15), rgba(2, 66, 107, 0.45));
  }
  .page-stage__title-slot,
  .page-stage__spacer {
    display: none;
  }
  .page-stage__title {
    position: relative !important;
    top: auto !important;
    background: var(--section-bg);
    padding: 20px 0 8px;
  }
  .page-stage__title .container {
    padding: 0 var(--unit);
    animation: none;
  }
  .page-stage h1 {
    font-size: clamp(1.6rem, 7vw, 2.1rem);
    max-width: none;
    text-shadow: none;
  }
  .page-stage__panels,
  .zone.info,
  .site-footer {
    transform: none !important;
  }
  .text-block .container {
    padding: 28px var(--unit);
  }
  /* --- Home-page collage: one column, each photo in its own 16:9 slot. --- */
  .expertise .media {
    aspect-ratio: auto;
  }
  .expertise .collage {
    grid-template-columns: repeat(3, 1fr); /* one row of three small squares */
    height: auto;
    gap: 4px;
  }
  .expertise .collage img {
    aspect-ratio: 1 / 1;
    height: auto;
  }
}
