/* Expert Connection PR
 *
 * Hand-written from the values the live site actually computed — see
 * capture/tokens.json, which was read out of the browser rather than guessed
 * from a screenshot. Every number below traces back to it.
 *
 * The old site shipped ~435kB of Elementor CSS to say these things. This file
 * says them once.
 */

:root {
  /* Deep blue: headings, nav, the name on a profile. */
  --ink: #054673;
  /* Brighter blue: buttons, links, anything you can click. */
  --accent: #1998ef;
  --body: #333;
  --muted: #6b7a83;
  --paper: #fff;
  /* The pale blue every other band is painted in. */
  --wash: #f0f9fd;
  --rule: rgba(5, 70, 115, 0.12);

  --container: 1003px;
  --header-h: 105px;

  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.4em;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
}

p {
  margin: 0 0 1.15em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 0;
}

/* Below the point where the column would touch the edges, it needs gutters —
   and the profile's fixed columns have to give way before they overflow. */
@media (max-width: 1043px) {
  .container {
    padding-inline: 20px;
  }

  .profile__grid {
    grid-template-columns: 264px minmax(0, 1fr);
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --- header --------------------------------------------------------------- */

.site-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--paper);
  position: relative;
  z-index: 20;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  width: 328px;
  max-width: 60vw;
}

.nav {
  display: flex;
  align-items: stretch;
  gap: 0;
}

/* Full-height links, spaced by their own padding, exactly as the live header
   does it — so the hit area is the whole bar rather than the text. */
.nav a {
  display: flex;
  align-items: center;
  padding-inline: 11px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--accent);
  text-decoration: none;
}

/* The menu button only exists on small screens, where the links collapse. */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle svg {
  width: 26px;
  height: 26px;
  margin-inline: auto;
}

/* --- buttons -------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 19px 55px;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  text-decoration: none;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.85);
}

.btn--ghost:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

/* --- bands ---------------------------------------------------------------- */

.band {
  padding: 72px 0;
}

.band--wash {
  background: var(--wash);
}

.band--tight {
  padding: 44px 0;
}

.band__title {
  font-size: 65px;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 0.5em;
}

.band__lede {
  max-width: 46em;
  margin-inline: auto;
  text-align: center;
  color: var(--muted);
}

/* --- expert profile ------------------------------------------------------- */

.profile {
  background: var(--wash);
  padding: 60px 0 80px;
}

/* Measured off the live page: a 940px column, a 264px photo bay and a 612px
   text column with 57px between them. Written as the real numbers rather than
   tidy round ones, because matching is the job. */
.profile .container {
  max-width: 940px;
}

.profile__grid {
  display: grid;
  grid-template-columns: 264px 612px;
  gap: 57px;
  align-items: start;
}

/* No border and no shadow: the pale blue frame is part of the JPEG, not
   something CSS should add. Drawing one as well put a white ring between the
   photo and its own frame. */
.profile__photo {
  width: 250px;
  margin-left: 14px;
}

.profile__name {
  font-size: 35px;
  font-weight: 900;
  line-height: 42px;
  margin-bottom: 0;
}

