/* IHC HOMEPAGE UX FIXES — see ihc-homepage-fixes.php for context.
   Safe to edit directly; this file is just enqueued, not compiled. */

/* 1. Hide the duplicate "IN-HOUSE COMMUNITY" text title — the logo
      image directly above it already contains this wordmark. */
.site-header .site-branding .site-title {
    display: none;
}

/* 2. Kadence's default header layout reserves a whole middle "row"
      (site-main-header-wrap) for a cart/search icon area that this
      site doesn't use — it renders completely empty but still takes
      up ~90px of vertical space between the logo and the nav menu.
      Collapsing it is what actually shrinks the header; the padding
      tweaks below are the secondary polish on top of that. */
.site-header .site-main-header-wrap {
    display: none;
}

/* 3. Tighten the remaining vertical padding now that the title line
      is hidden and the empty middle row is gone. */
.site-header .site-branding.branding-layout-vertical {
    padding-top: 20px;
    padding-bottom: 8px;
}
.site-header .site-branding.branding-layout-vertical .site-logo {
    margin-bottom: 6px;
}
.site-header .site-header-row-container-inner {
    padding-top: 4px;
    padding-bottom: 4px;
}

/* Slightly smaller logo on the header keeps it crisp while saving
   additional vertical space; adjust or remove if a larger logo is
   preferred later. */
.site-header .site-logo img {
    max-height: 56px;
    width: auto;
}

/* 4. "Latest insights" card photos: crop to a taller 4:5 ratio instead
      of a wide landscape box, so headshots aren't cut off at the
      hairline or left with excess background above the subject. */
.ihc-latest-insights .ihc-insight-card img {
    aspect-ratio: 4 / 5;
    height: auto !important;
    object-fit: cover;
    object-position: top center;
}
