/* Roboto medium for the menu; the older pages only load the light and regular weights */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@500&display=swap");

/* Shared 2026 styles, loaded on every page by template-parts/nav.php.
   Site navigation: navy text by default; white only while the bar sits over a top image (.over-image) */
.nav {
  --orange: #f36c33;
  --navy: #222d38;
  --slate: #526d87;
  --white: #ffffff;
  --font-nav: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --nav-h: 84px;
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: height .4s var(--ease), box-shadow .4s var(--ease);
}
.nav *, .nav *::before, .nav *::after { box-sizing: border-box; }
.nav .wrap { width: min(1200px, 100% - 48px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; }
.nav .brand { display: block; height: auto; padding: 0; float: none; overflow: visible; }
.nav .brand img { display: block; height: 52px; width: auto; transition: height .4s var(--ease), filter .4s var(--ease); }
.nav.scrolled {
  box-shadow: 0 1px 0 rgba(34, 45, 56, .08);
}
/* The frosted background sits on a pseudo-element: backdrop-filter on .nav itself
   would trap the fixed-position mobile menu inside the bar's height */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0; transition: opacity .4s var(--ease);
}
.nav.scrolled::before { opacity: 1; }

.nav .menu { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; float: none; }
.nav .menu li { position: relative; margin: 0; padding: 0; list-style: none; float: none; }
.nav .menu a {
  display: block; margin: 0; padding: 10px 14px;
  font-family: var(--font-nav); font-weight: 500; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  color: var(--navy); transition: color .3s;
}
.nav .menu > li > a::after {
  content: ""; display: block; height: 2px; margin-top: 4px;
  background: var(--orange); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav .menu > li:hover > a::after, .nav .menu > li:focus-within > a::after { transform: scaleX(1); }
.nav .menu > li:hover > a { color: var(--orange); }

.nav .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 260px; width: auto; height: auto;
  list-style: none; margin: 0; padding: 10px 0;
  background: var(--orange);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .45s var(--ease);
}
.nav .menu > li:hover .sub-menu, .nav .menu > li:focus-within .sub-menu { clip-path: inset(0 0 0 0); }
.nav .sub-menu a { color: var(--white); font-size: 13px; letter-spacing: .12em; padding: 8px 20px; transition: padding .3s var(--ease), background-color .3s; }
.nav .sub-menu a:hover { padding-left: 28px; background: rgba(0, 0, 0, .08); color: var(--white); }

.nav .menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav .menu-toggle span { display: block; width: 26px; height: 2px; background: var(--navy); margin: 6px 0; transition: transform .35s var(--ease), opacity .3s, background-color .3s; }
.nav.open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav.open .menu-toggle span:nth-child(2) { opacity: 0; }
.nav.open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Over a top image, before scrolling: white logo, links and menu button, on a soft navy shade
   so they stay readable over light photos */
.nav.over-image::after {
  content: ""; position: absolute; inset: 0 0 -40px 0; z-index: -2; pointer-events: none;
  background: linear-gradient(180deg, rgba(34, 45, 56, .6) 0%, rgba(34, 45, 56, .25) 60%, rgba(34, 45, 56, 0) 100%);
  transition: opacity .4s var(--ease);
}
.nav.over-image.scrolled::after, .nav.over-image.open::after { opacity: 0; }
.nav.over-image:not(.scrolled):not(.open) .brand img { filter: brightness(0) invert(1); }
.nav.over-image:not(.scrolled):not(.open) .menu > li > a { color: var(--white); }
.nav.over-image:not(.scrolled):not(.open) .menu > li:hover > a { color: var(--orange); }
.nav.over-image:not(.scrolled):not(.open) .menu-toggle span { background: var(--white); }

/* Room for the fixed bar on pages that start on white; image pages run up under it */
html body.nav26-on-light { padding-top: 84px; }
html body.nav26-over-image { padding-top: 0; }

