/* ==========================================================================
   Shared partials (template-parts/shared/*): inner hero, Direct Money Market block,
   assessment band, team grid, closing / post card. Loaded on every page.
   Values measured from the Elementor site (theme-redo/audit/measure-el).
   ========================================================================== */

/* ---------- Inner hero: photo band under a charcoal-to-green tint ---------- */
.hero-inner { position: relative; padding: 50px 0; background: var(--c-charcoal) var(--hero-bg, none) center / cover no-repeat; color: var(--c-white); isolation: isolate; }
.hero-inner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(106deg, var(--c-charcoal) 38%, var(--c-green) 71%); opacity: .83; }
.hero-inner__inner { display: flex; align-items: flex-start; gap: 20px; padding-block: 10px; }
.hero-inner--center .hero-inner__inner { align-items: center; }
.hero-inner__text { flex: 1 1 auto; min-width: 0; padding: 10px 10px 10px 20px; }
.hero-inner__title { margin: 0; font-size: 45px; line-height: 60px; font-weight: 500; color: var(--c-white); }
.hero-inner__subtitle { margin: 20px 0 0; padding-bottom: 14px; font-size: 16px; line-height: 24px; font-weight: 600; }
.hero-inner__subtitle--light { font-weight: 400; }
.hero-inner__subtitle--heading { margin: 28px 0 0; padding-bottom: 16px; font-family: var(--f-head); font-size: 24px; line-height: 28.8px; font-weight: 700; }
.hero-inner .breadcrumb { margin: 20px 0 0; padding-bottom: 14px; font-size: 16px; line-height: 28px; font-weight: 600; }
.hero-inner .breadcrumb a { font-family: var(--f-head); font-size: 18px; font-weight: 400; color: var(--c-white); text-decoration: none; }
.hero-inner .breadcrumb a:hover { text-decoration: underline; }
.hero-inner__action { flex: 0 0 268px; display: flex; justify-content: center; margin-right: 10px; padding: 10px; }
@media (max-width: 1024px) {
  .hero-inner__action { flex-basis: auto; }
}
@media (max-width: 767px) {
  .hero-inner__inner { flex-direction: column; align-items: stretch; }
  .hero-inner__text { padding: 10px; }
  .hero-inner__action { margin-right: 0; padding: 10px; }
}

/* ---------- Direct Money Market block ---------- */
.dmm { padding: 75px 0; }
.dmm__inner { display: flex; align-items: flex-start; }
.dmm__text { flex: 0 0 50%; max-width: 50%; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.dmm__heading { margin: 0; font-size: 45px; line-height: 60px; font-weight: 500; }
.dmm__subheading { margin: 0; font-size: 27px; line-height: 60px; font-weight: 400; }
.dmm__body { margin: 0 0 14px; font-size: 18px; line-height: 27px; }
.dmm .btn { gap: 10px; }
.dmm__media { flex: 0 0 50%; max-width: 50%; }
.dmm__media img { width: 100%; }
@media (max-width: 1024px) {
  .dmm { padding: 50px 0; }
}
@media (max-width: 767px) {
  .dmm__inner { flex-direction: column; }
  .dmm__text, .dmm__media { flex-basis: auto; max-width: none; width: 100%; }
  .dmm__subheading { line-height: 40px; }
  .dmm .btn { margin-bottom: 35px; }
}

/* ---------- Assessment band ---------- */
.assess { padding: 75px 0; background: var(--c-white) var(--assess-bg, none) center bottom / cover no-repeat; }
.assess__inner { display: flex; align-items: center; gap: 20px; }
.assess__heading { flex: 1 1 50%; margin: 0; padding: 10px 10px 10px 20px; font-size: 35px; line-height: 60px; font-weight: 500; color: var(--c-charcoal); }
.assess__action { flex: 1 1 50%; display: flex; justify-content: center; padding: 10px; }
/* Dark variant (Recent News, Recent Closings and the other lists): white heading over the dark finance image. */
.assess--dark { background-color: var(--c-charcoal); }
.assess--dark .assess__heading { color: var(--c-white); }
@media (max-width: 1024px) {
  .assess { padding: 50px 0; }
}
@media (max-width: 767px) {
  .assess__inner { flex-direction: column; align-items: stretch; }
  .assess__heading { padding: 0; line-height: 38.5px; }
  .assess--dark .assess__heading { line-height: 40px; }
}

/* ---------- Team grid ---------- */
.team { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; width: 96%; margin: 0 auto; padding: 10px; }
.team__member { flex: 0 0 30%; max-width: 30%; display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 10px; text-align: center; }
.team__member picture { display: contents; }
.team__member img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); box-shadow: 0 4px 8px rgba(0, 0, 0, .3); }
.team__name { margin: 0; font-size: 26px; line-height: 26px; font-weight: 400; color: var(--c-black); }
.team__phone { margin: 0; font-family: var(--f-head); font-size: 18px; line-height: 18px; }
.team__phone a { color: var(--c-black); text-decoration: none; }
.team__phone a:hover { text-decoration: underline; }
.team__linkedin { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 3px; background: #0077B5; color: var(--c-white); font-size: 14px; text-decoration: none; transition: opacity .3s; }
.team__linkedin:hover { opacity: .9; }
@media (max-width: 767px) {
  .team { width: 100%; }
  .team__member { flex-basis: 100%; max-width: 100%; }
}

/* ---------- Closing / post card ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
@media (max-width: 1024px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .card-grid { grid-template-columns: minmax(0, 1fr); } }

.card-post { position: relative; display: flex; flex-direction: column; background: var(--c-charcoal); border-radius: 8px; box-shadow: 0 0 8px rgba(0, 0, 0, .3); color: var(--c-white); }
.card-post__image { height: 250px; border-radius: 8px 8px 0 0; overflow: hidden; background: var(--c-navy); }
/* The old card stretched the image to the 250px slot instead of cropping it; closing graphics carry text edge to edge, so cropping would cut it. */
.card-post__image img { width: 100%; height: 100%; object-fit: fill; }
.card-post__avatar { margin: -25px 0 5px 15px; height: 50px; position: relative; }
.card-post__avatar img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.card-post__body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 0 15px; }
.card-post__title { min-height: 80px; margin: 10px 0 20px; font-family: "Roboto", sans-serif; font-size: 20px; line-height: 30px; font-weight: 600; color: var(--c-white); }
.card-post__title a { color: inherit; text-decoration: none; }
.card-post__title a::after { content: ""; position: absolute; inset: 0; border-radius: 8px; }
.card-post__title a:focus-visible { outline: none; }
.card-post__title a:focus-visible::after { outline: 3px solid var(--c-gold); outline-offset: 2px; }
.card-post__meta { display: flex; flex-wrap: wrap; gap: 0 16px; margin-top: auto; padding: 11px 0 10px; border-top: 1px solid var(--c-black); font-size: 12px; line-height: 18px; }
.card-post__meta span { display: inline-flex; align-items: center; gap: 5px; }
.card-post__meta i { width: 14px; font-size: 14px; text-align: center; }
