/*
 * Front-page-only header states.
 *
 * Kadence continues to own the header markup, navigation, search and drawers.
 * This layer changes only its placement and finish on fixed front page ID 6.
 */
body.home.page-id-6 #masthead {
	position: absolute;
	inset: var(--wp-admin--admin-bar--height, 0px) 0 auto;
	z-index: 100;
	background: transparent;
}

body.home.page-id-6 #masthead .site-main-header-wrap .site-header-row-container-inner {
	background: transparent;
	border-bottom-color: transparent;
	transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

body.home.page-id-6 #masthead .site-main-header-wrap .site-container {
	width: min(1320px, calc(100% - 48px));
	max-width: 1320px;
}

body.home.page-id-6 #masthead .site-main-header-inner-wrap {
	min-height: 112px;
	transition: min-height 160ms ease;
}

body.home.page-id-6 #main-header .site-branding a.brand img {
	width: min(360px, 100%);
	max-width: 360px;
	height: auto;
	transition: width 160ms ease, max-width 160ms ease;
}

@media (min-width: 1280px) {
	body.home.page-id-6:not(.homeplan365-front-header-scrolled) #main-header .site-branding a.brand img {
		transform: translateY(30px);
	}
}

body.home.page-id-6 #masthead .main-navigation .primary-menu-container > ul > li.menu-item > a,
body.home.page-id-6 #masthead .search-toggle-open-container .search-toggle-open,
body.home.page-id-6 #masthead .mobile-toggle-open-container .menu-toggle-open {
	color: #3b3028;
}

body.home.page-id-6 #masthead .main-navigation .primary-menu-container > ul > li.menu-item > a:hover,
body.home.page-id-6 #masthead .main-navigation .primary-menu-container > ul > li.menu-item > a:focus-visible,
body.home.page-id-6 #masthead .search-toggle-open-container .search-toggle-open:hover,
body.home.page-id-6 #masthead .search-toggle-open-container .search-toggle-open:focus-visible,
body.home.page-id-6 #masthead .mobile-toggle-open-container .menu-toggle-open:hover,
body.home.page-id-6 #masthead .mobile-toggle-open-container .menu-toggle-open:focus-visible {
	color: #65745e;
}

body.home.page-id-6 #masthead a:focus-visible,
body.home.page-id-6 #masthead button:focus-visible {
	outline: 3px solid #5f6e58;
	outline-offset: 3px;
}

body.home.page-id-6 .front-hero-inner {
	padding-top: 139px;
}

body.home.page-id-6.homeplan365-front-header-scrolled #masthead {
	position: fixed;
	top: var(--wp-admin--admin-bar--height, 0px);
	background: rgba(255, 255, 255, 0.97);
	box-shadow: 0 8px 26px rgba(55, 48, 40, 0.08);
}

body.home.page-id-6.homeplan365-front-header-scrolled #masthead .site-main-header-wrap .site-header-row-container-inner {
	background: rgba(255, 255, 255, 0.97);
	border-bottom-color: var(--hp365-chrome-line);
}

body.home.page-id-6.homeplan365-front-header-scrolled #masthead .site-main-header-wrap .site-container {
	width: 100%;
	max-width: var(--global-content-width);
}

body.home.page-id-6.homeplan365-front-header-scrolled #masthead .site-main-header-inner-wrap {
	min-height: 84px;
}

body.home.page-id-6.homeplan365-front-header-scrolled #main-header .site-branding a.brand img {
	width: min(240px, 100%);
	max-width: 240px;
}

@media (min-width: 1181px) and (max-width: 1279px) {
	body.home.page-id-6 #main-header .site-branding a.brand img {
		width: min(326px, 100%);
		max-width: 326px;
	}
}

@media (min-width: 1025px) and (max-width: 1180px) {
	body.home.page-id-6 #masthead .site-main-header-wrap .site-container {
		width: calc(100% - 40px);
	}

	body.home.page-id-6 #main-header .site-branding a.brand img {
		width: min(320px, 100%);
		max-width: 320px;
	}

	body.home.page-id-6 #masthead .main-navigation .primary-menu-container > ul > li.menu-item > a {
		padding-inline: 6px;
		font-size: 13px;
	}
}

@media (min-width: 1025px) and (max-width: 1140px) {
	body.home.page-id-6 #main-header .site-branding a.brand img {
		width: min(260px, 100%);
		max-width: 260px;
	}
}

@media (max-width: 1024px) {
	body.home.page-id-6 #masthead .site-main-header-wrap .site-container {
		width: min(100% - 40px, 1240px);
	}

	body.home.page-id-6 #masthead .site-main-header-inner-wrap {
		min-height: 88px;
	}

	body.home.page-id-6 #mobile-header .site-branding a.brand img {
		width: min(220px, 100%);
		max-width: 220px;
		height: auto;
		transition: width 160ms ease, max-width 160ms ease;
	}

	body.home.page-id-6 .front-hero-inner {
		min-height: 630px;
		padding-top: 114px;
	}

	body.home.page-id-6.homeplan365-front-header-scrolled #masthead .site-main-header-inner-wrap {
		min-height: 70px;
	}

	body.home.page-id-6.homeplan365-front-header-scrolled #mobile-header .site-branding a.brand img {
		width: min(200px, 100%);
		max-width: 200px;
	}
}

@media (max-width: 767px) {
	body.home.page-id-6 #masthead .site-main-header-wrap .site-container {
		width: calc(100% - 32px);
	}

	body.home.page-id-6 #masthead .site-main-header-inner-wrap {
		min-height: 78px;
	}

	body.home.page-id-6 #mobile-header .site-branding a.brand img {
		width: min(196px, 100%);
		max-width: 196px;
	}

	body.home.page-id-6 .front-hero-inner {
		min-height: 0;
		padding-top: 110px;
	}

	body.home.page-id-6.homeplan365-front-header-scrolled #masthead .site-main-header-inner-wrap {
		min-height: 68px;
	}

	body.home.page-id-6.homeplan365-front-header-scrolled #mobile-header .site-branding a.brand img {
		width: min(178px, 100%);
		max-width: 178px;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.home.page-id-6 #masthead .site-main-header-wrap .site-header-row-container-inner,
	body.home.page-id-6 #masthead .site-main-header-inner-wrap,
	body.home.page-id-6 #masthead .site-branding a.brand img {
		transition-duration: 0.01ms;
	}
}

/* Approved PC logo adjustment applies only before the existing sticky state.
   The 1024px tablet header and all content remain in normal flow. */
@media (min-width:1025px) {
 body.home.page-id-6:not(.homeplan365-front-header-scrolled) #main-header .site-branding > a.brand.has-logo-image {
  transform:translateY(-20px);
 }
 body.home.page-id-6.homeplan365-front-header-scrolled #main-header .site-branding > a.brand.has-logo-image {
  transform:none;
 }
}
