/* ==========================================================================
   Custom Header & Hero Overrides
   Matches blkwealthconnect.com header/hero layout, alignment & spacing.
   Loaded after main.css — do not edit main.css for header/hero changes.
   ========================================================================== */

/* ---- Header shell ---- */
#header.site-header {
  background: #ffffff;
  box-shadow: none;
  padding: 0;
  margin: 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  width: 100%;
}

.site-header__container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.site-header__row {
  height: 122px;
}

.site-header__col--logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.site-header__col--menu {
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-header__col--right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

#header .site-header__logo {
  display: inline-flex;
  align-items: center;
}

.site-header__col--logo img {
  width: 250px;
  max-width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  display: block;
  margin: 0;
}
@media (max-width: 1199px) {
  .site-header__col--logo img {
    width: 260px;
  }
}
@media (max-width: 991px) {
  .site-header__col--logo img {
    width: 245px;
  }
}
@media (max-width: 480px) {
  .site-header__col--logo img {
    width: 200px;
  }
}

/* ---- Nav menu — desktop ≥1200px ---- */
@media (min-width: 1200px) {
  #navmenu ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  #navmenu li {
    margin-right: 36px;
  }
  #navmenu li:last-child {
    margin-right: 0;
  }
  #navmenu a {
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: normal;
    color: #0b1814;
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 122px;
    padding: 0;
    white-space: nowrap;
  }
  #navmenu a:hover,
  #navmenu a.active {
    color: #000000;
  }
}

/* ---- Nav menu — 992–1199px ---- */
@media (min-width: 992px) and (max-width: 1199.98px) {
  #navmenu ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  #navmenu li {
    margin-right: 24px;
  }
  #navmenu li:last-child {
    margin-right: 0;
  }
  #navmenu a {
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: normal;
    color: #0b1814;
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 122px;
    padding: 0;
    white-space: nowrap;
  }
  #navmenu a:hover,
  #navmenu a.active {
    color: #000000;
  }
}

/* ---- Header & nav — below 992px (tablet/mobile) ---- */
@media (max-width: 991.98px) {
  /* Row height and the menu/logo/right column layout at this width are
     handled by the flex-nowrap rules at the end of this file. */

  #navmenu ul {
    display: none;
  }

  body.mobile-nav-active #navmenu {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
  }

  body.mobile-nav-active #navmenu ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    list-style: none;
    margin: 0;
    padding: 20px 0;
    width: 100%;
  }

  body.mobile-nav-active #navmenu li {
    margin: 0;
    width: 100%;
    text-align: center;
  }

  body.mobile-nav-active #navmenu a {
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: normal;
    color: #0b1814;
    text-decoration: none;
    display: block;
    padding: 15px 0;
  }

  body.mobile-nav-active #navmenu a:hover,
  body.mobile-nav-active #navmenu a.active {
    color: #000000;
  }
}

/* ---- Keep in-page anchor links (About, Speaking, ...) from landing
   under the sticky header ---- */
@media (min-width: 992px) {
  section,
  .section {
    scroll-margin-top: 122px;
  }
}
@media (max-width: 991.98px) {
  section,
  .section {
    scroll-margin-top: 80px;
  }
}

/* ---- Hero ---- */
.hero {
  height: 82vh;
  min-height: 0;
  padding: 0;
  margin: 0 0 24px 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::before {
  display: none; /* remove the template's old tint overlay */
}

/* Image fallback (no assets/video/hero.mp4 uploaded yet) */
.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
}

/* Background video (once assets/video/hero.mp4 exists, swap the <img>
   for the .hero-video-bg/<video> markup described in custom.css — no
   further CSS changes needed, these rules are already in place). */
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}
.hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
  color: #ffffff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ---- Fix pre-existing template bug: main.css's ".newsletter-form button"
   rule (height:50px; padding:0 35px) has higher specificity than
   .btn-getstarted's own padding, silently zeroing its vertical padding and
   clipping the pill shape. Restores the button to its intended look
   (Book Now, Send Message, Get Your Copy — all share this wrapper). ---- */
.newsletter-form .btn-getstarted {
  height: auto;
  padding: 13px 25px;
}

/* ---- Mobile/tablet header fix: keep logo (left) and hamburger (right)
   on one line, both vertically centered, instead of wrapping ---- */
@media (max-width: 991px) {
  .site-header__row {
    flex-wrap: nowrap;
    height: 80px;
    align-items: center;
  }
  .site-header__col--menu {
    flex: 0 0 0;
    width: 0;
    max-width: 0;
    padding: 0;
  }
  .site-header__col--logo {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    display: flex;
    align-items: center;
  }
  .site-header__col--right {
    flex: 0 0 auto;
    width: auto;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
  .mobile-nav-toggle {
    font-size: 28px;
    line-height: 1;
    margin: 0;
    color: #0b1814;
  }
}
