/* ===== Header & homepage cleanup - August 2026 (v3: blue card + house photo + reviews) ===== */

/* 1. Collapse the empty search bar that created ~80px of dead space above the logo */
.utility-container { min-height: 0; padding-top: 0; padding-bottom: 0; }
.utility-container .search-form,
.utility-container .search-form label,
.utility-container .search-field { min-height: 0; height: 36px; }

/* 2. Retire the flat banner image hero.
      The homepage now uses a real-text hero inside the page content, so this
      removes the duplicate photo / phone / NMLS block and the 160px text
      overflow that was covering the Equal Housing Lender logo. */
.front-page-wrapper .header-overlay { display: none; }

/* 3. Tighten the header block */
.branding-container { padding-top: 14px; padding-bottom: 6px; border-bottom: 0; }

/* 4. Navigation: bold rounded pills on one centred row */
.main-navigation ul.nav-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 10px;
  margin: 0;
  padding: 0;
}
.main-navigation ul.nav-menu > li { float: none; position: relative; }
.main-navigation ul.nav-menu > li > a {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 10px 19px;
  display: inline-block;
  background: #f4eee0;
  border-radius: 999px;
  border-bottom: none;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.main-navigation ul.nav-menu > li > a:hover,
.main-navigation ul.nav-menu > li.current-menu-item > a,
.main-navigation ul.nav-menu > li.current-menu-ancestor > a {
  color: #241c07;
  background: #c99a2e;
  box-shadow: 0 3px 10px rgba(201, 154, 46, .35);
}
.main-navigation {
  border-top: 0;
  border-bottom: 1px solid #e2ddd1;
  padding-top: 4px;
  padding-bottom: 10px;
}
/* Dropdowns match the rounded language */
.main-navigation ul.sub-menu {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(29, 35, 43, .18);
}

/* 5. Homepage order: hero first, featured post cards below it */
.home .site { display: flex; flex-direction: column; }
.home #masthead { order: 1; }
.home #content { order: 2; }
.home .front-page-wrapper { order: 3; margin-top: 24px; padding-top: 0; }
.home #colophon { order: 4; }
.home .featured-content { margin-top: 0; }

/* 6. Homepage runs full width - the sidebar was squeezing the hero.
      Hiding #secondary alone leaves the theme's reserved right margin behind,
      so .site-main has to be reset too or everything sits off-centre. */
.home #secondary { display: none; }
.home #primary,
.home .content-area { width: 100%; max-width: 100%; float: none; }
.home .site-main { margin-right: 0; }
.home .entry-content { max-width: 820px; margin-left: auto; margin-right: auto; }

/* 7. Branding: vibrant blue card, gold accents, family photo, Kentucky-local
      line and a house photo on the right side.
      The WPCode snippet injects .ky-brand into .site-branding; this dresses it.
      min-height reserves space so the swap from the logo image to text does
      not shift layout. */
.site-branding {
  min-height: 120px;
  display: flex;
  align-items: center;
  text-align: left;
  margin-bottom: 12px;
  background: linear-gradient(120deg, #14337d 0%, #1e4aa8 55%, #2a5bc4 100%);
  border-radius: 16px;
  border-top: 3px solid #e0b54a;
  box-shadow: 0 10px 28px rgba(20, 45, 110, .3);
  padding: 22px 30px;
  position: relative;
  overflow: hidden;
}
/* House photo panel on the right - hard gold-edged divider, full-colour photo */
.site-branding::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 52%;
  border-left: 3px solid #e0b54a;
  background: url("https://i0.wp.com/kentuckymortgageblog.com/wp-content/uploads/2026/08/kentucky-craftsman-home-yard.jpg?w=1200&ssl=1") no-repeat 70% 42% / 115% auto;
  filter: saturate(1.18) contrast(1.04) brightness(1.03);
  pointer-events: none;
}
.site-branding .custom-logo-link { display: inline-block; }
.site-branding .site-title a { color: #f5efe2; }

.ky-brand {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  flex-wrap: wrap;
  padding: 0;
  position: relative;
  z-index: 1;
}
.ky-brand__left { display: flex; align-items: center; gap: 14px; min-width: 0; flex-wrap: wrap; }
.ky-brand__photo {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e0b54a;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
  flex: none;
}
.ky-brand__id { text-decoration: none; display: block; min-width: 0; }
.ky-brand__id:hover { text-decoration: none; }
.ky-brand__name {
  display: block;
  font-size: 30px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: .01em;
}
.ky-brand__role {
  display: block;
  font-size: 12px;
  color: #f0c75e;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.ky-brand__local {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, .85);
  margin-top: 10px;
  letter-spacing: .02em;
  padding-left: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.1 2 5 5.1 5 9c0 5.2 7 13 7 13s7-7.8 7-13c0-3.9-3.1-7-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z' fill='%23e0b54a'/%3E%3C/svg%3E") no-repeat left center / 15px 15px;
}
.ky-brand__reviews {
  display: block;
  flex: 1 1 100%;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  margin-top: 6px;
  margin-left: 0;
  text-decoration: none;
  letter-spacing: .02em;
}
.ky-brand__reviews:hover { color: #ffe9b0; text-decoration: underline; }
.ky-brand__stars { color: #ffce3d; letter-spacing: 2px; margin-right: 4px; }
.ky-brand__quicknav { display: none; }
.ky-brand__contact { text-align: left; margin-top: 4px; }
.ky-brand__label {
  display: block;
  font-size: 11px;
  color: #f0c75e;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 8px;
}
.ky-brand__phone {
  display: inline-block;
  font-size: 22px;
  font-weight: 700;
  color: #241c07;
  background: linear-gradient(180deg, #e0b54a 0%, #c99a2e 100%);
  text-decoration: none;
  line-height: 1;
  letter-spacing: .3px;
  padding: 12px 26px;
  white-space: nowrap;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(201, 154, 46, .35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.ky-brand__phone:hover {
  color: #241c07;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(201, 154, 46, .45);
}
.ky-brand__nmls { display: block; font-size: 11px; color: rgba(255, 255, 255, .65); margin-top: 10px; letter-spacing: .02em; }

@media (max-width: 700px) {
  /* Bold blue mobile card: Joel's headshot large, high-contrast white/gold
     text, a 3x2 grid of outlined quick-nav buttons, and the gold call
     button. Desktop split card is untouched. */
  .site-branding {
    display: block;
    min-height: 0;
    background: linear-gradient(150deg, #122e73 0%, #1e4aa8 60%, #2a5bc4 100%);
    border-radius: 14px;
    border-top: 4px solid #e0b54a;
    box-shadow: 0 10px 26px rgba(20, 45, 110, .35);
    padding: 18px 14px 16px;
    margin-bottom: 12px;
    overflow: hidden;
  }
  .site-branding::after { display: none; }
  .ky-brand { display: block; max-width: 100%; text-align: center; }
  .ky-brand__left { display: block; text-align: center; }
  .ky-brand__photo { width: 86px; height: 86px; border: 3px solid #e0b54a; box-shadow: 0 5px 16px rgba(0, 0, 0, .4); }
  .ky-brand__name { font-size: 27px; color: #ffffff; margin-top: 10px; }
  .ky-brand__role { font-size: 11px; color: #ffd24a; margin-top: 5px; letter-spacing: .1em; font-weight: 700; }
  .ky-brand__local { font-size: 12.5px; color: #ffffff; margin-top: 8px; padding-left: 0; background: none; }
  .ky-brand__reviews { font-size: 12.5px; color: #ffffff; margin-top: 5px; margin-left: 0; }
  .ky-brand__stars { color: #ffce3d; }
  .ky-brand__label { display: none; }
  .ky-brand__quicknav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    margin-top: 14px;
  }
  .ky-brand__quicknav a {
    display: block;
    background: #0d1f4d;
    border: 1.5px solid #e0b54a;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 10px 2px;
    border-radius: 10px;
    text-decoration: none;
  }
  .ky-brand__quicknav a:hover { background: #e0b54a; color: #241c07; }
  .ky-brand__contact { display: block; margin: 0; text-align: center; }
  .ky-brand__phone {
    display: block;
    margin: 12px 2px 0;
    font-size: 19px;
    padding: 13px 0;
    text-align: center;
    border-radius: 12px;
  }
  .ky-brand__phone::before {
    content: 'CALL OR TEXT';
    display: block;
    font-size: 9.5px;
    letter-spacing: .15em;
    font-weight: 800;
    margin-bottom: 2px;
  }
  .ky-brand__nmls { font-size: 10px; color: rgba(255, 255, 255, .75); margin-top: 9px; text-align: center; }
}

/* Phones (below the theme's 37.5em menu-toggle breakpoint): the theme squeezes
   .site-branding to make room for an absolutely-positioned MENU button.
   Give the card the full width and drop the button underneath it instead. */
@media (max-width: 599px) {
  .branding-container { flex-wrap: wrap; }
  .site-branding { max-width: 100%; width: 100%; flex-basis: 100%; }
  .main-navigation { width: 100%; text-align: center; }
  .main-navigation .menu-toggle {
    position: static;
    display: inline-block;
    margin: 2px auto 4px;
    background: #c99a2e;
    color: #241c07;
    font-weight: 700;
    border-radius: 999px;
    padding: 9px 24px;
  }
}

/* Keep all text on the solid blue side now that the photo has a hard edge */
@media (min-width: 701px) {
  .ky-brand { max-width: 45%; }
}
