/* ==========================================================================
   Condon-Johnson demo — design layer.
   One typeface (Archivo, variable width), true black, white and concrete
   gray, brand orange reserved for the logo mark and interaction.
   Loaded after the original theme stylesheets; inner pages inherit the
   type, header and footer treatment, the homepage sections are rebuilt.
   ========================================================================== */

:root {
  --orange: #e96024;
  --black: #000;
  --steel: #6b7075;
  --concrete: #eeefef;
  --rule: rgba(0, 0, 0, 0.14);
  --font: 'Bricolage Grotesque', 'Gotham', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- base ---------------------------------------------------------------- */
body {
  font-family: var(--font);
  font-stretch: 100%;
  font-size: 16px;
  line-height: 1.55;
  color: var(--black);
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .title {
  font-family: var(--font);
  color: var(--black);
}

a {
  color: var(--black);
  text-decoration: none;
  transition: color 0.15s var(--ease);
}

a:hover,
a:focus {
  color: var(--orange);
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

img {
  max-width: 100%;
}

.grecaptcha-badge {
  visibility: hidden !important;
}

/* Inner-page section headings keep the theme's placement, in the new type */
.services h1, .industry-leader h1, .recent-projects h1, .affiliated-organizations h1,
.our-roots h1, .vision-and-values h1, .meet-the-team h1, .magazine h1,
.technical-papers h1, .what-we-do h1, .careers-list h1, .contact-form h1,
.locations h1, .pageheading h1, .careers h1, .published-articles h1 {
  font-family: var(--font);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--black);
  margin: 0;
  padding: 0 0 16px;
  line-height: 1.1;
}

hr {
  width: 40px;
  height: 2px;
  background-color: var(--black);
  border: 0;
  margin: 0 0 40px;
}

.button,
a.button {
  display: inline-block;
  width: auto;
  height: auto !important;
  padding: 13px 22px;
  border-radius: 0;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
}

.button-orange {
  background-color: var(--black);
  border: 1px solid var(--black);
  color: #fff;
}

.button-orange:hover,
.button-orange:focus {
  background-color: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

/* ---- header -------------------------------------------------------------- */
.header,
.header-color {
  background-color: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--black);
  box-shadow: 0 1px 0 var(--rule);
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.header a,
.header-color a {
  color: var(--black);
}

.header .logo,
.header-color .logo {
  width: 170px;
  height: 34px;
  margin: 14px 0;
  padding: 0;
  background-image: url(../../wp-content/themes/condon-johnson/images/logo-color.svg);
  background-size: contain;
  background-position: left center;
}

.header .button-show-menu .icon-bar,
.header-color .button-show-menu .icon-bar {
  background-color: var(--black);
  width: 26px;
  height: 2px;
}

.header ul > li {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.header .navbar > ul > li > a:hover,
.header .navbar > ul > li > a:focus {
  color: var(--orange);
}

.header-color .navbar > ul > li > a.active:after,
.header-color .navbar > ul > li > a:hover:after {
  display: none;
}

.header .dropdown-menu {
  left: 0;
  width: 224px;
  padding: 6px 0;
  border: 1px solid var(--rule);
  border-top: 2px solid var(--black);
  border-radius: 0;
  background-color: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.header .dropdown-menu a {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  padding: 9px 16px;
}

.header .dropdown-menu > li > a:hover,
.header .dropdown-menu > li > a:focus {
  background-color: var(--concrete);
  color: var(--orange);
}

/* Homepage: see-through over the hero, white bar once the hero scrolls out. */
body.home .header {
  background-color: rgba(0, 0, 0, 0.28);
  box-shadow: none;
}

body.home .header a,
body.home .header .navbar > ul > li > a {
  color: #fff;
}

body.home .header .navbar > ul > li > a:hover,
body.home .header .navbar > ul > li > a:focus {
  color: var(--orange);
}

body.home .header .logo {
  background-image: url(../../wp-content/themes/condon-johnson/images/logo-hero.svg);
}

body.home .header .button-show-menu .icon-bar {
  background-color: #fff;
}

body.home .header.header--solid {
  background-color: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 0 var(--rule);
}

body.home .header.header--solid a,
body.home .header.header--solid .navbar > ul > li > a {
  color: var(--black);
}

body.home .header.header--solid .navbar > ul > li > a:hover {
  color: var(--orange);
}

body.home .header.header--solid .logo {
  background-image: url(../../wp-content/themes/condon-johnson/images/logo-color.svg);
}

body.home .header.header--solid .button-show-menu .icon-bar {
  background-color: var(--black);
}

/* Desktop: logo left, nav right, one short row. Below 768px the theme's
   stacked layout stays, since the mobile nav relies on the collapse panel
   dropping to full width under the bar. */
@media (min-width: 768px) {
  .header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }
  .header .logo { order: 1; flex: 0 0 auto; }
  .header .button-show-menu { order: 3; }
  .header .row.top-menu { order: 2; flex: 1 1 auto; margin: 0; text-align: right; }
  .header .row.top-menu .col-md-12 { padding: 0; }
  .header .navbar { display: inline-block; padding: 0; width: auto; }
  .header ul > li { padding: 0 14px; }
}

@media (max-width: 767px) {
  .header .logo { margin: 10px 0; }
  .header .top-menu, .header-color .top-menu { background-color: #fff; }
  .header .top-menu a, .header-color .top-menu a { border-bottom: 1px solid var(--rule); color: var(--black); }
  body.home .header .top-menu { background-color: rgba(0, 0, 0, 0.9); }
  body.home .header .top-menu a { border-bottom-color: rgba(255, 255, 255, 0.15); color: #fff; }
}

/* ---- hero ---------------------------------------------------------------- */
.hero-video {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background-color: var(--black);
}

.hero-video__media {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.hero-video__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0) 35%);
}

/* ---- homepage sections: a left rail with the section name, content right - */
.cj-section {
  padding: 0 40px;
}

.cj-section__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 0 104px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  column-gap: 48px;
  align-items: start;
}

.cj-about .cj-section__inner {
  border-top: 0;
  padding-top: 120px;
}

.cj-section h2.cj-section__title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  margin: 0;
  padding-top: 4px;
  max-width: 14em;
}

.cj-section__body {
  min-width: 0;
}

/* Statement */
.cj-statement {
  font-size: clamp(24px, 2.5vw, 33px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.014em;
  max-width: 27em;
  margin: 0;
}

.cj-about__more {
  margin: 40px 0 0;
  font-size: 16px;
}

.cj-about__more a,
.cj-projects__more a {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

/* Services: the page's one loud element */
/* The services list and its photo column sit directly in the section grid so
   the photo can take a full third of the page. */
.cj-services .cj-section__inner {
  grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr);
}

.cj-services__body {
  display: contents;
}

.cj-services__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cj-services__list li {
  border-bottom: 1px solid var(--rule);
}

.cj-services__list li:first-child {
  border-top: 1px solid var(--rule);
}

.cj-services__list a {
  display: block;
  padding: 26px 0 28px;
  color: var(--black);
}

.cj-services__name {
  display: block;
  font-stretch: 75%;
  font-weight: 800;
  font-size: clamp(44px, 5.6vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  transition: color 0.15s var(--ease);
}

.cj-services__list a:hover .cj-services__name,
.cj-services__list a:focus .cj-services__name {
  color: var(--orange);
}

.cj-services__sub {
  display: block;
  margin-top: 14px;
  max-width: 36em;
  font-size: 15px;
  line-height: 1.5;
  color: var(--steel);
}

.cj-services__media {
  position: sticky;
  top: 112px;
  aspect-ratio: 3 / 4;
  background-color: var(--concrete);
  overflow: hidden;
}

.cj-services__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.cj-services__media img.is-active {
  opacity: 1;
}

/* Projects: asymmetric grid, captions beneath */
.cj-projects__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 40px 24px;
}

.cj-project {
  display: block;
  color: var(--black);
}

.cj-project:nth-child(1) { grid-column: span 7; }
.cj-project:nth-child(2) { grid-column: span 5; }
.cj-project:nth-child(n + 3) { grid-column: span 4; }

.cj-project figure {
  margin: 0;
}

.cj-project img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background-color: var(--concrete);
}

.cj-project:nth-child(1) img {
  aspect-ratio: 3 / 2;
}

.cj-project:nth-child(2) img {
  aspect-ratio: 5 / 4.67;
}

.cj-project figcaption {
  padding-top: 14px;
  font-size: 16px;
  line-height: 1.4;
}

.cj-project figcaption b {
  display: block;
  font-weight: 600;
  transition: color 0.15s var(--ease);
}

.cj-project:hover figcaption b,
.cj-project:focus figcaption b {
  color: var(--orange);
}

.cj-project figcaption span {
  display: block;
  color: var(--steel);
}

.cj-projects__more {
  margin: 48px 0 0;
  font-size: 16px;
}

/* Offices: the map breaks out of the rail and sits centered at full width */
.cj-offices .cj-section__inner {
  display: block;
}

.cj-offices .cj-section h2.cj-section__title,
.cj-offices h2.cj-section__title {
  margin-bottom: 40px;
}

.cj-offices__map {
  display: block;
  width: 100%;
  max-width: 1000px;
  height: auto;
  margin: 0 auto;
}

.cj-offices__key {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--steel);
}

.cj-offices__key span::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  vertical-align: -1px;
  background-color: var(--concrete);
}