/* The old stylesheet hides .brand on phones and pads the page for the old bar */
@media (max-width: 960px) {
  .nav .menu-toggle { display: block; position: relative; z-index: 2; }
  .nav .brand { position: relative; z-index: 2; }
  .nav .menu {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px;
    padding: 96px 32px 32px; background: var(--white);
    clip-path: circle(0 at calc(100% - 44px) 42px); transition: clip-path .6s var(--ease);
  }
  .nav.open .menu { clip-path: circle(150% at calc(100% - 44px) 42px); }
  .nav .menu a { color: var(--navy); font-size: 20px; letter-spacing: .12em; }
  .nav .sub-menu { position: static; clip-path: none; background: none; padding: 0 0 8px 16px; min-width: 0; }
  .nav .sub-menu a { color: var(--slate); font-size: 15px; padding: 6px 14px; }
  .nav .sub-menu a:hover { background: none; color: var(--orange); padding-left: 14px; }
  .nav .menu > li > a::after { display: none; }
}
@media (max-width: 520px) {
  .nav .wrap { width: calc(100% - 32px); }
}

/* Keep the fixed nav below the WordPress admin bar for logged-in users (nav-2026.js fine-tunes this) */
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }

@media (prefers-reduced-motion: reduce) {
  .nav, .nav *, .nav::before { transition: none !important; }
}

/* Body text on the older page templates, matched to the new homepage (Roboto light, navy).
   Covers page content areas only, not team cards, galleries or the homepage's own sections. */
body.nav26:not(.home-2026) main .content p,
body.nav26:not(.home-2026) main .content li,
body.nav26:not(.home-2026) main .standard > p,
body.nav26:not(.home-2026) main .portfolio > p,
body.nav26 .feature-bio .biography {
  font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  color: #222d38;
}

/* Our Team: names styled like the navigation (Roboto medium, spaced capitals), job titles in Vista Light.
   Applies to the photo cards and the slide-out bio panel; colors stay as the team page sets them. */
@font-face {
  font-family: "Vista Light";
  src: url("../fonts/vista-light.woff") format("woff");
  font-display: swap;
}
body.nav26 .member .name {
  font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: .12em;
  text-transform: uppercase;
}
body.nav26 .member h3,
body.nav26 .member .job-title,
body.nav26 .members .member .about h3 {
  font-family: "Vista Light", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: normal;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: .01em;
}
/* Cards: name sits just above its title (the old theme put 6px between them) */
body.nav26 .members .member .about .name { margin-bottom: 0; line-height: 1.2; }
body.nav26 .members .member .about h3 { margin-top: 2px; }
body.nav26 .feature-bio .member .name { font-size: 24px; }
body.nav26 .feature-bio .member h3,
body.nav26 .feature-bio .member .job-title,
body.nav26 .feature-bio .members .member .about h3 { font-size: 18px; }

/* ---------- Portfolio grid: titles always on the image; hovering tints the bottom third ---------- */
.portfolio-list:not(.list) .portfolio-item > div a { background: #222d38; }
.portfolio-list:not(.list) .portfolio-item > div a img,
.portfolio-list:not(.list) .portfolio-item:hover > div a img { opacity: 1; }
/* Same zoom-out as the homepage slideshow: photos rest slightly zoomed in and ease back to full frame on hover */
.portfolio-list:not(.list) .portfolio-item > div a img {
  transform: scale(1.08);
  transition: transform 1.2s cubic-bezier(.22, .8, .24, 1);
}
.portfolio-list:not(.list) .portfolio-item:hover > div a img,
.portfolio-list:not(.list) .portfolio-item > div a:focus-visible img { transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
  .portfolio-list:not(.list) .portfolio-item > div a img { transform: none; transition: none; }
}
.portfolio-list:not(.list) .portfolio-item > div a .content {
  opacity: 1; transform: none; z-index: 2;
  background: linear-gradient(to bottom, rgba(34, 45, 56, 0) 0%, rgba(34, 45, 56, .6) 100%);
}
.portfolio-list:not(.list) .portfolio-item > div a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; z-index: 1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .6) 45%, rgba(0, 0, 0, .82) 100%);
  opacity: 0; transition: opacity .45s cubic-bezier(.22, .8, .24, 1);
  pointer-events: none;
}
.portfolio-list:not(.list) .portfolio-item:hover > div a::after,
.portfolio-list:not(.list) .portfolio-item > div a:focus-visible::after { opacity: 1; }