.profile__role {
  margin: 0 0 1.1em;
  color: var(--muted);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.profile__links {
  margin: 0 0 1.4em;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile__bio {
  color: #000;
  font-weight: 300;
  line-height: 32px;
}

.profile__bio p {
  margin-bottom: 14.4px;
}

.profile__bio p:last-child {
  margin-bottom: 0;
}

/* The videos sit in the text column, not across the page — measured at
   612x344 with 20px between them. */
.profile__videos {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

/* 16:9 without a wrapper div per video. */
.profile__videos iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  display: block;
  background: #000;
}

/* --- expert grid ---------------------------------------------------------- */

.experts {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.expert-card {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0b2a3d;
}

.expert-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.expert-card:hover img {
  transform: scale(1.04);
  opacity: 0.55;
}

/* The name sits over the photo and only comes up on hover, which is how the
   grid stays a wall of faces rather than a wall of text. */
.expert-card__name {
  position: absolute;
  inset: auto 0 0 0;
  margin: 0;
  padding: 10px 8px;
  background: linear-gradient(180deg, transparent, rgba(5, 32, 51, 0.92));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.expert-card:hover .expert-card__name,
.expert-card:focus-visible .expert-card__name {
  opacity: 1;
  transform: none;
}

/* --- footer --------------------------------------------------------------- */

.site-footer {
  background: var(--paper);
  padding: 66px 0 76px;
  text-align: center;
}

.site-footer img.brand-mark {
  width: 464px;
  margin: 0 auto 14px;
}

.site-footer p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.socials a {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: var(--accent);
  border-radius: 4px;
  color: #fff;
}

.socials svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* --- forms ---------------------------------------------------------------- */

.form {
  display: grid;
  gap: 16px;
  max-width: 640px;
  margin-inline: auto;
}

.form label {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.form input,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 3px;
  color: var(--body);
  font-family: inherit;
  font-size: 15px;
}

.form input:focus,
.form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.form textarea {
  min-height: 120px;
  resize: vertical;
}

/* The honeypot. Never shown, never announced — anything that fills it in is
   not a person, which is the whole test. */
.form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__status {
  margin: 0;
  padding: 12px 14px;
  border-radius: 3px;
  font-size: 15px;
}

.form__status[data-state='ok'] {
  background: #e8f7ec;
  color: #1c6b33;
}

.form__status[data-state='error'] {
  background: #fdecec;
  color: #a12626;
}

/* --- responsive ----------------------------------------------------------- */

@media (max-width: 1024px) {
  .band__title {
    font-size: 46px;
  }

  .experts {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 767px) {
  :root {
    --header-h: 84px;
  }

  .band {
    padding: 48px 0;
  }

  .band__title {
    font-size: 34px;
  }

  .nav {
    display: none;
  }

  .nav.is-open {
    display: flex;
    position: absolute;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 18px;
    background: #fff;
    box-shadow: 0 12px 24px rgba(5, 70, 115, 0.12);
  }

  .nav.is-open a {
    padding: 12px 0;
    border-bottom: 1px solid var(--rule);
    font-size: 16px;
  }

  .nav-toggle {
    display: block;
  }

  .profile__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .profile__photo {
    width: 100%;
    max-width: 250px;
    margin-left: 0;
  }

  .experts {
    grid-template-columns: repeat(3, 1fr);
  }

  .btn {
    padding: 16px 34px;
  }
}

/* --- home page -----------------------------------------------------------
 *
 * Measured off the live page at 1440 wide. The bands are seven different
 * shapes, so each carries its own numbers rather than sharing a rhythm.
 */

/* The home content column is 927px, narrower than the 1003px elsewhere. */
.home-width {
  width: 100%;
  max-width: 927px;
  margin-inline: auto;
  padding-inline: 0;
}

/* hero: 508px tall under the 105px header */
.hero {
  height: 508px;
  display: grid;
  place-items: center;
  background-color: #0b2436;
  background-size: cover;
  background-position: center;
  text-align: center;
  color: #fff;
  position: relative;
}

/* A dark navy tint, not a neutral scrim.
 *
 * Elementor applies this somewhere the computed styles did not expose, so it
 * was solved from the pixels instead: sampling the same points on both renders
 * and fitting an overlay colour and alpha to the difference. A plain black
 * scrim is wrong — the live hero's shadows are lifted towards blue, not
 * flattened to grey. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 45, 80, 0.45);
}

.hero__inner {
  position: relative;
  padding-inline: 20px;
}

.hero__eyebrow {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 300;
  color: #e2f4ff;
}

.hero__arrow {
  width: 50px;
  height: 50px;
  margin: 0 auto 6px;
  color: #b0dbf9;
}

.hero__line {
  margin: 0 0 35px;
  color: #fff;
  font-size: 85px;
  line-height: 85px;
  font-weight: 600;
}

/* press band: 324px tall, an 800x252 composite */
.band--press {
  padding: 20px 0;
  text-align: center;
}

.press__label {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.press__logos {
  width: 800px;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}

/* lede band: heading, one paragraph, then three award badges in a row */
.band--lede {
  padding: 68px 0 80px;
  text-align: center;
}

.lede__title {
  margin: 0 0 12px;
  font-size: 34px;
  color: #0b3a5c;
}

.lede__body {
  max-width: 640px;
  margin: 0 auto 34px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
}

.badges img {
  width: 264px;
  height: auto;
}

/* The laurel badge is set a touch wider and lower than the two shields. */
.badges img:first-child {
  width: 300px;
}

/* experts band: 6 columns of 144x208, 12px apart, 22px between rows */
/* 144px above the heading, 80px between heading and grid, 145px below. */
.band--experts {
  padding: 144px 0 145px;
  text-align: center;
}

.experts {
  display: grid;
  grid-template-columns: repeat(6, 144px);
  gap: 19px 12px;
  justify-content: center;
  margin-top: 80px;
}

.expert-card {
  position: relative;
  display: block;
  width: 144px;
  height: 208px;
  overflow: hidden;
  background: #0b2a3d;
}

.expert-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.expert-card:hover img {
  transform: scale(1.05);
  opacity: 0.5;
}

.expert-card__name {
  position: absolute;
  inset: auto 0 0 0;
  margin: 0;
  padding: 8px 6px;
  background: linear-gradient(180deg, transparent, rgba(5, 32, 51, 0.94));
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.expert-card:hover .expert-card__name,
.expert-card:focus-visible .expert-card__name {
  opacity: 1;
  transform: none;
}

/* story band: picture on the left, a 331px text column on the right */
.band--story {
  padding: 213px 0;
}

.story {
  display: grid;
  grid-template-columns: 1fr 331px;
  gap: 36px;
  align-items: center;
}

.story__image {
  min-height: 430px;
  background-size: cover;
  background-position: center;
}

.story__text h2 {
  margin: 0 0 14px;
  font-size: 65px;
  line-height: 78px;
}

.story__text p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 24px;
}

/* testimonials: one quote at a time in a 683px window */
.band--quotes {
  padding: 158px 0 168px;
  text-align: center;
}

.carousel {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 10px;
  max-width: 763px;
  margin: 24px auto 0;
}

.carousel__window {
  overflow: hidden;
}

.carousel__track {
  display: flex;
  transition: transform 0.4s ease;
}

.carousel .quote {
  flex: 0 0 100%;
  margin: 0;
  padding: 0 20px;
}

.carousel blockquote {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 24px;
}

.carousel figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.carousel figcaption strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  text-transform: uppercase;
}

.carousel figcaption span {
  color: var(--accent);
  font-size: 12px;
}

.carousel__arrow {
  width: 40px;
  height: 40px;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.carousel__arrow:hover {
  color: var(--ink);
}

/* contact band: two 385px columns, the message spanning both */
.band--contact {
  padding: 82px 0 92px;
  text-align: center;
}

.band--contact .form {
  display: grid;
  grid-template-columns: repeat(2, 385px);
  gap: 0 0;
  justify-content: center;
  max-width: none;
  text-align: left;
}

.band--contact .form > div {
  padding: 0 6px 12px;
}

.form__wide {
  grid-column: 1 / -1;
}

.band--contact .form__status,
.band--contact button[type='submit'] {
  grid-column: 1 / -1;
  justify-self: center;
}

.band--contact button[type='submit'] {
  margin-top: 8px;
  padding: 14px 40px;
  font-size: 14px;
  letter-spacing: 0.04em;
}

/* --- lists, quotes, odds and ends ----------------------------------------- */

.ticks {
  max-width: 46em;
  margin: 0 auto 1.6em;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.ticks li {
  position: relative;
  padding: 0 0 0 26px;
  margin-bottom: 0.6em;
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.band__cta {
  text-align: center;
  margin-top: 1.6em;
}

.band p {
  color: var(--muted);
}

.band h3,
.band h4,
.band h5,
.band h6 {
  text-align: center;
}

.band h6 {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

img.align-right {
  float: right;
  margin: 0 0 14px 22px;
  max-width: 188px;
}

/* --- responsive ----------------------------------------------------------- */

@media (max-width: 1024px) {
  .hero__line {
    font-size: 54px;
    line-height: 1.05;
  }

  .story {
    grid-template-columns: 1fr;
  }

  .story__image {
    min-height: 300px;
  }

  .story__text h2 {
    font-size: 40px;
    line-height: 1.2;
  }

  .experts {
    grid-template-columns: repeat(4, 144px);
  }
}

@media (max-width: 1000px) {
  .home-width {
    padding-inline: 20px;
  }

  .band--contact .form {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
}

@media (max-width: 767px) {
  .hero {
    height: 420px;
  }

  .hero__line {
    font-size: 34px;
  }

  .badges {
    flex-wrap: wrap;
    gap: 20px;
  }

  .badges img,
  .badges img:first-child {
    width: 180px;
  }

  .experts {
    grid-template-columns: repeat(3, 1fr);
  }

  .expert-card {
    width: 100%;
    height: auto;
    aspect-ratio: 144 / 208;
  }

  .story__text h2 {
    font-size: 32px;
  }
}