.cj-offices__key-office::before { background-color: var(--orange) !important; }
.cj-offices__key-projects::before { background-color: #f5b491 !important; }
.cj-offices__key-dot::before { width: 9px !important; height: 9px !important; border-radius: 50%; background-color: var(--black) !important; box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px var(--rule); }

.cj-offices__list {
  list-style: none;
  margin: 56px auto 0;
  padding: 40px 0 0;
  max-width: 1000px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 24px;
}

.cj-offices__list b {
  display: block;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
}

.cj-offices__list span {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  color: var(--steel);
}

/* Memberships */
.cj-members .cj-section__inner {
  padding-bottom: 96px;
}

.cj-members__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px 44px;
}

.cj-members__list img {
  display: block;
  height: 44px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: grayscale(1);
  opacity: 0.6;
  transition: opacity 0.2s var(--ease), filter 0.2s var(--ease);
}

.cj-members__list a:hover img,
.cj-members__list a:focus img {
  filter: none;
  opacity: 1;
}

@media (max-width: 991px) {
  .cj-section__inner {
    grid-template-columns: 1fr;
    row-gap: 24px;
    padding: 48px 0 80px;
  }
  .cj-services .cj-section__inner {
    grid-template-columns: 1fr;
  }
  .cj-services__media {
    display: none;
  }
  .cj-project:nth-child(n) { grid-column: span 6; }
  .cj-offices__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .cj-section { padding: 0 20px; }
  .cj-about .cj-section__inner { padding-top: 72px; }
  .cj-project:nth-child(n) { grid-column: span 12; }
  .cj-project:nth-child(n) img { aspect-ratio: 4 / 3; }
  .cj-offices__list { grid-template-columns: 1fr; }
  .cj-members__list img { height: 36px; }
}

/* ---- footer -------------------------------------------------------------- */
.footer {
  margin: 0;
  padding: 64px 0 0;
  background-color: var(--black);
  color: rgba(255, 255, 255, 0.7);
}

.footer > p.text-center {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  margin: 0 0 20px;
}

.footer .menu {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  margin: 0 0 44px;
}

.footer .menu a {
  color: rgba(255, 255, 255, 0.85);
}

.footer .title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  margin: 0 0 10px;
  color: #fff;
}

.footer .title a {
  color: #fff;
}

.footer .submenu {
  font-size: 14px;
  line-height: 1.8;
}

.footer .submenu a {
  color: rgba(255, 255, 255, 0.6);
}

.footer a:hover,
.footer .title a:hover,
.footer .submenu a:hover,
.footer .menu a:hover {
  color: var(--orange);
}

.footer .social-icon img {
  opacity: 0.85;
  margin: 0 8px;
}

/* Popup Maker's stylesheet hides closed popups; belt-and-braces so the video
   lightbox never renders inline at the bottom of the page. */
.pum-overlay:not(.pum-active) {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .header, .cj-services__name, .cj-services__media img, .cj-project figcaption b, a {
    transition: none;
  }
}