/* ---------- Portfolio filter tags: same caps label style as the nav ---------- */
div.filter { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 12px; margin: 6px 0 14px; }
div.filter .button,
div.filter .button:nth-child(2) {
  float: none; margin: 0; padding: 10px 18px;
  font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 500;
  font-size: 12px; line-height: 1; letter-spacing: .14em; text-transform: uppercase;
  color: #222d38; background: transparent; border: 1px solid rgba(34, 45, 56, .25);
  transition: color .3s, background-color .3s, border-color .3s, transform .35s cubic-bezier(.22, .8, .24, 1);
}
div.filter .button:hover { color: #f36c33; border-color: #f36c33; transform: translateY(-2px); }
div.filter .button.active,
div.filter .button.active:hover { color: #fff; background: #f36c33; border-color: #f36c33; }

/* ---------- Portfolio grid / list buttons ---------- */
div.toolbar a.btn { opacity: .35; transition: opacity .3s; }
div.toolbar a.btn:hover, div.toolbar a.btn.active { opacity: 1; }
div.toolbar a.btn:focus-visible { outline: 2px solid #f36c33; outline-offset: 2px; }

/* ---------- Portfolio list view: cards in the site's type style ---------- */
.portfolio-list.list .portfolio-item { padding: 8px; }
.portfolio-list.list .portfolio-item > div {
  padding: 0; background: #fff; border: 1px solid rgba(34, 45, 56, .12);
  transition: border-color .3s, box-shadow .45s cubic-bezier(.22, .8, .24, 1), transform .45s cubic-bezier(.22, .8, .24, 1);
}
.portfolio-list.list .portfolio-item:hover > div {
  border-color: rgba(243, 108, 51, .55); transform: translateY(-3px);
  box-shadow: 0 18px 36px -24px rgba(34, 45, 56, .45);
}
.portfolio-list.list .portfolio-item > div a { align-items: center; background: transparent; }
.portfolio-list.list .portfolio-item > div a img {
  width: 34%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; opacity: 1; transform: none;
}
.portfolio-list.list .portfolio-item > div a .content { width: 66%; padding: 16px 24px; background: transparent; }
.portfolio-list.list .portfolio-item > div a .content h2 {
  margin: 0 0 6px; font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 500;
  font-size: 15px; line-height: 1.3; letter-spacing: .12em; text-transform: uppercase;
  color: #222d38; text-shadow: none; transition: color .3s;
}
.portfolio-list.list .portfolio-item > div a .content h3 {
  margin: 0; font-family: "Vista Light", "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: normal;
  font-size: 17px; line-height: 1.3; letter-spacing: 0; text-transform: none;
  color: #526d87; text-shadow: none;
}
.portfolio-list.list .portfolio-item:hover > div a .content h2 { color: #f36c33; }
@media (max-width: 760px) {
  .portfolio-list.list .portfolio-item { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .portfolio-list.list .portfolio-item:hover > div { transform: none; }
}

/* ---------- Page text column: start in line with the logo, like the homepage ----------
   The old theme indents it 15% of the window; the logo sits in a centered 1200px area.
   Skipped on the homepage, whose careers panel also uses section > .content. */
body:not(.home-2026) section > div.content,
body:not(.home-2026) section > div.content.wider {
  box-sizing: border-box;
  margin: 0 0 0 max(24px, calc((100% - 1200px) / 2));
  padding: 0;
  width: min(900px, 100% - 48px);
}
body:not(.home-2026) section > div.content.wider { width: min(1200px, 100% - 48px); }
@media (max-width: 520px) {
  body:not(.home-2026) section > div.content,
  body:not(.home-2026) section > div.content.wider { margin-left: 16px; width: calc(100% - 32px); }
}
