/* TrustLine Reserve — final public header refinements */

:root {
  --trustline-navy: #071a3d;
  --trustline-red: #d7192d;
  --trustline-header-border: #e9edf3;
}

/* Clean, light financial-services header */
.main-header .header-lower,
.main-header .sticky-header {
  background: #ffffff !important;
}

.main-header .header-lower {
  border-bottom: 1px solid var(--trustline-header-border);
  box-shadow: 0 3px 18px rgba(7, 26, 61, 0.045);
}

.main-header .large-container {
  max-width: 1540px;
  padding-left: 28px;
  padding-right: 28px;
}

.main-header .outer-box {
  min-height: 90px;
  gap: 36px;
}

/* Remove the original template's red logo slab and angled wedges. */
.main-header .outer-box .logo-box {
  flex: 0 0 auto;
  margin: 0 !important;
  padding: 14px 0 !important;
  background: transparent !important;
}

.main-header .outer-box .logo-box::before,
.main-header .outer-box .logo-box::after,
.main-header .outer-box .logo-box .shape {
  display: none !important;
  content: none !important;
  background: transparent !important;
}

.main-header .logo-box .logo {
  margin: 0;
}

.site-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.site-logo {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
}

.main-header .header-logo {
  width: 184px;
  max-width: 184px;
}

/* Keep navigation compact and on one line on desktop. */
.main-header .menu-area {
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
  gap: 30px;
}

.main-header .main-menu {
  float: none;
  flex: 0 1 auto;
}

.main-header .main-menu .navigation {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

.main-header .main-menu .navigation > li {
  float: none;
  margin: 0 15px;
  white-space: nowrap;
}

.main-header .main-menu .navigation > li > a {
  color: #111827;
  font-size: 16px;
  line-height: 24px;
  padding-top: 33px;
  padding-bottom: 33px;
  font-weight: 600;
}

.main-header .main-menu .navigation > li.current > a,
.main-header .main-menu .navigation > li:hover > a {
  color: var(--trustline-red) !important;
}

.main-header .menu-right-content {
  flex: 0 0 auto;
  margin-left: 4px !important;
  gap: 12px;
}

.main-header .menu-right-content .theme-btn {
  min-width: 0;
  padding: 12px 22px;
  line-height: 22px;
  white-space: nowrap;
}

.main-header .menu-right-content .mr_20 {
  margin-right: 0 !important;
}

/* Quiet secondary login button on a white header. */
.main-header .menu-right-content .theme-btn.btn-two {
  color: var(--trustline-navy) !important;
  background: #ffffff !important;
  border: 1px solid #cfd6df;
}

.main-header .menu-right-content .theme-btn.btn-two::before,
.main-header .menu-right-content .theme-btn.btn-two::after {
  background: var(--trustline-navy) !important;
}

.main-header .menu-right-content .theme-btn.btn-two:hover {
  color: #ffffff !important;
  border-color: var(--trustline-navy);
}

/* Sticky header uses the same proportions, only slightly tighter. */
.main-header .sticky-header .outer-box {
  min-height: 76px;
}

.main-header .sticky-header .outer-box .logo-box {
  padding: 10px 0 !important;
}

.main-header .sticky-header .header-logo {
  width: 166px;
  max-width: 166px;
}

.main-header .sticky-header .main-menu .navigation > li > a {
  padding-top: 26px;
  padding-bottom: 26px;
}

/* Existing dark treatments continue to use the light logo. */
.mobile-menu .nav-logo img.mobile-logo {
  width: 205px;
  max-width: 100%;
}

.main-footer .footer-brand-logo {
  width: 235px;
  max-width: 100%;
}

/* Intermediate desktop widths: keep the full nav without crowding. */
@media only screen and (max-width: 1399px) and (min-width: 1201px) {
  .main-header .large-container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .main-header .outer-box {
    gap: 24px;
  }

  .main-header .header-logo {
    width: 164px;
    max-width: 164px;
  }

  .main-header .menu-area {
    gap: 20px;
  }

  .main-header .main-menu .navigation > li {
    margin: 0 10px;
  }

  .main-header .main-menu .navigation > li > a {
    font-size: 15px;
  }

  .main-header .menu-right-content .theme-btn {
    padding-left: 17px;
    padding-right: 17px;
    font-size: 14px;
  }
}

/* Tablet/mobile: the template switches to its mobile menu at 1200px. */
@media only screen and (max-width: 1200px) {
  .main-header .large-container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .main-header .outer-box {
    min-height: 76px;
  }

  .main-header .outer-box .logo-box {
    padding: 12px 0 !important;
  }

  .main-header .header-logo {
    width: 168px;
    max-width: 168px;
  }

  .menu-area .mobile-nav-toggler {
    margin-left: auto;
  }
}

@media only screen and (max-width: 499px) {
  .main-header .large-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .main-header .outer-box {
    min-height: 70px;
  }

  .main-header .outer-box .logo-box {
    padding: 11px 0 !important;
  }

  .main-header .header-logo {
    width: 148px;
    max-width: 148px;
  }

  .mobile-menu .nav-logo img.mobile-logo {
    width: 190px;
  }
}
